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 |
|
} |
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 |
|
} |
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 |
|
} |
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 |
|
} |
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 |
|
} |
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 |
|
} |
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 |
|
} |
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 |
|
} |
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 |
|
} |