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

Function OPS_RemoveRecorder

SRC/recorder/RemoveRecorder.cpp:72–441  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

70using std::ios;
71
72void *OPS_RemoveRecorder() {
73 if (OPS_GetNumRemainingInputArgs() < 2) {
74 opserr << "WARNING recorder Collapse -ele eleID <eleID2? ...> "
75 "-node nodeID <-time> <-file fileName?> ? "
76 << "\n or recorder Collapse -ele eleID1 <eleID2? ...>? "
77 "<-sec secID1? secID2? ...> -crit crit1? value1?"
78 << " <-crit crit2? value2?> <-time> <-file fileName?> "
79 "<-mass mass1? mass2? ...> <-g gAcc gDir? gPat?>?\n";
80 return 0;
81 }
82
83 // current maximum number of either-or criteria for an element
84 int maxNumCriteria = 2;
85 double dT = 0.0;
86 bool echoTime = false;
87 int endEleIDs = 2;
88 int numEle = endEleIDs - 2;
89 int loc = endEleIDs;
90 int flags = 0;
91 int eleData = 0;
92 int nodeTag = 0;
93 // new
94 int nTagbotn = 0;
95 int nTagmidn = 0;
96 int nTagtopn = 0;
97 int globgrav = 0;
98 const char *fileNameinf = 0;
99 // end of new
100 int numSecondaryEle = 0;
101
102 // create an ID to hold ele tags
103 // ID eleIDs(numEle, numEle+1);
104 ID eleIDs;
105 eleIDs = ID(1);
106 ID secondaryEleIDs = ID(1);
107 secondaryEleIDs[0] = 0;
108 bool secondaryFlag = false;
109 ID secIDs;
110 // secIDs = 0;
111
112 // optional mass and weight definition
113 Vector eleMass(1);
114 eleMass.Zero();
115 double gAcc = 0;
116 int gDir = 0, gPat = 0;
117
118 Vector remCriteria(2 * maxNumCriteria);
119 remCriteria.Zero();
120 int numCrit = 0;
121 const char *fileName = 0;
122
123 OPS_Stream *theOutputStream = 0;
124
125 Domain *domain = OPS_GetDomain();
126 while (flags == 0 && OPS_GetNumRemainingInputArgs() > 0) {
127 const char *opt = OPS_GetString();
128 if (strcmp(opt, "-node") == 0) {
129 if (OPS_GetNumRemainingInputArgs() < 1) {

Callers

nothing calls this directly

Calls 15

IDClass · 0.70
OPS_GetDomainFunction · 0.50
OPS_GetStringFunction · 0.50
OPS_GetIntInputFunction · 0.50
OPS_ResetCurrentInputArgFunction · 0.50
OPS_GetDoubleInputFunction · 0.50
ZeroMethod · 0.45
getNodeMethod · 0.45
getElementsMethod · 0.45
getTagMethod · 0.45
getRegionMethod · 0.45

Tested by

no test coverage detected