type_proereties_manager_initialize Subroutine

private subroutine type_proereties_manager_initialize(self, Input, ierr)

Type Bound

type_proereties_manager

Arguments

Type IntentOptional Attributes Name
class(type_proereties_manager), intent(inout) :: self
type(type_input), intent(in) :: Input
integer(kind=int32), intent(inout) :: ierr

Calls

proc~~type_proereties_manager_initialize~~CallsGraph proc~type_proereties_manager_initialize type_proereties_manager%type_proereties_manager_initialize proc~initialize type_material_manager%initialize proc~type_proereties_manager_initialize->proc~initialize interface~initialize_holder_thcs holder_thcs%initialize_holder_thcs proc~initialize->interface~initialize_holder_thcs proc~get_active_region_info type_vtk%get_active_region_info proc~initialize->proc~get_active_region_info proc~initialize_holder_thcs initialize_holder_thcs interface~initialize_holder_thcs->proc~initialize_holder_thcs interface~unique unique proc~get_active_region_info->interface~unique proc~unique_int16 unique_int16 interface~unique->proc~unique_int16 proc~unique_int32 unique_int32 interface~unique->proc~unique_int32 proc~unique_int64 unique_int64 interface~unique->proc~unique_int64 proc~unique_int8 unique_int8 interface~unique->proc~unique_int8 interface~allocate_array allocate_array proc~unique_int16->interface~allocate_array sort sort proc~unique_int16->sort proc~unique_int32->interface~allocate_array proc~unique_int32->sort proc~unique_int64->interface~allocate_array proc~unique_int64->sort proc~unique_int8->interface~allocate_array proc~unique_int8->sort proc~allocate_rank1_int16 allocate_rank1_int16 interface~allocate_array->proc~allocate_rank1_int16 proc~allocate_rank1_int32 allocate_rank1_int32 interface~allocate_array->proc~allocate_rank1_int32 proc~allocate_rank1_int64 allocate_rank1_int64 interface~allocate_array->proc~allocate_rank1_int64 proc~allocate_rank1_int8 allocate_rank1_int8 interface~allocate_array->proc~allocate_rank1_int8 proc~allocate_rank1_logical1 allocate_rank1_logical1 interface~allocate_array->proc~allocate_rank1_logical1 proc~allocate_rank1_logical4 allocate_rank1_logical4 interface~allocate_array->proc~allocate_rank1_logical4 proc~allocate_rank1_logical8 allocate_rank1_logical8 interface~allocate_array->proc~allocate_rank1_logical8 proc~allocate_rank1_real128 allocate_rank1_real128 interface~allocate_array->proc~allocate_rank1_real128 proc~allocate_rank1_real32 allocate_rank1_real32 interface~allocate_array->proc~allocate_rank1_real32 proc~allocate_rank1_real64 allocate_rank1_real64 interface~allocate_array->proc~allocate_rank1_real64 proc~allocate_rank2_int16 allocate_rank2_int16 interface~allocate_array->proc~allocate_rank2_int16 proc~allocate_rank2_int32 allocate_rank2_int32 interface~allocate_array->proc~allocate_rank2_int32 proc~allocate_rank2_int64 allocate_rank2_int64 interface~allocate_array->proc~allocate_rank2_int64 proc~allocate_rank2_int8 allocate_rank2_int8 interface~allocate_array->proc~allocate_rank2_int8 proc~allocate_rank2_logical1 allocate_rank2_logical1 interface~allocate_array->proc~allocate_rank2_logical1 proc~allocate_rank2_logical4 allocate_rank2_logical4 interface~allocate_array->proc~allocate_rank2_logical4 proc~allocate_rank2_logical8 allocate_rank2_logical8 interface~allocate_array->proc~allocate_rank2_logical8 proc~allocate_rank2_real128 allocate_rank2_real128 interface~allocate_array->proc~allocate_rank2_real128 proc~allocate_rank2_real32 allocate_rank2_real32 interface~allocate_array->proc~allocate_rank2_real32 proc~allocate_rank2_real64 allocate_rank2_real64 interface~allocate_array->proc~allocate_rank2_real64 proc~error_message error_message proc~allocate_rank1_int16->proc~error_message proc~allocate_rank1_int32->proc~error_message proc~allocate_rank1_int64->proc~error_message proc~allocate_rank1_int8->proc~error_message proc~allocate_rank1_logical1->proc~error_message proc~allocate_rank1_logical4->proc~error_message proc~allocate_rank1_logical8->proc~error_message proc~allocate_rank1_real128->proc~error_message proc~allocate_rank1_real32->proc~error_message proc~allocate_rank1_real64->proc~error_message proc~allocate_rank2_int16->proc~error_message proc~allocate_rank2_int32->proc~error_message proc~allocate_rank2_int64->proc~error_message proc~allocate_rank2_int8->proc~error_message proc~allocate_rank2_logical1->proc~error_message proc~allocate_rank2_logical4->proc~error_message proc~allocate_rank2_logical8->proc~error_message proc~allocate_rank2_real128->proc~error_message proc~allocate_rank2_real32->proc~error_message proc~allocate_rank2_real64->proc~error_message log_error log_error proc~error_message->log_error

Source Code

    subroutine type_proereties_manager_initialize(self, Input, ierr)
        implicit none
        class(type_proereties_manager), intent(inout) :: self
        type(Type_Input), intent(in) :: Input
        integer(int32), intent(inout) :: ierr

        logical :: is_ptr = .true.

        ! Initialize the materials manager
        call self%materials%initialize(Input, ierr)

        if (ierr /= 0) then
            print *, "Error initializing materials manager."
            return
        end if

        if (is_ptr) then
            self%get_thc => calculate_thc_ptr
            self%get_vhc => calculate_heat_capacity_ptr
            ! self%get_dCa_dT => calculate_dcdt_ptr
            self%get_qw => calculate_water_content_ptr
        else
            self%get_thc => calculate_thc_holder
            self%get_vhc => calculate_heat_capacity_holder
            ! self%get_dCa_dT => calculate_dcdt_holder
            self%get_qw => calculate_water_content_holder
        end if

    end subroutine type_proereties_manager_initialize