| 931 | */ |
| 932 | |
| 933 | void |
| 934 | Domain::clearAll(void) { |
| 935 | // clear the loads and constraints from any load pattern |
| 936 | LoadPatternIter &thePatterns = this->getLoadPatterns(); |
| 937 | LoadPattern *thePattern; |
| 938 | while ((thePattern = thePatterns()) != 0) |
| 939 | thePattern->clearAll(); |
| 940 | |
| 941 | // clean out the containers |
| 942 | theElements->clearAll(); |
| 943 | theNodes->clearAll(); |
| 944 | theSPs->clearAll(); |
| 945 | thePCs->clearAll(); |
| 946 | theMPs->clearAll(); |
| 947 | theLoadPatterns->clearAll(); |
| 948 | theParameters->clearAll(); |
| 949 | numParameters = 0; |
| 950 | |
| 951 | // remove the recorders |
| 952 | int i; |
| 953 | for (i=0; i<numRecorders; i++) |
| 954 | if (theRecorders[i] != 0) |
| 955 | delete theRecorders[i]; |
| 956 | numRecorders = 0; |
| 957 | |
| 958 | if (theRecorders != 0) { |
| 959 | delete [] theRecorders; |
| 960 | theRecorders = 0; |
| 961 | } |
| 962 | |
| 963 | for (i=0; i<numRegions; i++) |
| 964 | delete theRegions[i]; |
| 965 | numRegions = 0; |
| 966 | |
| 967 | if (theRegions != 0) { |
| 968 | delete [] theRegions; |
| 969 | theRegions = 0; |
| 970 | } |
| 971 | |
| 972 | // set the time back to 0.0 |
| 973 | currentTime = 0.0; |
| 974 | committedTime = 0.0; |
| 975 | dT = 0.0; |
| 976 | |
| 977 | this->setModalDampingFactors(0); |
| 978 | |
| 979 | // set the bounds around the origin |
| 980 | theBounds(0) = 0; |
| 981 | theBounds(1) = 0; |
| 982 | theBounds(2) = 0; |
| 983 | theBounds(3) = 0; |
| 984 | theBounds(4) = 0; |
| 985 | theBounds(5) = 0; |
| 986 | |
| 987 | currentGeoTag = 0; |
| 988 | lastGeoSendTag = -1; |
| 989 | |
| 990 | // rest the flag to be as initial |
no test coverage detected