DMDASetRefinementFactor#

Set the ratios that the DMDA grid is refined

Synopsis#

#include "petscdmda.h"   
PetscErrorCode DMDASetRefinementFactor(DM da, PetscInt refine_x, PetscInt refine_y, PetscInt refine_z)

Logically Collective

Input Parameters#

  • da - the DMDA object

  • refine_x - ratio of fine grid to coarse in x direction (2 by default)

  • refine_y - ratio of fine grid to coarse in y direction (2 by default)

  • refine_z - ratio of fine grid to coarse in z direction (2 by default)

Options Database Keys#

  • -da_refine_x refine_x - refinement ratio in x direction

  • -da_refine_y rafine_y - refinement ratio in y direction

  • -da_refine_z refine_z - refinement ratio in z direction

  • -da_refine - refine the DMDA object n times when it is created.

Note#

Pass PETSC_IGNORE to leave a value unchanged

See Also#

DM, DMDA, DMRefine(), DMDAGetRefinementFactor()

Level#

intermediate

Location#

src/dm/impls/da/da.c


Edit on GitLab

Index of all DMDA routines
Table of Contents for all manual pages
Index of all manual pages