15 |
|
visitorName = "ZConsVisitor"; |
16 |
|
|
17 |
|
//retrieve tolerance for z-constraint molecuels |
18 |
< |
data = info->getProperty(ZCONSTOL_ID); |
18 |
> |
data = info->getPropertyByName(ZCONSTOL_ID); |
19 |
|
|
20 |
|
if (!data){ |
21 |
|
cerr << "Can not get zconstraint tolerance from SimInfo" << endl; |
36 |
|
} |
37 |
|
|
38 |
|
//retrieve sample time of z-contraint |
39 |
< |
data = info->getProperty(ZCONSTIME_ID); |
39 |
> |
data = info->getPropertyByName(ZCONSTIME_ID); |
40 |
|
|
41 |
|
if (!data){ |
42 |
|
cerr << "Can not get zcons time from SimInfo" << endl; |
57 |
|
} |
58 |
|
|
59 |
|
//retrieve index of z-constraint molecules |
60 |
< |
data = info->getProperty(ZCONSPARADATA_ID); |
60 |
> |
data = info->getPropertyByName(ZCONSPARADATA_ID); |
61 |
|
if (!data){ |
62 |
|
cerr << "Can not get index of z-constraint molecules from SimInfo" << endl; |
63 |
|
haveZcons = false; |
95 |
|
}//end if (!data |
96 |
|
|
97 |
|
//retrieve output filename of z force |
98 |
< |
data = info->getProperty(ZCONSFILENAME_ID); |
98 |
> |
data = info->getPropertyByName(ZCONSFILENAME_ID); |
99 |
|
if (!data){ |
100 |
|
cerr << "Can not get filename of z-constraint output from SimInfo" << endl; |
101 |
|
haveZcons = false; |
215 |
|
|
216 |
|
|
217 |
|
//if there is not atom data, just skip it |
218 |
< |
data = sd->getProperty("ATOMDATA"); |
218 |
> |
data = sd->getPropertyByName("ATOMDATA"); |
219 |
|
if(data != NULL){ |
220 |
|
atomData = dynamic_cast<AtomData*>(data); |
221 |
|
if(atomData == NULL) |