FIXME : Add documentation
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dens_vel_diagnostics), | intent(inout), | dimension(:) | :: | dv | ||
integer, | intent(in) | :: | nspec |
subroutine init_dvtype_1 (dv, nspec)
implicit none
type (dens_vel_diagnostics), dimension(:), intent(in out) :: dv
integer, intent (in) :: nspec
integer :: n, nmax
nmax = size(dv)
do n=1,nmax
allocate (dv(n) % dvpar(nspec))
allocate (dv(n) % dvperp(nspec))
allocate (dv(n) % dn(nspec))
end do
call zero_dvtype (dv)
end subroutine init_dvtype_1