ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE/utils/zsub.cpp
(Generate patch)

Comparing trunk/OOPSE/utils/zsub.cpp (file contents):
Revision 1107 by tim, Mon Mar 1 21:17:27 2004 UTC vs.
Revision 1108 by tim, Wed Apr 14 15:37:41 2004 UTC

# Line 88 | Line 88 | int main(int argc, char* argv[]){
88      zmolPos = zReader->getZConsPos();
89      
90      atomToZMol = getAtomToZMol(info, zmolIndex);
91 <
91 >  
92      //get tolerance
93      GenericData* data;
94      DoubleData* toleranceData;
# Line 109 | Line 109 | int main(int argc, char* argv[]){
109        else{
110          zconsTol = toleranceData->getData();
111        }
112 +
113 +      if (zReader->hasNextFrame())
114 +        zReader->readNextFrame();
115 +
116      }    
117  
118  
119      
120    }
121  
122 +
123    xyzStream = new ofstream(xyzFileName.c_str());
124    for (int i = 0; i < nFrame; i += args_info.frame_arg){
125      dumpReader->readFrame(info, i);
126 +    
127      if (args_info.replace_given && info->nZconstraints > 0){    
128 +
129 +      while (zReader->getCurTime() < info->currentTime){
130 +        // (zReader->hasNextFrame())
131 +          zReader->readNextFrame();
132 +      }
133 +
134 +      zmolPos = zReader->getZConsPos();
135 +
136        replaceAtomType(info, zmolIndex, zmolPos, atomToZMol, zconsTol);
137      }
138      dumpToXYZ(info, xyzStream,args_info.repeatX_arg,

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines