Initialize NeutralPopulation
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(NeutralPopulation), | intent(inout) | :: | pop | Neutral Population to initialize |
subroutine free_neutral_population(pop)
!+ Initialize [[NeutralPopulation]]
type(NeutralPopulation), intent(inout) :: pop
!+ Neutral Population to initialize
integer :: i, j, k, ic, ind(3)
if(allocated(pop%dens)) then
deallocate(pop%dens)
endif
if(allocated(pop%res)) then
deallocate(pop%res)
endif
end subroutine free_neutral_population