plumed / plumed2

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

CLOCK_MONOTONIC is not portable #539

Closed GiovanniBussi closed 4 years ago

GiovanniBussi commented 4 years ago

@carlocamilloni can you replace CLOCK_MONOTONIC in src/isdb/Metainference.cpp with something else? It is not available on older OSX and with some compilers it gives troubles. In particular, I noticed the problem in conda builds on travis-ci. I think it should be possible to replace it with high_resolution_clock.

carlocamilloni commented 4 years ago

High resolution clock is deprecated but a steadyclock seems to be working well, I am uploading a patch soon

Sent from my iPhone

Il giorno 3 gen 2020, alle ore 17:59, Giovanni notifications@github.com ha scritto:

 @carlocamilloni can you replace CLOCK_MONOTONIC in src/isdb/Metainference.cpp with something else? It is not available on older OSX and with some compilers it gives troubles. In particular, I noticed the problem in conda builds on travis-ci. I think it should be possible to replace it with high_resolution_clock.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.

GiovanniBussi commented 4 years ago

(I checked the conda build, it works now)