ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/branches/new_design/OOPSE-2.0/src/visitors/ZconsVisitor.cpp
(Generate patch)

Comparing branches/new_design/OOPSE-2.0/src/visitors/ZconsVisitor.cpp (file contents):
Revision 1911 by tim, Mon Jan 10 18:05:45 2005 UTC vs.
Revision 1912 by tim, Mon Jan 10 20:52:07 2005 UTC

# Line 2 | Line 2
2   #include <cmath>
3   #include "visitors/ZconsVisitor.hpp"
4   #include "primitives/Molecule.hpp"
5 <
5 > #include "utils/StringUtils.hpp"
6   namespace oopse {
7  
8   ZConsVisitor::ZConsVisitor(SimInfo* info) : BaseVisitor(), info_(info), zconsReader_(NULL){
# Line 56 | Line 56 | ZConsVisitor::ZConsVisitor(SimInfo* info) : BaseVisito
56              zatomToZmol_.insert(std::make_pair(at->getGlobalIndex(), mol->getGlobalIndex()));
57          }
58      }
59 +
60 +    zconsFilename_ = getPrefix(info_->getFinalConfigFileName()) + ".fz";
61      
62      zconsReader_ = new ZConsReader(info);
63  
# Line 116 | Line 118 | void ZConsVisitor::readZconsFile(double time) {
118  
119   void ZConsVisitor::readZconsFile(double time) {
120      double tempTime;
121 <    while(true){
121 >    while(zconsReader_->hasNextFrame()){
122          tempTime = zconsReader_->getCurTime();
123          if(tempTime >= time) {
124              return;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines