Skip to content
Snippets Groups Projects
Commit c29a1516 authored by Stéphane Del Pino's avatar Stéphane Del Pino
Browse files

Add missing "type" descriptors (only used to print CP info)

parent 49168385
No related branches found
No related tags found
1 merge request!199Integrate checkpointing
...@@ -632,6 +632,8 @@ writeIWriter(const std::string& symbol_name, ...@@ -632,6 +632,8 @@ writeIWriter(const std::string& symbol_name,
std::shared_ptr<const IWriter> iwriter_p = std::shared_ptr<const IWriter> iwriter_p =
dynamic_cast<const DataHandler<const IWriter>&>(embedded_data.get()).data_ptr(); dynamic_cast<const DataHandler<const IWriter>&>(embedded_data.get()).data_ptr();
variable_group.createAttribute("type", dataTypeName(ast_node_data_type_from<decltype(iwriter_p)>));
variable_group.createAttribute("iwriter_type", iwriter_p->type()); variable_group.createAttribute("iwriter_type", iwriter_p->type());
switch (iwriter_p->type()) { switch (iwriter_p->type()) {
...@@ -876,6 +878,8 @@ writeVariableBCDescriptor(const std::string& symbol_name, ...@@ -876,6 +878,8 @@ writeVariableBCDescriptor(const std::string& symbol_name,
std::shared_ptr<const VariableBCDescriptor> variable_bc_descriptor_p = std::shared_ptr<const VariableBCDescriptor> variable_bc_descriptor_p =
dynamic_cast<const DataHandler<const VariableBCDescriptor>&>(embedded_data.get()).data_ptr(); dynamic_cast<const DataHandler<const VariableBCDescriptor>&>(embedded_data.get()).data_ptr();
variable_group.createAttribute("type", dataTypeName(ast_node_data_type_from<decltype(variable_bc_descriptor_p)>));
HighFive::Group discrete_function_group = variable_group.createGroup("discrete_function"); HighFive::Group discrete_function_group = variable_group.createGroup("discrete_function");
writeDiscreteFunctionVariant(discrete_function_group, variable_bc_descriptor_p->discreteFunctionVariant(), file, writeDiscreteFunctionVariant(discrete_function_group, variable_bc_descriptor_p->discreteFunctionVariant(), file,
checkpoint_group); checkpoint_group);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment