Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
tsoc
openmm
Commits
ab41f844
Commit
ab41f844
authored
Apr 14, 2014
by
John Chodera (MSKCC)
Browse files
Removed fiels that didn't below.
parent
36e01b67
Changes
6
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
504 additions
and
657 deletions
+504
-657
examples/Makefile
examples/Makefile
+462
-71
openmmapi/include/openmm/#CustomNonbondedForce.h#
openmmapi/include/openmm/#CustomNonbondedForce.h#
+0
-561
openmmapi/include/openmm/internal/AssertionUtilities.h~
openmmapi/include/openmm/internal/AssertionUtilities.h~
+2
-0
serialization/src/CustomNonbondedForceProxy.cpp
serialization/src/CustomNonbondedForceProxy.cpp
+10
-5
serialization/src/NonbondedForceProxy.cpp
serialization/src/NonbondedForceProxy.cpp
+11
-11
wrappers/python/src/swig_doxygen/doxygen/Doxyfile
wrappers/python/src/swig_doxygen/doxygen/Doxyfile
+19
-9
No files found.
examples/Makefile
View file @
ab41f844
This diff is collapsed.
Click to expand it.
openmmapi/include/openmm/#CustomNonbondedForce.h#
deleted
100644 → 0
View file @
36e01b67
This diff is collapsed.
Click to expand it.
openmmapi/include/openmm/internal/AssertionUtilities.h~
View file @
ab41f844
...
@@ -50,6 +50,8 @@ void OPENMM_EXPORT throwException(const char* file, int line, const std::string&
...
@@ -50,6 +50,8 @@ void OPENMM_EXPORT throwException(const char* file, int line, const std::string&
#define ASSERT_EQUAL(expected, found) {if (!((expected) == (found))) {std::stringstream details; details << "Expected "<<(expected)<<", found "<<(found); throwException(__FILE__, __LINE__, details.str());}};
#define ASSERT_EQUAL(expected, found) {if (!((expected) == (found))) {std::stringstream details; details << "Expected "<<(expected)<<", found "<<(found); throwException(__FILE__, __LINE__, details.str());}};
#define ASSERT_EQUAL_CONTAINERS(expected, found) {if (!((expected) == (found))) {std::stringstream details; details << "Containers not equal"; throwException(__FILE__, __LINE__, details.str());}};
#define ASSERT_EQUAL_TOL(expected, found, tol) {double _scale_ = std::abs(expected) > 1.0 ? std::abs(expected) : 1.0; if (!(std::abs((expected)-(found))/_scale_ <= (tol))) {std::stringstream details; details << "Expected "<<(expected)<<", found "<<(found); throwException(__FILE__, __LINE__, details.str());}};
#define ASSERT_EQUAL_TOL(expected, found, tol) {double _scale_ = std::abs(expected) > 1.0 ? std::abs(expected) : 1.0; if (!(std::abs((expected)-(found))/_scale_ <= (tol))) {std::stringstream details; details << "Expected "<<(expected)<<", found "<<(found); throwException(__FILE__, __LINE__, details.str());}};
#define ASSERT_EQUAL_VEC(expected, found, tol) {double _norm_ = std::sqrt((expected).dot(expected)); double _scale_ = _norm_ > 1.0 ? _norm_ : 1.0; if ((std::abs(((expected)[0])-((found)[0]))/_scale_ > (tol)) || (std::abs(((expected)[1])-((found)[1]))/_scale_ > (tol)) || (std::abs(((expected)[2])-((found)[2]))/_scale_ > (tol))) {std::stringstream details; details << " Expected "<<(expected)<<", found "<<(found); throwException(__FILE__, __LINE__, details.str());}};
#define ASSERT_EQUAL_VEC(expected, found, tol) {double _norm_ = std::sqrt((expected).dot(expected)); double _scale_ = _norm_ > 1.0 ? _norm_ : 1.0; if ((std::abs(((expected)[0])-((found)[0]))/_scale_ > (tol)) || (std::abs(((expected)[1])-((found)[1]))/_scale_ > (tol)) || (std::abs(((expected)[2])-((found)[2]))/_scale_ > (tol))) {std::stringstream details; details << " Expected "<<(expected)<<", found "<<(found); throwException(__FILE__, __LINE__, details.str());}};
...
...
serialization/src/CustomNonbondedForceProxy.cpp
View file @
ab41f844
...
@@ -103,9 +103,9 @@ void* CustomNonbondedForceProxy::deserialize(const SerializationNode& node) cons
...
@@ -103,9 +103,9 @@ void* CustomNonbondedForceProxy::deserialize(const SerializationNode& node) cons
CustomNonbondedForce
*
force
=
new
CustomNonbondedForce
(
node
.
getStringProperty
(
"energy"
));
CustomNonbondedForce
*
force
=
new
CustomNonbondedForce
(
node
.
getStringProperty
(
"energy"
));
force
->
setNonbondedMethod
((
CustomNonbondedForce
::
NonbondedMethod
)
node
.
getIntProperty
(
"method"
));
force
->
setNonbondedMethod
((
CustomNonbondedForce
::
NonbondedMethod
)
node
.
getIntProperty
(
"method"
));
force
->
setCutoffDistance
(
node
.
getDoubleProperty
(
"cutoff"
));
force
->
setCutoffDistance
(
node
.
getDoubleProperty
(
"cutoff"
));
force
->
setUseSwitchingFunction
(
node
.
getBoolProperty
(
"useSwitchingFunction"
));
force
->
setUseSwitchingFunction
(
node
.
getBoolProperty
(
"useSwitchingFunction"
,
false
));
force
->
setSwitchingDistance
(
node
.
getDoubleProperty
(
"switchingDistance"
));
force
->
setSwitchingDistance
(
node
.
getDoubleProperty
(
"switchingDistance"
,
-
1.0
));
force
->
setUseLongRangeCorrection
(
node
.
getBoolProperty
(
"useLongRangeCorrection"
));
force
->
setUseLongRangeCorrection
(
node
.
getBoolProperty
(
"useLongRangeCorrection"
,
false
));
const
SerializationNode
&
perParticleParams
=
node
.
getChildNode
(
"PerParticleParameters"
);
const
SerializationNode
&
perParticleParams
=
node
.
getChildNode
(
"PerParticleParameters"
);
for
(
int
i
=
0
;
i
<
(
int
)
perParticleParams
.
getChildren
().
size
();
i
++
)
{
for
(
int
i
=
0
;
i
<
(
int
)
perParticleParams
.
getChildren
().
size
();
i
++
)
{
const
SerializationNode
&
parameter
=
perParticleParams
.
getChildren
()[
i
];
const
SerializationNode
&
parameter
=
perParticleParams
.
getChildren
()[
i
];
...
@@ -149,6 +149,8 @@ void* CustomNonbondedForceProxy::deserialize(const SerializationNode& node) cons
...
@@ -149,6 +149,8 @@ void* CustomNonbondedForceProxy::deserialize(const SerializationNode& node) cons
force
->
addTabulatedFunction
(
function
.
getStringProperty
(
"name"
),
new
Continuous1DFunction
(
values
,
function
.
getDoubleProperty
(
"min"
),
function
.
getDoubleProperty
(
"max"
)));
force
->
addTabulatedFunction
(
function
.
getStringProperty
(
"name"
),
new
Continuous1DFunction
(
values
,
function
.
getDoubleProperty
(
"min"
),
function
.
getDoubleProperty
(
"max"
)));
}
}
}
}
// Look for interaction group definitions in a backward-compatible way.
try
{
const
SerializationNode
&
interactionGroups
=
node
.
getChildNode
(
"InteractionGroups"
);
const
SerializationNode
&
interactionGroups
=
node
.
getChildNode
(
"InteractionGroups"
);
for
(
int
i
=
0
;
i
<
(
int
)
interactionGroups
.
getChildren
().
size
();
i
++
)
{
for
(
int
i
=
0
;
i
<
(
int
)
interactionGroups
.
getChildren
().
size
();
i
++
)
{
const
SerializationNode
&
interactionGroup
=
interactionGroups
.
getChildren
()[
i
];
const
SerializationNode
&
interactionGroup
=
interactionGroups
.
getChildren
()[
i
];
...
@@ -164,6 +166,9 @@ void* CustomNonbondedForceProxy::deserialize(const SerializationNode& node) cons
...
@@ -164,6 +166,9 @@ void* CustomNonbondedForceProxy::deserialize(const SerializationNode& node) cons
set2
.
insert
(
set2node
.
getChildren
()[
j
].
getIntProperty
(
"index"
));
set2
.
insert
(
set2node
.
getChildren
()[
j
].
getIntProperty
(
"index"
));
force
->
addInteractionGroup
(
set1
,
set2
);
force
->
addInteractionGroup
(
set1
,
set2
);
}
}
}
catch
(
exception
&
e
)
{
// Do nothing, since we have to assume that InteractionGroups is not present and allow for this possibility.
}
return
force
;
return
force
;
}
}
catch
(...)
{
catch
(...)
{
...
...
serialization/src/NonbondedForceProxy.cpp
View file @
ab41f844
...
@@ -80,20 +80,20 @@ void* NonbondedForceProxy::deserialize(const SerializationNode& node) const {
...
@@ -80,20 +80,20 @@ void* NonbondedForceProxy::deserialize(const SerializationNode& node) const {
NonbondedForce
*
force
=
new
NonbondedForce
();
NonbondedForce
*
force
=
new
NonbondedForce
();
try
{
try
{
force
->
setNonbondedMethod
((
NonbondedForce
::
NonbondedMethod
)
node
.
getIntProperty
(
"method"
));
force
->
setNonbondedMethod
((
NonbondedForce
::
NonbondedMethod
)
node
.
getIntProperty
(
"method"
));
force
->
setCutoffDistance
(
node
.
getDoubleProperty
(
"cutoff"
));
force
->
setCutoffDistance
(
node
.
getDoubleProperty
(
"cutoff"
,
1.0
));
force
->
setUseSwitchingFunction
(
node
.
getDoubleProperty
(
"useSwitchingFunction"
));
force
->
setUseSwitchingFunction
(
node
.
getDoubleProperty
(
"useSwitchingFunction"
,
false
));
force
->
setSwitchingDistance
(
node
.
getDoubleProperty
(
"switchingDistance"
));
force
->
setSwitchingDistance
(
node
.
getDoubleProperty
(
"switchingDistance"
,
-
1.0
));
force
->
setEwaldErrorTolerance
(
node
.
getDoubleProperty
(
"ewaldTolerance"
));
force
->
setEwaldErrorTolerance
(
node
.
getDoubleProperty
(
"ewaldTolerance"
,
5e-4
));
force
->
setReactionFieldDielectric
(
node
.
getDoubleProperty
(
"rfDielectric"
));
force
->
setReactionFieldDielectric
(
node
.
getDoubleProperty
(
"rfDielectric"
,
78.3
));
force
->
setUseDispersionCorrection
(
node
.
getIntProperty
(
"dispersionCorrection"
));
force
->
setUseDispersionCorrection
(
node
.
getIntProperty
(
"dispersionCorrection"
,
true
));
double
alpha
;
double
alpha
;
int
nx
,
ny
,
nz
;
int
nx
,
ny
,
nz
;
alpha
=
node
.
getDoubleProperty
(
"alpha"
);
alpha
=
node
.
getDoubleProperty
(
"alpha"
,
0.0
);
nx
=
node
.
getIntProperty
(
"nx"
);
nx
=
node
.
getIntProperty
(
"nx"
,
0
);
ny
=
node
.
getIntProperty
(
"ny"
);
ny
=
node
.
getIntProperty
(
"ny"
,
0
);
nz
=
node
.
getIntProperty
(
"nz"
);
nz
=
node
.
getIntProperty
(
"nz"
,
0
);
force
->
setPMEParameters
(
alpha
,
nx
,
ny
,
nz
);
force
->
setPMEParameters
(
alpha
,
nx
,
ny
,
nz
);
force
->
setReciprocalSpaceForceGroup
(
node
.
getIntProperty
(
"recipForceGroup"
));
force
->
setReciprocalSpaceForceGroup
(
node
.
getIntProperty
(
"recipForceGroup"
,
-
1
));
const
SerializationNode
&
particles
=
node
.
getChildNode
(
"Particles"
);
const
SerializationNode
&
particles
=
node
.
getChildNode
(
"Particles"
);
for
(
int
i
=
0
;
i
<
(
int
)
particles
.
getChildren
().
size
();
i
++
)
{
for
(
int
i
=
0
;
i
<
(
int
)
particles
.
getChildren
().
size
();
i
++
)
{
const
SerializationNode
&
particle
=
particles
.
getChildren
()[
i
];
const
SerializationNode
&
particle
=
particles
.
getChildren
()[
i
];
...
...
wrappers/python/src/swig_doxygen/doxygen/Doxyfile
View file @
ab41f844
...
@@ -517,7 +517,7 @@ QUIET = NO
...
@@ -517,7 +517,7 @@ QUIET = NO
# generated by doxygen. Possible values are YES and NO. If left blank
# generated by doxygen. Possible values are YES and NO. If left blank
# NO is used.
# NO is used.
WARNINGS =
YES
WARNINGS =
NO
# If WARN_IF_UNDOCUMENTED is set to YES, then doxygen will generate warnings
# If WARN_IF_UNDOCUMENTED is set to YES, then doxygen will generate warnings
# for undocumented members. If EXTRACT_ALL is set to YES then this flag will
# for undocumented members. If EXTRACT_ALL is set to YES then this flag will
...
@@ -530,7 +530,7 @@ WARN_IF_UNDOCUMENTED = NO
...
@@ -530,7 +530,7 @@ WARN_IF_UNDOCUMENTED = NO
# parameters in a documented function, or documenting parameters that
# parameters in a documented function, or documenting parameters that
# don't exist or using markup commands wrongly.
# don't exist or using markup commands wrongly.
WARN_IF_DOC_ERROR =
YES
WARN_IF_DOC_ERROR =
NO
# This WARN_NO_PARAMDOC option can be abled to get warnings for
# This WARN_NO_PARAMDOC option can be abled to get warnings for
# functions that are documented, but have no documentation for their parameters
# functions that are documented, but have no documentation for their parameters
...
@@ -564,8 +564,14 @@ WARN_LOGFILE =
...
@@ -564,8 +564,14 @@ WARN_LOGFILE =
# directories like "/usr/src/myproject". Separate the files or directories
# directories like "/usr/src/myproject". Separate the files or directories
# with spaces.
# with spaces.
INPUT = "$(OPENMM_INCLUDE_PATH)/OpenMM.h" \
INPUT = "/Users/choderaj/code/openmm/openmm.jchodera/openmmapi" \
"$(OPENMM_INCLUDE_PATH)/openmm"
"/Users/choderaj/code/openmm/openmm.jchodera/olla/include/openmm/Platform.h" \
"/Users/choderaj/code/openmm/openmm.jchodera/serialization/include/openmm/serialization/SerializationNode.h" \
"/Users/choderaj/code/openmm/openmm.jchodera/serialization/include/openmm/serialization/SerializationProxy.h" \
"/Users/choderaj/code/openmm/openmm.jchodera/serialization/include/openmm/serialization/XmlSerializer.h" \
"/Users/choderaj/code/openmm/openmm.jchodera/plugins/amoeba/openmmapi" \
"/Users/choderaj/code/openmm/openmm.jchodera/plugins/rpmd/openmmapi" \
"/Users/choderaj/code/openmm/openmm.jchodera/plugins/drude/openmmapi"
# This tag can be used to specify the character encoding of the source files
# This tag can be used to specify the character encoding of the source files
# that doxygen parses. Internally doxygen uses the UTF-8 encoding, which is
# that doxygen parses. Internally doxygen uses the UTF-8 encoding, which is
...
@@ -594,7 +600,7 @@ RECURSIVE = YES
...
@@ -594,7 +600,7 @@ RECURSIVE = YES
# excluded from the INPUT source files. This way you can easily exclude a
# excluded from the INPUT source files. This way you can easily exclude a
# subdirectory from a directory tree whose root is specified with the INPUT tag.
# subdirectory from a directory tree whose root is specified with the INPUT tag.
EXCLUDE =
EXCLUDE =
*Impl.h
# The EXCLUDE_SYMLINKS tag can be used select whether or not files or
# The EXCLUDE_SYMLINKS tag can be used select whether or not files or
# directories that are symbolic links (a Unix filesystem feature) are excluded
# directories that are symbolic links (a Unix filesystem feature) are excluded
...
@@ -608,11 +614,15 @@ EXCLUDE_SYMLINKS = NO
...
@@ -608,11 +614,15 @@ EXCLUDE_SYMLINKS = NO
# against the file with absolute path, so to exclude all test directories
# against the file with absolute path, so to exclude all test directories
# for example use the pattern */test/*
# for example use the pattern */test/*
#EXCLUDE_PATTERNS = */tests/* \
# */src/* \
# */.svn/*
EXCLUDE_PATTERNS = */tests/* \
EXCLUDE_PATTERNS = */tests/* \
*/.svn/*
*/openmmapi/src/* \
*/internal/* \
*/.svn/* \
*amoebaKernels.h \
*DrudeKernels.h \
*RpmdKernels.h \
*OpenMMFortranModule.f90 \
*OpenMMCWrapper.h
# The EXCLUDE_SYMBOLS tag can be used to specify one or more symbol names
# The EXCLUDE_SYMBOLS tag can be used to specify one or more symbol names
# (namespaces, classes, functions, etc.) that should be excluded from the
# (namespaces, classes, functions, etc.) that should be excluded from the
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment