Loading...
Searching...
No Matches
Water.cpp
Go to the documentation of this file.
1/*
2** This file is part of eOn.
3**
4** SPDX-License-Identifier: BSD-3-Clause
5**
6** Copyright (c) 2010--present, eOn Development Team
7** All rights reserved.
8**
9** Repo:
10** https://github.com/TheochemUI/eOn
11*/
13
14void Tip4p::force(long N, const double *R, const int *atomicNrs, double *F,
15 double *U, double *variance, const double *box) {
16 if (variance) {
17 *variance = 0.0;
18 }
19 double diagbox[3];
20 diagbox[0] = box[0];
21 diagbox[1] = box[4];
22 diagbox[2] = box[8];
23 computeHH_O_(N, R, F, *U, diagbox, 0);
24}
25
26void SpceCcl::force(long N, const double *R, const int *atomicNrs, double *F,
27 double *U, double *variance, const double *box) {
28 variance = nullptr;
29 double diagbox[3];
30 diagbox[0] = box[0];
31 diagbox[1] = box[4];
32 diagbox[2] = box[8];
33 computeHH_O_(N, R, F, *U, diagbox, 0);
34}
Wrapper for Eon.
void force(long N, const double *R, const int *atomicNrs, double *F, double *U, double *variance, const double *box) override
Definition Water.cpp:26
void force(long N, const double *R, const int *atomicNrs, double *F, double *U, double *variance, const double *box) override
Definition Water.cpp:14
void computeHH_O_(const int nAtoms, const double R[], double F[], double &U, const double b[])
Compute the forces and the energy.
Definition spce_ccl.cpp:62
void computeHH_O_(const int nAtoms, const double R[], double F[], double &U, const double b[])
Compute the forces and the energy.
Definition tip4p_ccl.cpp:85