MCPcopy Create free account
hub / github.com/OpenSees/OpenSees / Print

Method Print

DEVELOPER/core/Information.cpp:189–211  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

187}
188
189void
190Information::Print(OPS_Stream &s, int flag)
191{
192 if (theType == IntType)
193 s << theInt << " ";
194 else if (theType == DoubleType)
195 s << theDouble << " ";
196 else if (theType == IdType && theID != 0)
197 for (int i=0; i<theID->Size(); i++)
198 s << (*theID)(i) << " ";
199 else if (theType == VectorType && theVector != 0)
200 for (int i=0; i<theVector->Size(); i++)
201 s << (*theVector)(i) << " ";
202 else if (theType == MatrixType && theMatrix != 0) {
203 for (int i=0; i<theMatrix->noRows(); i++) {
204 for (int j=0; j<theMatrix->noCols(); j++)
205 s << (*theMatrix)(i,j) << " ";
206 s << endln;
207 }
208 }
209
210 return;
211}
212
213
214void

Callers

nothing calls this directly

Calls 3

SizeMethod · 0.45
noRowsMethod · 0.45
noColsMethod · 0.45

Tested by

no test coverage detected