calculate_thc_impl_array Function

private function calculate_thc_impl_array(self, ptrs, states) result(vals)

Type Bound

type_properties_manager

Arguments

Type IntentOptional Attributes Name
class(type_properties_manager), intent(in) :: self
type(type_material_pointers), intent(in) :: ptrs
type(type_state), intent(inout) :: states(:)

Return Value real(kind=real64), (size(states))


Calls

proc~~calculate_thc_impl_array~~CallsGraph proc~calculate_thc_impl_array type_properties_manager%calculate_thc_impl_array none~calc_water_content type_properties_manager%calc_water_content proc~calculate_thc_impl_array->none~calc_water_content proc~calculate_thc_impl_scalar type_properties_manager%calculate_thc_impl_scalar proc~calculate_thc_impl_array->proc~calculate_thc_impl_scalar proc~calculate_water_content type_properties_manager%calculate_water_content none~calc_water_content->proc~calculate_water_content proc~calculate_water_content_array type_properties_manager%calculate_water_content_array none~calc_water_content->proc~calculate_water_content_array calc calc proc~calculate_thc_impl_scalar->calc proc~calculate_thc_impl_scalar->proc~calculate_water_content proc~calculate_water_content->calc proc~calculate_water_content_array->proc~calculate_water_content

Called by

proc~~calculate_thc_impl_array~~CalledByGraph proc~calculate_thc_impl_array type_properties_manager%calculate_thc_impl_array proc~calculate_thc_array type_properties_manager%calculate_thc_array proc~calculate_thc_array->proc~calculate_thc_impl_array none~calc_thc type_properties_manager%calc_thc none~calc_thc->proc~calculate_thc_array proc~get_observations_thc get_observations_thc proc~get_observations_thc->none~calc_thc proc~interpolate_observations_thc interpolate_observations_thc proc~interpolate_observations_thc->none~calc_thc

Source Code

    function calculate_thc_impl_array(self, ptrs, states) result(vals)
        implicit none
        class(type_properties_manager), intent(in) :: self
        type(type_material_pointers), intent(in) :: ptrs
        type(type_state), intent(inout) :: states(:)
        real(real64) :: vals(size(states))

        integer(int32) :: i

        call self%calc_water_content(ptrs, states)
        do i = 1, size(states)
            vals(i) = self%calculate_thc_impl_scalar(ptrs, states(i))
        end do
    end function calculate_thc_impl_array