| 187 | } |
| 188 | |
| 189 | void |
| 190 | Information::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 | |
| 214 | void |