| 115 | |
| 116 | |
| 117 | int |
| 118 | FE_Datastore::commitState(int commitTag) |
| 119 | { |
| 120 | // invoke sendSelf on the domain object with this as an arg |
| 121 | int res = 0; |
| 122 | if (theDomain != 0) { |
| 123 | res = theDomain->sendSelf(commitTag, *this); |
| 124 | if (res < 0) { |
| 125 | opserr << "FE_Datastore::commitState - domain failed to sendSelf\n"; |
| 126 | return res; |
| 127 | } |
| 128 | ID maxlastDbTag(1); |
| 129 | maxlastDbTag(0) = lastDbTag; |
| 130 | if (this->sendID(0,0,maxlastDbTag) < 0) { |
| 131 | opserr << "FE_Datastore::commitState - failed to get max lastDbTag data from database - problems may ariise\n"; |
| 132 | } |
| 133 | } |
| 134 | |
| 135 | return res; |
| 136 | } |
| 137 | |
| 138 | |
| 139 | |