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

Comparing trunk/src/rnemd/RNEMD.cpp (file contents):
Revision 1789 by gezelter, Wed Aug 29 20:52:19 2012 UTC vs.
Revision 1791 by gezelter, Fri Aug 31 16:48:50 2012 UTC

# Line 1541 | Line 1541 | namespace OpenMD {
1541          if(outputMask_[j]) {
1542            switch(j) {
1543            case Z:
1544 <            (data_[j].accumulator[i])->add(z);
1544 >            dynamic_cast<Accumulator *>(data_[j].accumulator[i])->add(z);
1545              break;
1546            case TEMPERATURE:
1547 <            data_[j].accumulator[i]->add(temp);
1547 >            dynamic_cast<Accumulator *>(data_[j].accumulator[i])->add(temp);
1548              break;
1549            case VELOCITY:
1550              dynamic_cast<VectorAccumulator *>(data_[j].accumulator[i])->add(vel);
1551              break;
1552            case DENSITY:
1553 <            data_[j].accumulator[i]->add(den);
1553 >            dynamic_cast<Accumulator *>(data_[j].accumulator[i])->add(den);
1554              break;
1555            }
1556          }
# Line 1747 | Line 1747 | namespace OpenMD {
1747      assert(bin < nBins_);
1748      RealType s;
1749      
1750 <    data_[index].accumulator[bin]->getAverage(s);
1750 >    dynamic_cast<Accumulator *>(data_[index].accumulator[bin])->getAverage(s);
1751      
1752      if (! isinf(s) && ! isnan(s)) {
1753        rnemdFile_ << "\t" << s;
# Line 1785 | Line 1785 | namespace OpenMD {
1785      assert(bin < nBins_);
1786      RealType s;
1787      
1788 <    data_[index].accumulator[bin]->getStdDev(s);
1788 >    dynamic_cast<Accumulator *>(data_[index].accumulator[bin])->getStdDev(s);
1789      
1790      if (! isinf(s) && ! isnan(s)) {
1791        rnemdFile_ << "\t" << s;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines