Skip to content

Commit

Permalink
Merge pull request #71 from GiovanniBussi/master
Browse files Browse the repository at this point in the history
Fix type of argument to plumed_cmd
  • Loading branch information
peastman authored Nov 7, 2023
2 parents 5406068 + 98b4941 commit c54094d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion platforms/cuda/src/CudaPlumedKernels.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ void CudaCalcPlumedForceKernel::executeOnWorkerThread() {
plumed_cmd(plumedmain, "setBox", &boxVectors[0][0]);
}
double virial[9];
plumed_cmd(plumedmain, "setVirial", &virial);
plumed_cmd(plumedmain, "setVirial", &virial[0]);

// Calculate the forces and energy.

Expand Down
2 changes: 1 addition & 1 deletion platforms/opencl/src/OpenCLPlumedKernels.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ void OpenCLCalcPlumedForceKernel::executeOnWorkerThread() {
plumed_cmd(plumedmain, "setBox", &boxVectors[0][0]);
}
double virial[9];
plumed_cmd(plumedmain, "setVirial", &virial);
plumed_cmd(plumedmain, "setVirial", &virial[0]);

// Calculate the forces and energy.

Expand Down
2 changes: 1 addition & 1 deletion platforms/reference/src/ReferencePlumedKernels.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ double ReferenceCalcPlumedForceKernel::execute(ContextImpl& context, bool includ
plumed_cmd(plumedmain, "setBox", &boxVectors[0][0]);
}
double virial[9];
plumed_cmd(plumedmain, "setVirial", &virial);
plumed_cmd(plumedmain, "setVirial", &virial[0]);

// Calculate the forces and energy.

Expand Down

0 comments on commit c54094d

Please sign in to comment.