Skip to content

adam_chase_io_object

ADAM, Maxwell IO handler class definition, common CPU backend.

Source: src/app/chase/common/adam_chase_io_object.F90

Dependencies

Contents

Variables

NameTypeAttributesDescription
INI_SECTION_NAMEcharacter(len=2)parameterINI (config) file section name containing IO configs.

Derived Types

chase_io_object

CHASE IO handler class definition, CPU backend.

Components

NameTypeAttributesDescription
mpihtype(mpih_object)MPI handler.
file_parameterstype(file_ini)chase input file handler.
it_saveinteger(kind=I4P)Main output iteration save frequency.
output_basenamecharacter(len=:)allocatableBasename of output files.
restartlogicalEnable restart from old output data.
restart_basenamecharacter(len=:)allocatableBasename of restart files.
restart_saveinteger(kind=I4P)Restart output iteration save frequency.
save_memory_statuslogicalEnable save of memory status during allocations.
residuals_saveinteger(kind=I4P)Residuals (norm) output iteration save frequency.
residuals_unitinteger(kind=I4P)Residuals file unit.

Type-Bound Procedures

NameAttributesDescription
descriptionpass(self)Return pretty-printed object description.
initializepass(self)Initialize time handler.
load_from_filepass(self)Load config from file.
close_file_residualspass(self)Close file for saving residuals history.
open_file_residualspass(self)Open file for saving residuals history.
save_residualspass(self)Save residuals history.

Subroutines

initialize

Initialize IO handler.

fortran
subroutine initialize(self, filename)

Arguments

NameTypeIntentAttributesDescription
selfclass(chase_io_object)inoutIO handler.
filenamecharacter(len=*)inFile name of parameters file.

Call graph

load_from_file

Load config from file.

fortran
subroutine load_from_file(self, file_parameters, go_on_fail)

Arguments

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

Call graph

close_file_residuals

Close file for saving residuals history.

fortran
subroutine close_file_residuals(self)

Arguments

NameTypeIntentAttributesDescription
selfclass(chase_io_object)inIO handler.

Call graph

open_file_residuals

Open file for saving residuals history.

fortran
subroutine open_file_residuals(self, nv)

Arguments

NameTypeIntentAttributesDescription
selfclass(chase_io_object)inoutIO handler.
nvinteger(kind=I4P)inNumber of residuals variables.

Call graph

save_residuals

Save residuals history.

fortran
subroutine save_residuals(self, it, time, blocks_number, residuals)

Arguments

NameTypeIntentAttributesDescription
selfclass(chase_io_object)inIO handler.
itinteger(kind=I4P)inCurrent iteration.
timereal(kind=R8P)inCurrent time.
blocks_numberinteger(kind=I4P)inCurrent number of blocks.
residualsreal(kind=R8P)inResiduals (norm) [1:nv].

Call graph

Functions

description

Return a pretty-formatted object description.

Attributes: pure

Returns: character(len=:)

fortran
function description(self) result(desc)

Arguments

NameTypeIntentAttributesDescription
selfclass(chase_io_object)inIO handler.

Call graph