Skip to content

Commit

Permalink
Updates for GROMACS 2021.
Browse files Browse the repository at this point in the history
  • Loading branch information
eirrgang committed Feb 11, 2021
1 parent 2eb87a8 commit cf2da02
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion ci_scripts/install_gromacs_2021.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ pushd $HOME
-DGMX_DOUBLE=$GMX_DOUBLE \
-DGMX_MPI=$GMX_MPI \
-DGMX_THREAD_MPI=$GMX_THREAD_MPI \
-DGMXAPI=ON \
-DGMX_INSTALL_LEGACY_API=ON \
-DCMAKE_INSTALL_PREFIX=$HOME/install/gromacs_2021 \
..
make -j2 install
Expand Down
4 changes: 2 additions & 2 deletions src/cpp/brerpotential.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ void BRER::callback(gmx::Vector v, gmx::Vector v0, double t,
}

if (fabs(alpha_ - alpha_prev_) < tolerance_) {
converged_ = TRUE;
converged_ = true;
if (parameter_file_) {
writeparameters(t, R);
}
Expand All @@ -137,7 +137,7 @@ void BRER::callback(gmx::Vector v, gmx::Vector v0, double t,
}

gmx::PotentialPointData BRER::calculate(gmx::Vector v, gmx::Vector v0,
gmx_unused double t) {
double t) {
// Our convention is to calculate the force that will be applied to v.
// An equal and opposite force is applied to v0.
auto rdiff = v - v0;
Expand Down
2 changes: 1 addition & 1 deletion src/cpp/brerpotential.h
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ class BRER {
// restraint as an argument.

gmx::PotentialPointData calculate(gmx::Vector v, gmx::Vector v0,
gmx_unused double t);
double t);

void writeparameters(double t, const double R);

Expand Down
2 changes: 1 addition & 1 deletion src/cpp/linearpotential.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ void Linear::callback(gmx::Vector v, gmx::Vector v0, double t,
}

gmx::PotentialPointData Linear::calculate(gmx::Vector v, gmx::Vector v0,
gmx_unused double t) {
double t) {
// Our convention is to calculate the force that will be applied to v.
// An equal and opposite force is applied to v0.
auto rdiff = v - v0;
Expand Down
4 changes: 2 additions & 2 deletions src/cpp/linearpotential.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,15 @@ class Linear {
std::string filename);

gmx::PotentialPointData calculate(gmx::Vector v, gmx::Vector v0,
gmx_unused double t);
double t);

void writeparameters(double t, const double R);

void callback(gmx::Vector v, gmx::Vector v0, double t,
const Resources &resources);

private:
bool initialized_{FALSE};
bool initialized_{false};
double alpha_;

/// target distance
Expand Down
2 changes: 1 addition & 1 deletion src/cpp/linearstoppotential.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ void LinearStop::callback(gmx::Vector v, gmx::Vector v0, double t,
}

gmx::PotentialPointData LinearStop::calculate(gmx::Vector v, gmx::Vector v0,
gmx_unused double t) {
double t) {
// Our convention is to calculate the force that will be applied to v.
// An equal and opposite force is applied to v0.
time_ = t;
Expand Down
2 changes: 1 addition & 1 deletion src/cpp/linearstoppotential.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class LinearStop {
// be able to better optimize a free function that receives the current
// restraint as an argument.
gmx::PotentialPointData calculate(gmx::Vector v, gmx::Vector v0,
gmx_unused double t);
double t);

void writeparameters(double t, const double R);

Expand Down

0 comments on commit cf2da02

Please sign in to comment.