:orphan: # DMAdaptorSetFromOptions Sets properties of a `DMAdaptor` object from the options database ## Synopsis ``` #include "petscdmadaptor.h" PetscErrorCode DMAdaptorSetFromOptions(DMAdaptor adaptor) ``` Collective ## Input Parameter - ***adaptor -*** The `DMAdaptor` object ## Options Database Keys - ***-adaptor_monitor -*** Monitor the adaptation process - ***-adaptor_sequence_num -*** Number of adaptations to generate an optimal grid - ***-adaptor_target_num -*** Set the target number of vertices N_adapt, -1 for automatic determination - ***-adaptor_refinement_factor -*** Set r such that N_adapt = r^dim N_orig ## See Also `DMAdaptor`, `DMAdaptorCreate()`, `DMAdaptorAdapt()` ## Level beginner ## Location src/snes/utils/dmadapt.c --- [Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/snes/utils/dmadapt.c) [Index of all SNES routines](index.md) [Table of Contents for all manual pages](/manualpages/index.md) [Index of all manual pages](/manualpages/singleindex.md)