Skip to content

adam_patch_time_object

ADAM, PATCH time handler class definition, common CPU backend.

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

Dependencies

Contents

Variables

NameTypeAttributesDescription
INI_SECTION_NAMEcharacter(len=4)parameterINI (config) file section name containing time configs.

Derived Types

patch_time_object

PATCH time handler class definition, CPU backend.

Components

NameTypeAttributesDescription
mpihtype(mpih_object)MPI handler.
it_maxinteger(kind=I4P)Maximum number of integration time steps.
time_maxreal(kind=R8P)Maximum integration time.
CFLreal(kind=R8P)CFL time limit.
itinteger(kind=I4P)Time steps counter.
timereal(kind=R8P)Time.
dtreal(kind=R8P)Maximum time step accordingly to CFL criterion.

Type-Bound Procedures

NameAttributesDescription
descriptionpass(self)Return pretty-printed object description.
initializepass(self)Initialize time handler.
is_to_savepass(self)Return true if data are to save.
load_from_filepass(self)Load config from file.
print_progresspass(self)Print simulation progress.

Subroutines

initialize

Initialize time handler.

fortran
subroutine initialize(self, file_parameters)

Arguments

NameTypeIntentAttributesDescription
selfclass(patch_time_object)inoutTime handler.
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_time_object)inoutTime handler.
file_parameterstype(file_ini)inSimulation parameters ini file handler.
go_on_faillogicalinoptionalGo on if load fails.

Call graph

Print simulation progress.

fortran
subroutine print_progress(self, nodes_number)

Arguments

NameTypeIntentAttributesDescription
selfclass(patch_time_object)inTime handler.
nodes_numberinteger(kind=I4P)inNodes number, global blocks number.

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_time_object)inTime handler.

Call graph

is_to_save

Return true if slices are to save.

Returns: logical

fortran
function is_to_save(self, it_save)

Arguments

NameTypeIntentAttributesDescription
selfclass(patch_time_object)inoutTime handler.
it_saveinteger(kind=I4P)inSave iterations frequency.

Call graph