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

Comparing trunk/src/brains/Snapshot.cpp (file contents):
Revision 1924 by gezelter, Tue Jul 2 20:02:31 2013 UTC vs.
Revision 1925 by gezelter, Wed Aug 7 15:24:16 2013 UTC

# Line 70 | Line 70 | namespace OpenMD {
70      frameData.torsionPotential = 0.0;  
71      frameData.inversionPotential = 0.0;
72      frameData.lrPotentials = potVec(0.0);
73 +    frameData.reciprocalPotential = 0.0;
74      frameData.excludedPotentials = potVec(0.0);
75      frameData.restraintPotential = 0.0;
76      frameData.rawPotential = 0.0;  
# Line 103 | Line 104 | namespace OpenMD {
104      frameData.torsionPotential = 0.0;  
105      frameData.inversionPotential = 0.0;
106      frameData.lrPotentials = potVec(0.0);
107 +    frameData.reciprocalPotential = 0.0;
108      frameData.excludedPotentials = potVec(0.0);
109      frameData.restraintPotential = 0.0;
110      frameData.rawPotential = 0.0;      
# Line 414 | Line 416 | namespace OpenMD {
416      return frameData.shortRangePotential;
417    }
418  
419 +  void Snapshot::setReciprocalPotential(RealType rp){
420 +    frameData.reciprocalPotential = rp;
421 +  }
422 +
423 +  RealType Snapshot::getReciprocalPotential() {
424 +    return frameData.reciprocalPotential;
425 +  }
426 +
427    void Snapshot::setLongRangePotential(potVec lrPot) {
428      frameData.lrPotentials = lrPot;
429    }
# Line 423 | Line 433 | namespace OpenMD {
433        for (int i = 0; i < N_INTERACTION_FAMILIES; i++) {
434          frameData.longRangePotential += frameData.lrPotentials[i];
435        }
436 +      frameData.longRangePotential += frameData.reciprocalPotential;
437        hasLongRangePotential = true;
438      }  
439      return frameData.longRangePotential;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines