| 42 | #include <Matrix.h> |
| 43 | |
| 44 | GSA_Recorder::GSA_Recorder(Domain &theDom, |
| 45 | const char *fileName, |
| 46 | const char *title1, |
| 47 | const char *title2, |
| 48 | const char *title3, |
| 49 | const char *jobno, |
| 50 | const char *initials, |
| 51 | const char *spec, |
| 52 | const char *currency, |
| 53 | const char *length, |
| 54 | const char *force, |
| 55 | const char *temp, |
| 56 | double dT, |
| 57 | double rTolDt) |
| 58 | : Recorder(RECORDER_TAGS_GSA_Recorder), |
| 59 | theDomain(&theDom), ndm(3), ndf(6), counter(0), deltaT(dT), relDeltaTTol(rTolDt), nextTimeStampToRecord(0.0) |
| 60 | { |
| 61 | // open file |
| 62 | if (theFile.setFile(fileName, OVERWRITE) < 0) { |
| 63 | opserr << "WARNING - GSA_Recorder::GSA_Recorder()"; |
| 64 | opserr << " - could not open file " << fileName << endln; |
| 65 | exit(-1); |
| 66 | } |
| 67 | |
| 68 | // spit out header data |
| 69 | if (title1 != 0) |
| 70 | theFile << "TITLE\t" << title1; |
| 71 | else |
| 72 | theFile << "TITLE\t" << "No Title"; |
| 73 | |
| 74 | |
| 75 | if (title2 != 0) |
| 76 | theFile << "\t" << title2; |
| 77 | else |
| 78 | theFile << "\t" << "BLANK"; |
| 79 | |
| 80 | |
| 81 | if (title3 != 0) |
| 82 | theFile << "\t" << title3; |
| 83 | else |
| 84 | theFile << "\t" << "BLANK"; |
| 85 | |
| 86 | |
| 87 | if (jobno != 0) |
| 88 | theFile << "\t" << jobno; |
| 89 | else |
| 90 | theFile << "\t" << "0000"; |
| 91 | |
| 92 | |
| 93 | if (initials != 0) |
| 94 | theFile<< "\t" << initials << endln; |
| 95 | else |
| 96 | theFile << "\t" << "ANOTHER\n"; |
| 97 | |
| 98 | |
| 99 | if (spec != 0) |
| 100 | theFile << "SPEC\t" << spec << endln; |
| 101 |
nothing calls this directly
no test coverage detected