plumed / plumed2

Development version of plumed 2
https://www.plumed.org
GNU Lesser General Public License v3.0
324 stars 269 forks source link

OPES: second attempt at fixing NaN problem for intel compiler #993

Closed invemichele closed 7 months ago

invemichele commented 7 months ago
Description

See https://github.com/plumed/plumed2/pull/990

Unfortunately I cannot test the intel compiler on my machine. My guess is that previous attempt did not work because this line was optimized away

if(!std::isnan(std::numeric_limits<double>::quiet_NaN()))

Anyway, I now completely removed any NaN and instead use a very unlikely default value, that in practice will do the same job.

Target release

I would like my code to appear in release v2.8

Type of contribution
Copyright
Tests