Skip to content

adam_patch_ic_object

ADAM, PATCH Initial Conditions class definition, common CPU backend.

Source: src/app/patch/common/adam_patch_ic_object.F90

Dependencies

Contents

Variables

NameTypeAttributesDescription
INI_SECTION_NAMEcharacter(len=18)parameterINI (config) file section name containing IC configs.
IC_TYPE_GAUSScharacter(len=5)parameterGaussian distribution of rho IC TYPE parameter.

Derived Types

patch_ic_object

Initial Conditions class definition, CPU backend.

Components

NameTypeAttributesDescription
mpihtype(mpih_object)MPI handler.
amr_iterationsinteger(kind=I4P)Number of AMR iterations imposing IC.
ic_typecharacter(len=:)allocatableIC type.
regions_numberinteger(kind=I4P)Number of IC regions.
rreal(kind=R8P)allocatableRho value.
eminreal(kind=R8P)allocatableIC regions bounding box.
emaxreal(kind=R8P)allocatableIC regions bounding box.

Type-Bound Procedures

NameAttributesDescription
descriptionpass(self)Return pretty-printed object description.
initializepass(self)Initialize IC.
load_from_filepass(self)Load config from file.
set_initial_conditionspass(self)Set initial conditions.

Subroutines

initialize

Initialize the equation.

fortran
subroutine initialize(self, file_parameters)

Arguments

NameTypeIntentAttributesDescription
selfclass(patch_ic_object)inoutIC.
file_parameterstype(file_ini)inSimulation parameters ini file handler.

Call graph

load_from_file

Load config from file.

fortran
subroutine load_from_file(self, file_parameters, go_on_fail)

Arguments

NameTypeIntentAttributesDescription
selfclass(patch_ic_object)inoutIC.
file_parameterstype(file_ini)inSimulation parameters ini file handler.
go_on_faillogicalinoptionalGo on if load fails.

Call graph

set_initial_conditions

Set initial conditions.

fortran
subroutine set_initial_conditions(self, field, r)

Arguments

NameTypeIntentAttributesDescription
selfclass(patch_ic_object)inIC.
fieldtype(field_object)inField object.
rreal(kind=R8P)inoutConservative variables.

Call graph

Functions

description

Return a pretty-formatted object description.

Attributes: pure

Returns: character(len=:)

fortran
function description(self) result(desc)

Arguments

NameTypeIntentAttributesDescription
selfclass(patch_ic_object)inIC.

Call graph