MCPcopy Create free account
hub / github.com/FEniCS/dolfinx / close

Method close

cpp/dolfinx/io/VTKFile.cpp:731–746  ·  view source on GitHub ↗

----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

729}
730//----------------------------------------------------------------------------
731void io::VTKFile::close()
732{
733 if (_pvd_xml and dolfinx::MPI::rank(_comm.comm()) == 0)
734 {
735 if (_filename.has_parent_path())
736 std::filesystem::create_directories(_filename.parent_path());
737
738 bool status = _pvd_xml->save_file(_filename.c_str(), " ");
739 if (status == false)
740 {
741 throw std::runtime_error(
742 "Could not write VTKFile. Does the directory "
743 "exists and do you have read/write permissions?");
744 }
745 }
746}
747//----------------------------------------------------------------------------
748void io::VTKFile::flush()
749{

Callers 4

__exit__Method · 0.95
test_read_named_meshtagsFunction · 0.45
interpolate_scalarFunction · 0.45
interpolate_nedelecFunction · 0.45

Calls 1

commMethod · 0.45

Tested by 1

test_read_named_meshtagsFunction · 0.36