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){ |
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 |
|
|
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; |