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

Method flush

cpp/dolfinx/io/VTKFile.cpp:748–760  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

746}
747//----------------------------------------------------------------------------
748void io::VTKFile::flush()
749{
750 int mpi_rank = dolfinx::MPI::rank(_comm.comm());
751 if (!_pvd_xml and mpi_rank == 0)
752 throw std::runtime_error("VTKFile has already been closed");
753
754 if (mpi_rank == 0)
755 {
756 if (_filename.has_parent_path())
757 std::filesystem::create_directories(_filename.parent_path());
758 _pvd_xml->save_file(_filename.c_str(), " ");
759 }
760}
761//----------------------------------------------------------------------------
762template <std::floating_point U>
763void io::VTKFile::write(const mesh::Mesh<U>& mesh, double time)

Callers 1

create_topologyMethod · 0.45

Calls 1

commMethod · 0.45

Tested by

no test coverage detected