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

Comparing branches/new_design/OOPSE-3.0/src/integrators/Integrator.cpp (file contents):
Revision 1906 by tim, Mon Dec 13 22:30:27 2004 UTC vs.
Revision 1907 by tim, Thu Jan 6 22:31:07 2005 UTC

# Line 36 | Line 36 | Integrator::Integrator(SimInfo* info)
36  
37      if (simParams->haveDt()) {
38          dt = simParams->getDt();
39 +    } else {
40 +            sprintf(painCave.errMsg,
41 +                    "Integrator Error: dt is not set\n");
42 +            painCave.isFatal = 1;
43 +            simError();
44      }
45      
46      if (simParams->haveRunTime()) {
47          runTime = simParams->getRunTime();
48 <    }
48 >    } else {
49  
50 +    }
51      // set the status, sample, and thermal kick times
52      if (simParams->haveSampleTime()){
53          sampleTime = simParams->getSampleTime();
54          statusTime = sampleTime;
55 <    }
50 <    else{
55 >    } else{
56          sampleTime = simParams->getRunTime();
57          statusTime = sampleTime;
58      }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines