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

Method write_header

SRC/recorder/GmshRecorder.cpp:265–281  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

263}
264
265int GmshRecorder::write_header()
266{
267 if (write_header_now)
268 {
269 theFile << "$MeshFormat\n"
270 << "2.2 0 8\n";
271 if(write_binary_mode)
272 {
273 int one = 1;
274 theFile.write((const char *)&one, sizeof(int));
275 }
276 theFile << "$EndMeshFormat\n";
277 write_header_now = false; // Don't do this again
278 }
279
280 return 0;
281}
282
283
284

Callers

nothing calls this directly

Calls 1

writeMethod · 0.45

Tested by

no test coverage detected