16 To create a data repository, I run over all the faces, vertices, cells of the
17 project and befill the dictionary. There's multiple reasons for this:
19 - I want to ensure that we include the headers in the repository such that
20 all data types are well-defined.
21 - I create a stack map for each and every data entity.
22 - I ensure all datatypes are created if this record requires a user-defined MPI
26 i is of type peano4.datamodel.DoF.
29 self.
d[
"DATA_CONTAINER_INCLUDES" ] += i.generator.get_header_file_include()
30 self.
d[
"DATA_CONTAINER_INCLUDES" ] +=
"\n"
32 self.
d[
"DATA_CONTAINER_DECLARATION" ] +=
"static peano4::maps::HierarchicalStackMap< " + i.generator.get_stack_container() +
"> _" + i.get_logical_type_name() +
"Stack;\n"
33 self.
d[
"DATA_CONTAINER_INSTANTIATION" ] +=
"peano4::maps::HierarchicalStackMap< " + i.generator.get_stack_container() +
"> " + self.
d[
"FULL_QUALIFIED_CLASS_NAME" ] +
"::_" + i.get_logical_type_name() +
"Stack;\n"
36 self.
d[
"DATA_CONTAINER_CLEARS" ] +=
"_" + i.get_logical_type_name() +
"Stack.clear();\n"
38 self.
d[
"MPI_DATAYPE_INITIALISATION" ] += i.get_full_qualified_type() +
"::initDatatype();\n"
39 self.
d[
"MPI_DATAYPE_SHUTDOWN" ] += i.get_full_qualified_type() +
"::shutdownDatatype();\n"