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

Comparing branches/new_design/OOPSE-2.0/src/visitors/ZconsVisitor.cpp (file contents):
Revision 1829 by tim, Thu Dec 2 05:04:20 2004 UTC vs.
Revision 1830 by tim, Thu Dec 2 05:17:10 2004 UTC

# Line 20 | Line 20 | ZConsVisitor::ZConsVisitor(SimInfo* info) : BaseVisito
20    data = info->getPropertyByName(ZCONSTOL_ID);
21  
22    if (!data){
23 <    cerr << "Can not get zconstraint tolerance from SimInfo" << endl;
23 >    std::cerr << "Can not get zconstraint tolerance from SimInfo" << std::endl;
24      haveZcons = false;  
25      return;
26    }
# Line 28 | Line 28 | ZConsVisitor::ZConsVisitor(SimInfo* info) : BaseVisito
28      tolerance = dynamic_cast<DoubleGenericData*>(data);
29  
30      if (!tolerance){
31 <      cerr << "Can not get zconstraint tolerance  from SimInfo" << endl;
31 >      std::cerr << "Can not get zconstraint tolerance  from SimInfo" << std::endl;
32        haveZcons = false;    
33        return;
34      }
# Line 41 | Line 41 | ZConsVisitor::ZConsVisitor(SimInfo* info) : BaseVisito
41    data = info->getPropertyByName(ZCONSTIME_ID);
42  
43    if (!data){
44 <    cerr << "Can not get zcons time  from SimInfo" << endl;
44 >    std::cerr << "Can not get zcons time  from SimInfo" << std::endl;
45      haveZcons = false;    
46      return;
47    }
# Line 49 | Line 49 | ZConsVisitor::ZConsVisitor(SimInfo* info) : BaseVisito
49      sampleTime = dynamic_cast<DoubleGenericData*>(data);
50  
51      if (!sampleTime){
52 <      cerr << "Can not get zcons time  from SimInfo" << endl;
52 >      std::cerr << "Can not get zcons time  from SimInfo" << std::endl;
53        haveZcons = false;    
54        return;
55      }
# Line 61 | Line 61 | ZConsVisitor::ZConsVisitor(SimInfo* info) : BaseVisito
61    //retrieve index of z-constraint molecules
62    data = info->getPropertyByName(ZCONSPARADATA_ID);
63    if (!data){
64 <    cerr << "Can not get index of z-constraint molecules from SimInfo" << endl;
64 >    std::cerr << "Can not get index of z-constraint molecules from SimInfo" << std::endl;
65      haveZcons = false;
66      return;
67    }
# Line 69 | Line 69 | ZConsVisitor::ZConsVisitor(SimInfo* info) : BaseVisito
69      zConsParaData = dynamic_cast<ZConsParaData*>(data);
70  
71      if (!zConsParaData){
72 <      cerr << "Can not get index of z-constraint molecules from SimInfo" << endl;
72 >      std::cerr << "Can not get index of z-constraint molecules from SimInfo" << std::endl;
73        haveZcons = false;
74        return;
75      }
# Line 87 | Line 87 | ZConsVisitor::ZConsVisitor(SimInfo* info) : BaseVisito
87        }
88  
89        if(zconsMol.size() < 1){
90 <        cerr << "number of zconstraint molecules is less than one" << endl;
90 >        std::cerr << "number of zconstraint molecules is less than one" << std::endl;
91          haveZcons = false;
92          return;
93        }
# Line 99 | Line 99 | ZConsVisitor::ZConsVisitor(SimInfo* info) : BaseVisito
99    //retrieve output filename of z force
100    data = info->getPropertyByName(ZCONSFILENAME_ID);
101    if (!data){
102 <    cerr << "Can not get filename of z-constraint output from SimInfo" << endl;
102 >    std::cerr << "Can not get filename of z-constraint output from SimInfo" << std::endl;
103      haveZcons = false;
104      return;
105    }
# Line 107 | Line 107 | ZConsVisitor::ZConsVisitor(SimInfo* info) : BaseVisito
107      filename = dynamic_cast<StringGenericData*>(data);
108  
109      if (!filename){
110 <      cerr << "Can not get filename of z-constraint output from SimInfo" << endl;
110 >      std::cerr << "Can not get filename of z-constraint output from SimInfo" << std::endl;
111        haveZcons = false;
112        return;
113      }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines