Skip to content
Snippets Groups Projects
Commit 0d518bac authored by Gareth Tribello's avatar Gareth Tribello
Browse files

Stuff for intermolecular DRMSD

parent c364b7f3
No related branches found
No related tags found
No related merge requests found
...@@ -24,6 +24,7 @@ ...@@ -24,6 +24,7 @@
#include "ActionRegister.h" #include "ActionRegister.h"
#include "tools/PDB.h" #include "tools/PDB.h"
#include "reference/DRMSD.h" #include "reference/DRMSD.h"
#include "reference/MetricRegister.h"
#include "core/Atoms.h" #include "core/Atoms.h"
using namespace std; using namespace std;
...@@ -95,6 +96,7 @@ void DRMSD::registerKeywords(Keywords& keys){ ...@@ -95,6 +96,7 @@ void DRMSD::registerKeywords(Keywords& keys){
keys.add("compulsory","REFERENCE","a file in pdb format containing the reference structure and the atoms involved in the CV."); keys.add("compulsory","REFERENCE","a file in pdb format containing the reference structure and the atoms involved in the CV.");
keys.add("compulsory","LOWER_CUTOFF","only pairs of atoms further than LOWER_CUTOFF are considered in the calculation."); keys.add("compulsory","LOWER_CUTOFF","only pairs of atoms further than LOWER_CUTOFF are considered in the calculation.");
keys.add("compulsory","UPPER_CUTOFF","only pairs of atoms closer than UPPER_CUTOFF are considered in the calculation."); keys.add("compulsory","UPPER_CUTOFF","only pairs of atoms closer than UPPER_CUTOFF are considered in the calculation.");
keys.add("compulsory","TYPE","DRMSD","what kind of DRMSD would you like to calculate");
} }
DRMSD::DRMSD(const ActionOptions&ao): DRMSD::DRMSD(const ActionOptions&ao):
...@@ -120,8 +122,8 @@ PLUMED_COLVAR_INIT(ao), pbc_(true), myvals(1,0), mypack(0,0,myvals) ...@@ -120,8 +122,8 @@ PLUMED_COLVAR_INIT(ao), pbc_(true), myvals(1,0), mypack(0,0,myvals)
error("missing input file " + reference ); error("missing input file " + reference );
// store target_ distance // store target_ distance
ReferenceConfigurationOptions ro( "DRMSD" ); std::string type; parse("TYPE",type);
drmsd_= new PLMD::DRMSD( ro ); drmsd_= metricRegister().create<PLMD::DRMSD>( type );
drmsd_->setBoundsOnDistances( !nopbc, lcutoff, ucutoff ); drmsd_->setBoundsOnDistances( !nopbc, lcutoff, ucutoff );
drmsd_->set( pdb ); drmsd_->set( pdb );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment