DMAdaptorAdapt#

Creates a new DM that is adapted to the problem

Synopsis#

#include "petscdmadaptor.h" 
PetscErrorCode DMAdaptorAdapt(DMAdaptor adaptor, Vec x, DMAdaptationStrategy strategy, DM *adm, Vec *ax)

Not Collective

Input Parameters#

Output Parameters#

  • adm - The adapted DM

  • ax - The adapted solution

Options Database Keys#

  • -snes_adapt - initial, sequential, multigrid

  • -adapt_gradient_view - View the Clement interpolant of the solution gradient

  • -adapt_hessian_view - View the Clement interpolant of the solution Hessian

  • -adapt_metric_view - View the metric tensor for adaptive mesh refinement

See Also#

DMAdaptor, DMAdaptationStrategy, DMAdaptorSetSolver(), DMAdaptorCreate()

Level#

intermediate

Location#

src/snes/utils/dmadapt.c


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