19namespace shamrock::patch {
21 MPI_Datatype patch_3d_MPI_type;
24 MPI_Datatype get_patch_mpi_type<3>() {
25 return patch_3d_MPI_type;
33MPI_Datatype patch_3d_MPI_types_list[2];
34int patch_3d_MPI_block_lens[2];
35MPI_Aint patch_3d_MPI_offset[2];
38 using namespace shamrock::patch;
40 patch_3d_MPI_block_lens[0] = 9;
41 patch_3d_MPI_block_lens[1] = 1;
43 patch_3d_MPI_types_list[0] = MPI_LONG;
44 patch_3d_MPI_types_list[1] = MPI_INT;
49 mpi::type_create_struct(
51 patch_3d_MPI_block_lens,
53 patch_3d_MPI_types_list,
55 mpi::type_commit(&patch_3d_MPI_type);
59 using namespace shamrock::patch;
61 mpi::type_free(&patch_3d_MPI_type);
#define Register_MPIDtypeInit(placeholdername, name)
register a static init function to initialize a mpi type
#define Register_MPIDtypeFree(placeholdername, name)
register a static init function to free a mpi type
Header file for the patch struct and related function.
Patch object that contain generic patch information.