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

Method GSA_Recorder

SRC/recorder/GSA_Recorder.cpp:44–175  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42#include <Matrix.h>
43
44GSA_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

Callers

nothing calls this directly

Calls 11

exitFunction · 0.85
getNodesMethod · 0.80
getCrdsMethod · 0.80
setFileMethod · 0.45
getTagMethod · 0.45
SizeMethod · 0.45
getNodeTagMethod · 0.45
getLocationMethod · 0.45
getDOF_NumberMethod · 0.45
getElementsMethod · 0.45
PrintMethod · 0.45

Tested by

no test coverage detected