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

Method setFile

SRC/element/PFEMElement/BackgroundMesh.cpp:350–362  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

348}
349
350int 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
364void BackgroundMesh::setDispOn(bool on) {
365 dispon = on;

Callers 2

OPS_BgMeshFunction · 0.45

Calls 2

openMethod · 0.45
precisionMethod · 0.45

Tested by

no test coverage detected