| 3287 | } |
| 3288 | |
| 3289 | int OPS_logFile() |
| 3290 | { |
| 3291 | if (OPS_GetNumRemainingInputArgs() < 1) { |
| 3292 | opserr << "WARNING logFile fileName? - no filename supplied\n"; |
| 3293 | return -1; |
| 3294 | } |
| 3295 | openMode mode = OVERWRITE; |
| 3296 | bool echo = true; |
| 3297 | |
| 3298 | const char* filename = OPS_GetString(); |
| 3299 | if (strcmp(filename, "Invalid String Input!") == 0) { |
| 3300 | opserr << "WARNING: invalid string input\n"; |
| 3301 | return -1; |
| 3302 | } |
| 3303 | |
| 3304 | while (OPS_GetNumRemainingInputArgs() > 0) { |
| 3305 | |
| 3306 | const char* opt = OPS_GetString(); |
| 3307 | |
| 3308 | if (strcmp(opt,"-append") == 0) { |
| 3309 | mode = APPEND; |
| 3310 | } else if (strcmp(opt,"-noEcho") == 0) { |
| 3311 | echo = false; |
| 3312 | } |
| 3313 | } |
| 3314 | |
| 3315 | if (opserr.setFile(filename, mode, echo) < 0) { |
| 3316 | opserr << "WARNING logFile " << filename << " failed to set the file\n"; |
| 3317 | return -1; |
| 3318 | } |
| 3319 | |
| 3320 | // const char *pwd = getInterpPWD(interp); |
| 3321 | // simulationInfo.addOutputFile(argv[1], pwd); |
| 3322 | |
| 3323 | return 0; |
| 3324 | } |
| 3325 | |
| 3326 | // Sensitivity:BEGIN ///////////////////////////////////////////// |
| 3327 | int OPS_sensNodeDisp() |
no test coverage detected