| 348 | } |
| 349 | |
| 350 | int BackgroundMesh::setFile(const char* name) { |
| 351 | theFile.open(name, std::ios::trunc | std::ios::out); |
| 352 | if (theFile.fail()) { |
| 353 | opserr << "WARNING: Failed to open file " << name << "\n"; |
| 354 | return -1; |
| 355 | } |
| 356 | |
| 357 | int precision = 12; |
| 358 | theFile.precision(precision); |
| 359 | theFile << std::scientific; |
| 360 | |
| 361 | return 0; |
| 362 | } |
| 363 | |
| 364 | void BackgroundMesh::setDispOn(bool on) { |
| 365 | dispon = on; |
no test coverage detected