| 89 | bool ops_InitialStateAnalysis = false; |
| 90 | |
| 91 | Domain::Domain() |
| 92 | :theRecorders(0), numRecorders(0), |
| 93 | currentTime(0.0), committedTime(0.0), dT(0.0), currentGeoTag(0), |
| 94 | hasDomainChangedFlag(false), theDbTag(0), lastGeoSendTag(-1), |
| 95 | dbEle(0), dbNod(0), dbSPs(0), dbPCs(0), dbMPs(0), dbLPs(0), dbParam(0), |
| 96 | eleGraphBuiltFlag(false), nodeGraphBuiltFlag(false), theNodeGraph(0), |
| 97 | theElementGraph(0), |
| 98 | theRegions(0), numRegions(0), commitTag(0), |
| 99 | theBounds(6), theEigenvalues(0), theEigenvalueSetTime(0), |
| 100 | theModalDampingFactors(0), inclModalMatrix(false), |
| 101 | lastChannel(0), |
| 102 | paramIndex(0), paramSize(0), numParameters(0) |
| 103 | { |
| 104 | |
| 105 | // init the arrays for storing the domain components |
| 106 | theElements = new MapOfTaggedObjects(); |
| 107 | theNodes = new MapOfTaggedObjects(); |
| 108 | theSPs = new MapOfTaggedObjects(); |
| 109 | thePCs = new MapOfTaggedObjects(); |
| 110 | theMPs = new MapOfTaggedObjects(); |
| 111 | theLoadPatterns = new MapOfTaggedObjects(); |
| 112 | theParameters = new MapOfTaggedObjects(); |
| 113 | |
| 114 | // init the iters |
| 115 | theEleIter = new SingleDomEleIter(theElements); |
| 116 | theNodIter = new SingleDomNodIter(theNodes); |
| 117 | theSP_Iter = new SingleDomSP_Iter(theSPs); |
| 118 | thePC_Iter = new SingleDomPC_Iter(thePCs); |
| 119 | theMP_Iter = new SingleDomMP_Iter(theMPs); |
| 120 | theLoadPatternIter = new LoadPatternIter(theLoadPatterns); |
| 121 | allSP_Iter = new SingleDomAllSP_Iter(*this); |
| 122 | theParamIter = new SingleDomParamIter(theParameters); |
| 123 | |
| 124 | // check that there was space to create the data structures |
| 125 | if (theElements ==0 || theNodes == 0 || |
| 126 | theSPs == 0 || theMPs == 0 || thePCs == 0 || |
| 127 | theEleIter == 0 || theNodIter == 0 || |
| 128 | theMP_Iter == 0 || theSP_Iter == 0 || thePC_Iter == 0 || |
| 129 | theLoadPatterns == 0 || theLoadPatternIter == 0 || |
| 130 | theParameters == 0) { |
| 131 | |
| 132 | opserr << "Domain::Domain() - out of memory\n"; |
| 133 | exit(-1); |
| 134 | } |
| 135 | |
| 136 | theBounds(0) = 0; |
| 137 | theBounds(1) = 0; |
| 138 | theBounds(2) = 0; |
| 139 | theBounds(3) = 0; |
| 140 | theBounds(4) = 0; |
| 141 | theBounds(5) = 0; |
| 142 | } |
| 143 | |
| 144 | |
| 145 | Domain::Domain(int numNodes, int numElements, int numSPs, int numMPs, |
nothing calls this directly
no test coverage detected