NAMD
Public Member Functions | List of all members
GlobalMasterSymmetry Class Reference

#include <GlobalMasterSymmetry.h>

Inheritance diagram for GlobalMasterSymmetry:
GlobalMaster

Public Member Functions

 GlobalMasterSymmetry ()
 
 ~GlobalMasterSymmetry ()
 
- Public Member Functions inherited from GlobalMaster
void processData (AtomIDList::iterator a_i, AtomIDList::iterator a_e, PositionList::iterator p_i, PositionList::iterator g_i, PositionList::iterator g_e, BigRealList::iterator gm_i, BigRealList::iterator gm_e, ForceList::iterator gtf_i, ForceList::iterator gtf_e, IntList::iterator goi_i, IntList::iterator goi_e, BigRealList::iterator gov_i, BigRealList::iterator gov_e, AtomIDList::iterator last_atoms_forced_i, AtomIDList::iterator last_atoms_forced_e, ForceList::iterator last_forces_i, AtomIDList::iterator, AtomIDList::iterator, ForceList::iterator)
 
bool changedAtoms ()
 
const AtomIDListrequestedAtoms ()
 
bool changedForces ()
 
const AtomIDListforcedAtoms ()
 
const ForceListappliedForces ()
 
bool changedGroups ()
 
const ResizeArray< AtomIDList > & requestedGroups ()
 
const ForceListgroupForces ()
 
bool changedGridObjs ()
 
const IntListrequestedGridObjs ()
 
const BigRealListgridObjForces ()
 
bool requestedTotalForces ()
 
void clearChanged ()
 
virtual ~GlobalMaster ()
 
void check () const
 
void setLattice (const Lattice *lat)
 

Additional Inherited Members

- Public Attributes inherited from GlobalMaster
int step
 
int old_num_groups_requested
 
- Protected Member Functions inherited from GlobalMaster
 GlobalMaster ()
 
AtomIDListmodifyRequestedAtoms ()
 
AtomIDListmodifyForcedAtoms ()
 
ForceListmodifyAppliedForces ()
 
ResizeArray< AtomIDList > & modifyRequestedGroups ()
 
ForceListmodifyGroupForces ()
 
IntListmodifyRequestedGridObjects ()
 
BigRealListmodifyGridObjForces ()
 
AtomIDList::const_iterator getAtomIdBegin ()
 
AtomIDList::const_iterator getAtomIdEnd ()
 
PositionList::const_iterator getAtomPositionBegin ()
 
PositionList::const_iterator getGroupPositionBegin ()
 
PositionList::const_iterator getGroupPositionEnd ()
 
ForceList::const_iterator getGroupTotalForceBegin ()
 
ForceList::const_iterator getGroupTotalForceEnd ()
 
IntList::const_iterator getGridObjIndexBegin ()
 
IntList::const_iterator getGridObjIndexEnd ()
 
BigRealList::const_iterator getGridObjValueBegin ()
 
BigRealList::const_iterator getGridObjValueEnd ()
 
AtomIDList::const_iterator getLastAtomsForcedBegin ()
 
AtomIDList::const_iterator getLastAtomsForcedEnd ()
 
ForceList::const_iterator getLastForcesBegin ()
 
AtomIDList::const_iterator getForceIdBegin ()
 
AtomIDList::const_iterator getForceIdEnd ()
 
ForceList::const_iterator getTotalForce ()
 
void requestTotalForce (bool yesno=true)
 
BigRealList::const_iterator getGroupMassBegin ()
 
BigRealList::const_iterator getGroupMassEnd ()
 
- Protected Attributes inherited from GlobalMaster
bool totalForceRequested
 
const Latticelattice
 
AtomIDList::iterator atomIdBegin
 
AtomIDList::iterator atomIdEnd
 
PositionList::iterator atomPositionBegin
 
PositionList::iterator groupPositionBegin
 
PositionList::iterator groupPositionEnd
 
BigRealList::iterator groupMassBegin
 
BigRealList::iterator groupMassEnd
 
ForceList::iterator groupTotalForceBegin
 
ForceList::iterator groupTotalForceEnd
 
IntList::iterator gridObjIndexBegin
 
IntList::iterator gridObjIndexEnd
 
BigRealList::iterator gridObjValueBegin
 
BigRealList::iterator gridObjValueEnd
 
AtomIDList::iterator lastAtomsForcedBegin
 
ForceList::iterator lastForcesBegin
 
AtomIDList::iterator lastAtomsForcedEnd
 
AtomIDList::iterator forceIdBegin
 
AtomIDList::iterator forceIdEnd
 
ForceList::iterator totalForceBegin
 
bool reqAtomsChanged
 
AtomIDList reqAtoms
 
bool appForcesChanged
 
AtomIDList fAtoms
 
ForceList appForces
 
bool reqGroupsChanged
 
ResizeArray< AtomIDListreqGroups
 
ForceList grpForces
 
bool reqGridObjsChanged
 
IntList reqGridObjs
 
BigRealList gridobjForces
 

Detailed Description

Copyright (c) 1995, 1996, 1997, 1998, 1999, 2000 by The Board of Trustees of the University of Illinois. All rights reserved.

Definition at line 16 of file GlobalMasterSymmetry.h.

Constructor & Destructor Documentation

GlobalMasterSymmetry::GlobalMasterSymmetry ( )

Definition at line 57 of file GlobalMasterSymmetry.C.

References Node::configList, StringList::data, DebugM, ConfigList::find(), SimParameters::firstTimestep, Node::molecule, NAMD_die(), StringList::next, Molecule::numAtoms, Node::Object(), Node::simParameters, SimParameters::symmetryFirstFullStep, SimParameters::symmetryFirstStep, SimParameters::symmetryk, SimParameters::symmetryLastFullStep, SimParameters::symmetryLastStep, and SimParameters::symmetryScaleForces.

57  {
58  DebugM(3,"initialize called\n");
60  currentStep = params->firstTimestep;
61  firstStep = params->symmetryFirstStep;
62  lastStep = params->symmetryLastStep;
63  firstFullStep = params->symmetryFirstFullStep;
64  lastFullStep = params->symmetryLastFullStep;
65  K = params->symmetryk;
66 
67  StringList *klist = Node::Object()->configList->find("symmetrykfile");
68  if (!K){
69  //if (!params->symmetrykfile){NAMD_die("A pdb file containing per-atom force constants must be specified if symmetryk is not in configuration file!");}
70  if (!klist){NAMD_die("A pdb file containing per-atom force constants must be specified if symmetryk is not in configuration file!");}
71  //symmetrykfile = params->symmetrykfile;
72  }
73  scaleForces = params->symmetryScaleForces;
74  if (scaleForces && lastStep == -1){
75  NAMD_die("symmetryLastStep must be specified if symmetryScaleForces is enabled!");
76  }
77  StringList *matrixList = Node::Object()->configList->find("symmetryMatrixFile");
78  StringList *symmetryList = Node::Object()->configList->find("symmetryFile");
79  int symfileindex = 0;
80  if (!K) {symmetrykfile = klist->data;}
81  for (; symmetryList; symmetryList = symmetryList->next) {
82  parseAtoms(symmetryList->data, Node::Object()->molecule->numAtoms, symfileindex);
83  if(!K){
84  klist = klist->next;
85  if (klist){ symmetrykfile = klist->data;}
86  }
87  }
88 
89  map<int, vector<int> >::iterator it = simmap.begin();
90  if (!matrixList) {initialTransform();}
91  for (; matrixList; matrixList = matrixList->next, ++it){
92  parseMatrix(it->first, matrixList->data);
93  }
94 
95  DebugM(1,"done with initialize\n");
96 }
static Node * Object()
Definition: Node.h:86
SimParameters * simParameters
Definition: Node.h:178
int symmetryLastFullStep
#define DebugM(x, y)
Definition: Debug.h:59
Bool symmetryScaleForces
int numAtoms
Definition: Molecule.h:556
void NAMD_die(const char *err_msg)
Definition: common.C:83
ConfigList * configList
Definition: Node.h:179
StringList * next
Definition: ConfigList.h:49
char * data
Definition: ConfigList.h:48
BigReal symmetryk
StringList * find(const char *name) const
Definition: ConfigList.C:341
int symmetryFirstFullStep
Molecule * molecule
Definition: Node.h:176
GlobalMasterSymmetry::~GlobalMasterSymmetry ( )

Definition at line 395 of file GlobalMasterSymmetry.C.

395  {
396  map <int, BigReal *>::iterator pit = posmap.begin();
397  for (; pit != posmap.end(); ++pit){delete pit->second;}
398 }

The documentation for this class was generated from the following files: