20 #ifndef PISM_GRID_HIERARCHY_H
21 #define PISM_GRID_HIERARCHY_H
23 #include <petscdmda.h>
27 double grid_z(
double b,
double H,
int Mz,
int k);
35 PetscErrorCode
restrict_data(DM fine, DM coarse,
const char *dm_name);
double grid_z(double b, double H, int Mz, int k)
PetscErrorCode setup_level(DM dm, int mg_levels)
DMDALocalInfo grid_transpose(const DMDALocalInfo &input)
PetscErrorCode restrict_data(DM fine, DM coarse, const char *dm_name)
Restrict model parameters from the fine grid onto the coarse grid.
PetscErrorCode create_restriction(DM fine, DM coarse, const char *dm_name)
Create the restriction matrix.