14 std::string filename = prefix +
".pvdhandler";
15 std::ofstream output(filename.c_str());
17 output <<
"Time File" << std::endl;
20 output << time_name.first <<
" " << time_name.second << std::endl;
28 std::string filename = prefix +
".pvdhandler";
30 "checkpoint file of the pvd handler, given by "
31 "'subsection restart' - 'set filename'");
32 std::ifstream input(filename.c_str());
38 std::getline(input, buffer);
39 std::getline(input, buffer);
40 for (
unsigned int i = 0; i < size; ++i)
43 std::string filename_i;
50 throw std::runtime_error(
"Error when reading pvd restart file ");
void read(const std::string &filename)
read Reads the content of a pvd times_and_names checpoint
std::vector< std::pair< double, std::string > > times_and_names
void append(double time, const std::string &pvtu_filename)
void save(const std::string &filename) const
save Saves the content of the pvd times_and_names to a file
void check_file_exists(const std::string &file_name, const std::string &file_description)
Verify that a file that Lethe must read exists and can be opened, and raise an error stated in the us...