| 138 | |
| 139 | |
| 140 | int |
| 141 | FE_Datastore::restoreState(int commitTag) |
| 142 | { |
| 143 | // invoke sendSelf on the domain object with this as an arg |
| 144 | int res = 0; |
| 145 | if (theDomain != 0) { |
| 146 | res = theDomain->recvSelf(commitTag, *this, *theObjectBroker); |
| 147 | if (res < 0) { |
| 148 | opserr << "FE_Datastore::restoreState - domain failed to recvSelf\n"; |
| 149 | } |
| 150 | ID maxlastDbTag(1); |
| 151 | if (this->recvID(0,0,maxlastDbTag) < 0) { |
| 152 | opserr << "FE_Datastore::restoreState - failed to get max lastDbTag data from database - problems may ariise\n"; |
| 153 | } else |
| 154 | lastDbTag = maxlastDbTag(0); |
| 155 | |
| 156 | } |
| 157 | |
| 158 | return res; |
| 159 | } |
| 160 | |
| 161 | |
| 162 | |