parallel-io/heat-restart/c/io.c
void read_restart(field *temperature, parallel_data *parallel, int *iter)
{
    int rows, cols;

    // TODO: open the file called CHECKPOINT (defined in heat.h)

    // TODO: all ranks read the header using collective IO

    // set correct dimensions to MPI metadata
    parallel_setup(parallel, rows, cols);
    // set local dimensions and allocate memory for the data
    set_field_dimensions(temperature, rows, cols, parallel);
    allocate_field(temperature);

    // TODO: all processes read their temperature data from the file,
    //   i.e. the temperature->data array including the ghost layers.
    //   Use a collective read routine.

    // TODO: close file
}
/* Read a restart checkpoint that contains field dimensions, current
 * iteration number and temperature field. */
Read a restart checkpoint that contains field dimensions, current
iteration number and temperature field.
Read a restart checkpoint that contains field dimensions current iteration number and temperature field .
void read_restart(field *temperature, parallel_data *parallel, int *iter)
{
    int rows, cols;
    parallel_setup(parallel, rows, cols);
    set_field_dimensions(temperature, rows, cols, parallel);
    allocate_field(temperature);
}
void read_restart ( field * temperature , parallel_data * parallel , int * iter ) { int rows , cols ; parallel_setup ( parallel , rows , cols ) ; set_field_dimensions ( temperature , rows , cols , parallel ) ; allocate_field ( temperature ) ; }
Read a restart checkpoint that contains field dimensions, current
 iteration number and temperature field.
Read a restart checkpoint that contains field dimensions current iteration number and temperature field .
// TODO: open the file called CHECKPOINT (defined in heat.h) // TODO: all ranks read the header using collective IO // set correct dimensions to MPI metadata // set local dimensions and allocate memory for the data // TODO: all processes read their temperature data from the file, //   i.e. the temperature->data array including the ghost layers. //   Use a collective read routine. // TODO: close file