#include <Hdf5ToMeshalyzerConverter.hpp>
Public Member Functions | |
Hdf5ToMeshalyzerConverter (std::string inputDirectory, std::string outputDirectory, std::string fileBaseName) | |
Private Member Functions | |
void | Write (std::string type) |
Private Attributes | |
Hdf5DataReader * | mpReader |
std::string | mOutputDirectory |
std::string | mFileBaseName |
V_node_0_time_0 .. V_node_N_time_0 V_node_0_time_1 .. V_node_N_time_1 V_node_0_time_2 .. V_node_N_time_M
The files that are written are <base_name>_V.dat or <base_name>_Phi_e.dat, where <base_name> is the base name of the original .h5 file. The new files are written in the same directory as the .h5 file. All paths are relative to the CHASTE_TEST_OUTPUT directory.
Definition at line 54 of file Hdf5ToMeshalyzerConverter.hpp.
Hdf5ToMeshalyzerConverter::Hdf5ToMeshalyzerConverter | ( | std::string | inputDirectory, | |
std::string | outputDirectory, | |||
std::string | fileBaseName | |||
) |
Constructor, which does the conversion.
inputDirectory | The input directory, relative to CHASTE_TEST_OUTPUT, where the .h5 file has been written | |
outputDirectory | The output directory, relative to CHASTE_TEST_OUTPUT, where the output will be placed | |
fileBaseName | The base name of the data file. |
Definition at line 88 of file Hdf5ToMeshalyzerConverter.cpp.
References PetscTools::AmMaster(), OutputFileHandler::OpenOutputFile(), and Write().
void Hdf5ToMeshalyzerConverter::Write | ( | std::string | type | ) | [private] |
A helper method which takes in a string, which must be 'V' or 'Phi_e' and reads the data corresponding to that string, writing it out in meshalyzer format.
Definition at line 41 of file Hdf5ToMeshalyzerConverter.cpp.
References PetscTools::AmMaster(), DistributedVector::CreateVec(), DistributedVector::GetProblemSize(), OutputFileHandler::OpenOutputFile(), and DistributedVector::SetProblemSize().
Referenced by Hdf5ToMeshalyzerConverter().