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

Comparing trunk/src/applications/hydrodynamics/Hydro.cpp (file contents):
Revision 1176 by gezelter, Wed Aug 30 21:13:57 2006 UTC vs.
Revision 1177 by xsun, Tue Aug 14 17:40:33 2007 UTC

# Line 154 | Line 154 | int main(int argc, char* argv[]){
154  
155  
156    
157  std::ofstream outputDiff(outputFilename.c_str());
157    std::map<std::string, SDShape>::iterator si;
158    for (si = uniqueStuntDoubles.begin(); si != uniqueStuntDoubles.end(); ++si) {
159        HydrodynamicsModel* model;
# Line 180 | Line 179 | int main(int argc, char* argv[]){
179          //if beads option is turned on, skip the calculation
180          if (!args_info.beads_flag) {
181            model->calcHydroProps(shape, viscosity, temperature);
182 +          std::ofstream outputDiff;
183 +          outputDiff.open(outputFilename.c_str());
184            model->writeHydroProps(outputDiff);
185 +          outputDiff.close();
186          }
187          
188          delete model;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines