FIXME : Add documentation
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(heating_diagnostics), | intent(inout), | dimension(:,:) | :: | h | ||
integer, | intent(in) | :: | nspec |
subroutine init_htype_2 (h, nspec)
implicit none
type (heating_diagnostics), dimension(:,:), intent(in out) :: h
integer, intent (in) :: nspec
integer :: m, n, mmax, nmax
mmax = size(h, 1)
nmax = size(h, 2)
do n = 1, nmax
do m = 1, mmax
allocate (h(m,n) % delfs2(nspec))
allocate (h(m,n) % hs2(nspec))
allocate (h(m,n) % phis2(nspec))
allocate (h(m,n) % hypervisc(nspec))
allocate (h(m,n) % hyperres(nspec))
allocate (h(m,n) % hypercoll(nspec))
allocate (h(m,n) % collisions(nspec))
allocate (h(m,n) % imp_colls(nspec))
allocate (h(m,n) % gradients(nspec))
! allocate (h(m,n) % curvature(nspec))
allocate (h(m,n) % heating(nspec))
end do
end do
call zero_htype (h)
end subroutine init_htype_2