Thank you Xuanyu!
Dear Francesco,
I have tried as you suggested by changing the cutoff of 2-body and 3-body terms, and I always encountered the errors "** Error ** : ** ERROR ** C++ Exception in function BoxVecToBoxABCabc,
in line 102 of file tools/math_tools.cpp. Y and Z components of first
vector in box must be 0. Please double check your box definition." I have found a similar post and understand that the error is related to odd water formation during the simulations. I tried to correct the waters which looked odd and continued the simulations. The error repeats every 1000-5000 steps and I don't understand the solution. That would be great if someone could have any hints to avoid the terminations. Here I have copied the mbx.json file followed by the error message.
{
"Note" : "This is a cofiguration file",
"MBX" : {
"box" : [19.7295,0.0,0.0,0.0,19.7295,0.0,0.0,0.0,19.7295],
"twobody_cutoff" : 19.0,
"threebody_cutoff" : 19.0,
"max_n_eval_1b" : 500,
"max_n_eval_2b" : 500,
"max_n_eval_3b" : 500,
"dipole_tolerance" : 1E-16,
"dipole_max_it" : 100,
"dipole_method" : "aspc",
"alpha_ewald_elec" : 0.6,
"grid_density_elec" : 2.5,
"spline_order_elec" : 6,
"alpha_ewald_disp" : 0.6,
"grid_density_disp" : 2.5,
"spline_order_disp" : 6,
"ttm_pairs" : [],
"ignore_2b_poly" : [],
"ignore_3b_poly" : []
} ,
"i-pi" : {
"port" : 34543,
"localhost" : "localhost"
}
}
# i-PI loaded input file: config.xml
@SOCKET: Client asked for connection from . Now hand-shaking.
@SOCKET: Handshaking was successful. Added to the client list.
# Average timings at MD step 0. t/step: 4.57780e-01
# Average timings at MD step 1000. t/step: 1.62587e-01
# Average timings at MD step 2000. t/step: 1.38150e-01
# Average timings at MD step 3000. t/step: 1.35500e-01
# Average timings at MD step 4000. t/step: 1.73780e-01
/workspace/naga/package/i-pi-master/ipi/engine/barostats.py:604: RuntimeWarning: overflow encountered in exp
expq, expp = (np.exp(v * halfdt), np.exp(-v * halfdt))
/workspace/naga/package/i-pi-master/ipi/engine/barostats.py:609: RuntimeWarning: invalid value encountered in add
self.nm.qnm[0, :] += ((expq - expp) / (2.0 * v)) * (
/workspace/naga/package/i-pi-master/ipi/engine/barostats.py:614: RuntimeWarning: invalid value encountered in multiply
self.cell.h *= expq
/workspace/naga/package/i-pi-master/ipi/engine/barostats.py:609: RuntimeWarning: invalid value encountered in multiply
self.nm.qnm[0, :] += ((expq - expp) / (2.0 * v)) * (
/workspace/naga/package/i-pi-master/ipi/utils/mathtools.py:259: RuntimeWarning: invalid value encountered in scalar multiply
ih[0, 1] = -ih[0, 0] * h[0, 1] * ih[1, 1]
/workspace/naga/package/i-pi-master/ipi/utils/mathtools.py:260: RuntimeWarning: invalid value encountered in scalar multiply
ih[1, 2] = -ih[1, 1] * h[1, 2] * ih[2, 2]
/workspace/naga/package/i-pi-master/ipi/utils/mathtools.py:261: RuntimeWarning: invalid value encountered in scalar multiply
ih[0, 2] = -ih[1, 2] * h[0, 1] * ih[0, 0] - ih[0, 0] * h[0, 2] * ih[2, 2]
** Error ** : ** ERROR ** C++ Exception in function BoxVecToBoxABCabc, in line 102 of file tools/math_tools.cpp. Y and Z components of first vector in box must be 0. Please double check your box definition.
!W! @SOCKET: Inconsistent client state in dispatch thread! (III)
!W! @SOCKET: Client died or got unresponsive(C). Removing from the list.
Thanks
Naga