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

Comparing trunk/src/applications/dump2Xyz/Dump2XYZ.cpp (file contents):
Revision 1282 by gezelter, Wed Jul 30 18:11:19 2008 UTC vs.
Revision 1303 by cli2, Mon Oct 13 21:35:22 2008 UTC

# Line 127 | Line 127 | int main(int argc, char* argv[]){
127    DefaultAtomVisitor* defaultAtomVisitor = new DefaultAtomVisitor(info);
128    compositeVisitor->addVisitor(defaultAtomVisitor, 700);
129    
130 <  //create waterType visitor
131 <  if(args_info.watertype_flag){
132 <    WaterTypeVisitor* waterTypeVisitor = new WaterTypeVisitor;
133 <    compositeVisitor->addVisitor(waterTypeVisitor, 600);
130 >  // if we gave the -w option, we want to skip the waters:
131 >  std::cerr << "-w flag was set to:" << args_info.water_given << "\n";
132 >  if (!args_info.water_given) {
133 >    //create waterType visitor
134 >    if(args_info.watertype_flag){
135 >      WaterTypeVisitor* waterTypeVisitor = new WaterTypeVisitor;
136 >      compositeVisitor->addVisitor(waterTypeVisitor, 600);
137 >    }
138    }
139  
140    if (args_info.basetype_flag) {
# Line 265 | Line 269 | int main(int argc, char* argv[]){
269      
270    }//end for (int i = 0; i < nframes; i += args_info.frame_arg)
271  
268  delete xyzVisitor;
272    xyzStream.close();
273    delete prepareVisitor;
274    delete compositeVisitor;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines