Skip to content

Commit 5c24825

Browse files
committed
Changes for OpenMM 7.2
1 parent f1e1274 commit 5c24825

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

CMakeLists.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,10 @@ SET(OPENMM_DIR "/usr/local/openmm" CACHE PATH "Where OpenMM is installed")
99
INCLUDE_DIRECTORIES("${OPENMM_DIR}/include")
1010
LINK_DIRECTORIES("${OPENMM_DIR}/lib" "${OPENMM_DIR}/lib/plugins")
1111

12-
# set flags for linking on mac
12+
# Specify the C++ version we are building for.
13+
SET (CMAKE_CXX_STANDARD 11)
14+
15+
# Set flags for linking on mac
1316
IF(APPLE)
1417
SET (CMAKE_INSTALL_NAME_DIR "@rpath")
1518
SET(EXTRA_COMPILE_FLAGS "-msse2 -stdlib=libc++")

openmmapi/include/internal/ExampleForceImpl.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ class OPENMM_EXPORT_EXAMPLE ExampleForceImpl : public OpenMM::ForceImpl {
5555
const ExampleForce& getOwner() const {
5656
return owner;
5757
}
58-
void updateContextState(OpenMM::ContextImpl& context) {
58+
void updateContextState(OpenMM::ContextImpl& context, bool& forcesInvalid) {
5959
// This force field doesn't update the state directly.
6060
}
6161
double calcForcesAndEnergy(OpenMM::ContextImpl& context, bool includeForces, bool includeEnergy, int groups);

0 commit comments

Comments
 (0)