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

Function OPS_ElementRecorder

SRC/recorder/ElementRecorder.cpp:59–309  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57#include <string.h>
58
59void*
60OPS_ElementRecorder()
61{
62 if (OPS_GetNumRemainingInputArgs() < 5) {
63 opserr << "WARNING: recorder Element ";
64 opserr << "-ele <list elements> -file <fileName> -dT <dT> response";
65 return 0;
66 }
67
68 const char** data = 0;
69 int nargrem = 0;
70 OPS_Stream *theOutputStream = 0;
71 const char* filename = 0;
72
73 const int STANDARD_STREAM = 0;
74 const int DATA_STREAM = 1;
75 const int XML_STREAM = 2;
76 const int DATABASE_STREAM = 3;
77 const int BINARY_STREAM = 4;
78 const int DATA_STREAM_CSV = 5;
79 const int TCP_STREAM = 6;
80 const int DATA_STREAM_ADD = 7;
81
82 int eMode = STANDARD_STREAM;
83
84 bool echoTimeFlag = false;
85 double dT = 0.0;
86 double rTolDt = 0.00001;
87 bool doScientific = false;
88
89 int precision = 6;
90
91 bool closeOnWrite = false;
92
93 const char *inetAddr = 0;
94 int inetPort;
95
96 ID elements(0, 6);
97 ID dofs(0, 6);
98
99 char **argv = 0;
100
101 while (OPS_GetNumRemainingInputArgs() > 0) {
102
103 const char* option = OPS_GetString();
104
105 if (strcmp(option, "-time") == 0) {
106 echoTimeFlag = true;
107 }
108 else if (strcmp(option, "-load") == 0) {
109 echoTimeFlag = true;
110 }
111 else if (strcmp(option, "-scientific") == 0) {
112 doScientific = true;
113 }
114 else if (strcmp(option, "-file") == 0) {
115 if (OPS_GetNumRemainingInputArgs() > 0) {
116 filename = OPS_GetString();

Callers

nothing calls this directly

Calls 11

OPS_GetStringFunction · 0.50
OPS_GetIntInputFunction · 0.50
OPS_GetDoubleInputFunction · 0.50
OPS_ResetCurrentInputArgFunction · 0.50
OPS_GetDomainFunction · 0.50
OPS_GetStringFromAllFunction · 0.50
getRegionMethod · 0.45
getElementsMethod · 0.45
SizeMethod · 0.45
setPrecisionMethod · 0.45

Tested by

no test coverage detected