------------------------------------------------------------------------------ Description: Writes the given AMR dataset to a *.vth file with the given prefix.
| 49 | // Description: |
| 50 | // Writes the given AMR dataset to a *.vth file with the given prefix. |
| 51 | void 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: |
no test coverage detected