Initializing to zero the particles' position when simulating a 'UNIFORM' plasma.
Even though in a simulation of a uniform plasma the particles' position is not advanced, we initialize their position to zero.
Modify KORC for not allocating the particles' position spp%vars%X and to do not use it along the simulation.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(SPECIES), | intent(inout) | :: | spp | An instance of the derived type SPECIES containing all the parameters and simulation variables of the different species in the simulation. |
subroutine uniform(spp)
!! @note Initializing to zero the particles' position when
!! simulating a 'UNIFORM' plasma. @endnote
!! Even though in a simulation of a uniform plasma the particles'
!! position is not advanced, we initialize their position to zero.
!! @todo Modify KORC for not allocating the particles' position
!! spp%vars%X and to do not use it along the simulation.
TYPE(SPECIES), INTENT(INOUT) :: spp
!! An instance of the derived type SPECIES containing all the
!! parameters and simulation variables of the different
!!species in the simulation.
spp%vars%X = 0.0_rp
end subroutine uniform