Skip to content

Commit

Permalink
Merge pull request #2542 from akohlmey/plumed-update-to-2.7
Browse files Browse the repository at this point in the history
Add support plumed2 library version 2.7.0
  • Loading branch information
akohlmey committed Dec 24, 2020
2 parents 41d6648 + 8e6b89c commit fb1cc56
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
4 changes: 2 additions & 2 deletions cmake/Modules/Packages/USER-PLUMED.cmake
Expand Up @@ -55,8 +55,8 @@ if(DOWNLOAD_PLUMED)
endif()
include(ExternalProject)
ExternalProject_Add(plumed_build
URL https://github.com/plumed/plumed2/releases/download/v2.6.1/plumed-src-2.6.1.tgz
URL_MD5 89a9a450fc6025299fe16af235957163
URL https://github.com/plumed/plumed2/releases/download/v2.7.0/plumed-src-2.7.0.tgz
URL_MD5 95f29dd0c067577f11972ff90dfc7d12
BUILD_IN_SOURCE 1
CONFIGURE_COMMAND <SOURCE_DIR>/configure --prefix=<INSTALL_DIR>
${CONFIGURE_REQUEST_PIC}
Expand Down
3 changes: 2 additions & 1 deletion lib/plumed/Install.py
Expand Up @@ -17,7 +17,7 @@

# settings

version = "2.6.1"
version = "2.7.0"
mode = "static"

# help message
Expand Down Expand Up @@ -49,6 +49,7 @@
'2.5.4' : 'f31b7d16a4be2e30aa7d5c19c3d37853', \
'2.6.0' : '204d2edae58d9b10ba3ad460cad64191', \
'2.6.1' : '89a9a450fc6025299fe16af235957163', \
'2.7.0' : '95f29dd0c067577f11972ff90dfc7d12', \
}

# parse and process arguments
Expand Down
4 changes: 2 additions & 2 deletions src/RIGID/fix_shake.cpp
Expand Up @@ -2542,13 +2542,13 @@ void FixShake::stats()
const auto bcnt = b_count_all[i]/2;
if (bcnt)
mesg += fmt::format("{:>6d} {:<9.6} {:<11.6} {:>8d}\n",i,
b_ave_all[i]/bcnt,b_max_all[i]-b_min_all[i],bcnt);
b_ave_all[i]/bcnt/2.0,b_max_all[i]-b_min_all[i],bcnt);
}
for (i = 1; i < na; i++) {
const auto acnt = a_count_all[i]/3;
if (acnt)
mesg += fmt::format("{:>6d} {:<9.6} {:<11.6} {:>8d}\n",i,
a_ave_all[i]/acnt,a_max_all[i]-a_min_all[i],acnt);
a_ave_all[i]/acnt/3.0,a_max_all[i]-a_min_all[i],acnt);
}
utils::logmesg(lmp,mesg);
}
Expand Down
4 changes: 2 additions & 2 deletions src/USER-PLUMED/fix_plumed.cpp
Expand Up @@ -78,9 +78,9 @@ FixPlumed::FixPlumed(LAMMPS *lmp, int narg, char **arg) :

int api_version=0;
p->cmd("getApiVersion",&api_version);
if ((api_version < 5) || (api_version > 7))
if ((api_version < 5) || (api_version > 8))
error->all(FLERR,"Incompatible API version for PLUMED in fix plumed. "
"Only Plumed 2.4.x, 2.5.x, and 2.6.x are tested and supported.");
"Only Plumed 2.4.x, 2.5.x, 2.6.x, 2.7.x are tested and supported.");

#if !defined(MPI_STUBS)
// If the -partition option is activated then enable
Expand Down

0 comments on commit fb1cc56

Please sign in to comment.