initialization Submodule

Implementation of the methods of TYPE idbase that initialize objects of idbase-extended TYPE

FT 8.11.2021



Uses

  • module~~initialization~~UsesGraph module~initialization initialization module~id_base id_base module~initialization->module~id_base module~utility utility module~id_base->module~utility timing timing module~id_base->timing constants constants module~utility->constants matrix matrix module~utility->matrix

Contents


Module Procedures

module procedure initialize module subroutine initialize(derived_type, filename, eos_filenames)

This PROCEDURE calls the constructor of the idbase-extended type and the SUBROUTINE sanity_check afterwards. It is recommended to use this SUBROUTINE to construct objects of idbase-extended type since the sanity check is performed automatically.

Read more…

Arguments

Type IntentOptional Attributes Name
class(idbase), intent(out) :: derived_type

Object of DERIVED TYPE that extends [[idbase], to be constructed

character(len=*), intent(in), optional :: filename

Name of the file containing the \(\mathrm{ID}\)

character(len=*), intent(in), optional, DIMENSION(:) :: eos_filenames

Array of strings containing the names of the files containing the \(\mathrm{EOS}\) to be used for each matter object. If not PRESENT, information from the file filename is used

module procedure sanity_check module subroutine sanity_check(derived_type)

Checks that n_matter and the sizes returned by return_spatial_extent and get_total_spatial_extent are acceptable. It is called by initialize, after the constructor of the derived type.

Read more…

Arguments

Type IntentOptional Attributes Name
class(idbase), intent(in) :: derived_type

Object of DERIVED TYPE that extends idbase