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