must use fabs() instead of abs() on floating point values. update cauchystat example logs

This commit is contained in:
Axel Kohlmeyer
2020-06-12 23:55:18 -04:00
parent ec6d3586ce
commit 8d5452d653
2 changed files with 40 additions and 41 deletions

View File

@ -2538,7 +2538,7 @@ void FixNPTCauchy::CauchyStat_init()
invH0(2,1)=0.0; invH0(2,2)=h_inv[1]; invH0(2,3)=h_inv[3];
invH0(3,1)=0.0; invH0(3,2)=0.0; invH0(3,3)=h_inv[2];
CSvol0 = abs(MathExtra::det3(H0)); //find reference volume
CSvol0 = fabs(MathExtra::det3(H0)); //find reference volume
#undef H0
#undef invH0