MCPcopy Create free account
hub / github.com/Kitware/VTK / WriteAMRData

Function WriteAMRData

Examples/AMR/Cxx/AMRCommon.h:51–63  ·  view source on GitHub ↗

------------------------------------------------------------------------------ Description: Writes the given AMR dataset to a *.vth file with the given prefix.

Source from the content-addressed store, hash-verified

49// Description:
50// Writes the given AMR dataset to a *.vth file with the given prefix.
51void WriteAMRData(vtkOverlappingAMR* amrData, const std::string& prefix)
52{
53 // Sanity check
54 assert("pre: AMR dataset is NULL!" && (amrData != nullptr));
55
56 vtkNew<vtkCompositeDataWriter> writer;
57
58 std::ostringstream oss;
59 oss << prefix << ".vthb";
60 writer->SetFileName(oss.str().c_str());
61 writer->SetInputData(amrData);
62 writer->Write();
63}
64
65//------------------------------------------------------------------------------
66// Description:

Callers 2

mainFunction · 0.85
mainFunction · 0.85

Calls 6

assertFunction · 0.50
SetFileNameMethod · 0.45
c_strMethod · 0.45
strMethod · 0.45
SetInputDataMethod · 0.45
WriteMethod · 0.45

Tested by

no test coverage detected