ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/OpenMD/branches/development/src/brains/MoleculeCreator.cpp
(Generate patch)

Comparing branches/development/src/brains/MoleculeCreator.cpp (file contents):
Revision 1715 by gezelter, Tue May 22 21:55:31 2012 UTC vs.
Revision 1775 by gezelter, Wed Aug 8 18:45:52 2012 UTC

# Line 180 | Line 180 | namespace OpenMD {
180      // Does this molecule stamp define a total constrained charge value?
181      // If so, let the created molecule know about it.
182  
183 <    if (molStamp->haveConstrainedCharge() ) {
184 <      mol->setConstrainedCharge( molStamp->getConstrainedCharge() );
183 >    if (molStamp->haveConstrainTotalCharge() ) {
184 >      mol->setConstrainTotalCharge( molStamp->getConstrainTotalCharge() );
185      }
186  
187      //the construction of this molecule is finished
# Line 206 | Line 206 | namespace OpenMD {
206        painCave.isFatal = 1;
207        simError();
208      }
209 <    
209 >
210      //below code still have some kind of hard-coding smell
211      if (atomType->isDirectional()){
212 +
213        DirectionalAtom* dAtom;
214        dAtom = new DirectionalAtom(atomType);
215        atom = dAtom;    

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines