19 MPI_Comm_rank(comp_comm,&comp_rank);
22 char cube_grid_filename[256];
23 sprintf(cube_grid_filename,
"c_%zu.nc", n_cube);
32 start_timer(MPI_COMM_SELF,
"%s;%zu",
"write_cube_grid", n_cube);
38 MPI_Barrier(comp_comm);
void yac_write_cubed_sphere_grid(unsigned n, char const *filename)
int yac_file_exists(const char *filename)
Check whether a file exists.
void * start_timer(MPI_Comm comm, char const *fmt,...)
Starts a timer and returns a pointer to the timer data.
void init_grid(int comp_id, char const *grid_name, char const *grid_filename, int *cell_point_id, int *corner_point_id)
Initializes grid data and registers it with YAC.
void stop_timer(void *timer_)
Stops the timer and prints the timing results.
void init_cube(int comp_id, size_t n_cube, int *cell_point_id, int *corner_point_id)
Initializes cube grid data and registers it with YAC.
void yac_cget_comp_comm(int comp_id, MPI_Comm *comp_comm)