v0.14.0
Public Member Functions | Public Attributes | List of all members
MoFEM::TSAdaptMoFEM Struct Reference

Custom TSAdaptivity in MoFEM. More...

#include <src/petsc/TsCtx.hpp>

Collaboration diagram for MoFEM::TSAdaptMoFEM:
[legend]

Public Member Functions

 TSAdaptMoFEM ()
 

Public Attributes

double alpha
 
double gamma
 
int desiredIt
 
PetscBool offApat
 

Detailed Description

Custom TSAdaptivity in MoFEM.

TSAdapt adapt;
CHKERR TSGetAdapt(solver, &adapt);
CHKERR TSAdaptSetType(adapt, TSADAPTMOFEM);

Definition at line 362 of file TsCtx.hpp.

Constructor & Destructor Documentation

◆ TSAdaptMoFEM()

MoFEM::TSAdaptMoFEM::TSAdaptMoFEM ( )

Definition at line 724 of file TsCtx.cpp.

725  : alpha(0.75), gamma(0.5), desiredIt(6), offApat(PETSC_FALSE) {
726  CHKERR PetscOptionsGetScalar("", "-ts_mofem_adapt_alpha", &alpha, PETSC_NULL);
727  CHKERR PetscOptionsGetScalar("", "-ts_mofem_adapt_gamma", &gamma, PETSC_NULL);
728  CHKERR PetscOptionsGetInt("", "-ts_mofem_adapt_desired_it", &desiredIt,
729  PETSC_NULL);
730  CHKERR PetscOptionsGetBool("", "-ts_mofem_adapt_off", &offApat, PETSC_NULL);
731 
732  MOFEM_LOG("TSWORLD", Sev::inform)
733  << "TS adaptivity: alpha = " << alpha << ", gamma = " << gamma
734  << ", desiredIt = " << desiredIt << ", offAdapt = " << offApat;
735 }

Member Data Documentation

◆ alpha

double MoFEM::TSAdaptMoFEM::alpha

Definition at line 366 of file TsCtx.hpp.

◆ desiredIt

int MoFEM::TSAdaptMoFEM::desiredIt

Definition at line 368 of file TsCtx.hpp.

◆ gamma

double MoFEM::TSAdaptMoFEM::gamma

Definition at line 367 of file TsCtx.hpp.

◆ offApat

PetscBool MoFEM::TSAdaptMoFEM::offApat

Definition at line 369 of file TsCtx.hpp.


The documentation for this struct was generated from the following files:
MoFEM::TSAdaptMoFEM::alpha
double alpha
Definition: TsCtx.hpp:366
MoFEM::TSAdaptMoFEM::offApat
PetscBool offApat
Definition: TsCtx.hpp:369
CHKERR
#define CHKERR
Inline error check.
Definition: definitions.h:548
MoFEM::TSAdaptMoFEM::gamma
double gamma
Definition: TsCtx.hpp:367
TSADAPTMOFEM
#define TSADAPTMOFEM
Definition: TsCtx.hpp:10
MOFEM_LOG
#define MOFEM_LOG(channel, severity)
Log.
Definition: LogManager.hpp:308
MoFEM::TSAdaptMoFEM::desiredIt
int desiredIt
Definition: TsCtx.hpp:368
MoFEM::PetscOptionsGetScalar
PetscErrorCode PetscOptionsGetScalar(PetscOptions *, const char pre[], const char name[], PetscScalar *dval, PetscBool *set)
Definition: DeprecatedPetsc.hpp:162
MoFEM::PetscOptionsGetInt
PetscErrorCode PetscOptionsGetInt(PetscOptions *, const char pre[], const char name[], PetscInt *ivalue, PetscBool *set)
Definition: DeprecatedPetsc.hpp:142
MoFEM::PetscOptionsGetBool
PetscErrorCode PetscOptionsGetBool(PetscOptions *, const char pre[], const char name[], PetscBool *bval, PetscBool *set)
Definition: DeprecatedPetsc.hpp:182
MoFEM::TSAdaptCreateMoFEM
PetscErrorCode TSAdaptCreateMoFEM(TSAdapt adapt)
Craete MOFEM adapt.
Definition: TsCtx.cpp:797