Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
openstructure
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
schwede
openstructure
Commits
f166c1fa
Commit
f166c1fa
authored
7 years ago
by
Gerardo Tauriello
Browse files
Options
Downloads
Patches
Plain Diff
Removed cmake-hard-coded OST path from settings.hh.
parent
1b7f6ea2
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
modules/mol/mm/doc/settings.rst
+5
-3
5 additions, 3 deletions
modules/mol/mm/doc/settings.rst
modules/mol/mm/src/settings.hh.in
+19
-4
19 additions, 4 deletions
modules/mol/mm/src/settings.hh.in
with
24 additions
and
7 deletions
modules/mol/mm/doc/settings.rst
+
5
−
3
View file @
f166c1fa
...
...
@@ -231,12 +231,14 @@ of the :class:`Simulation` object.
Path where OpenMM specific plugins are searched. If you want
to use other platforms than Reference, this has to be set.
default: "/usr/local/openmm/lib/plugins"
Defaults to *OPEN_MM_PLUGIN_DIR* which was set when
:ref:`configuring the compilation <cmake-flags>`.
.. attribute:: custom_plugin_directory
Path where custom plugins are searched for.
default: "/usr/local/openmm/lib/plugins"
Path where custom plugins are searched for. Defaults to
"share/openstructure/openmm_plugins" within the OST installation or to
:attr:`openmm_plugin_directory` if the OST path could not be determined.
...
...
This diff is collapsed.
Click to expand it.
modules/mol/mm/src/settings.hh.in
+
19
−
4
View file @
f166c1fa
...
...
@@ -30,6 +30,9 @@
#include <limits>
#include <ost/mol/residue_handle.hh>
#include <ost/mol/mm/forcefield.hh>
#include <ost/platform.hh>
#include <boost/filesystem/path.hpp>
#include <ost/log.hh>
namespace OpenMM{
class Integrator;//hacky way of telling the Integrator us around
...
...
@@ -91,7 +94,7 @@ typedef std::map<String,String> PropertyMap;
struct Settings{
Settings(): add_bonds(true),
Settings():
add_bonds(true),
add_angles(true),
add_dihedrals(true),
add_impropers(true),
...
...
@@ -134,10 +137,22 @@ struct Settings{
reaction_field_dielectric(78.3),
use_dispersion_correction(true),
keep_ff_specific_naming(true),
openmm_plugin_directory("@OPEN_MM_PLUGIN_DIR@"),
custom_plugin_directory("@STAGE_DIR@/share/openstructure/openmm_plugins")
openmm_plugin_directory("@OPEN_MM_PLUGIN_DIR@") {
try {
// try to guess custom_plugin_directory
boost::filesystem::path shared_path(GetSharedDataPath());
custom_plugin_directory = (shared_path / "openmm_plugins").string();
} catch (std::runtime_error& e) {
// fallback to OpenMM path (used to be default in OST before 1.7)
LOG_WARNING("Failed to find shared data path for openmm_plugins. "
"Please set custom_plugin_directory of Settings object "
"manually or ensure that OST_ROOT is set properly. "
"Caught exception: " << e.what());
custom_plugin_directory = openmm_plugin_directory;
}
{
}
}
//
bool add_bonds;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment