Interface for calculating the uniform electric and magnetic fields for each particle in the simulation.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(PARTICLES), | intent(inout) | :: | vars | An instance of the KORC derived type PARTICLES. |
||
type(FIELDS), | intent(in) | :: | F | An instance of the KORC derived type FIELDS. |
subroutine uniform_fields(vars,F)
!! @note Interface for calculating the uniform electric and magnetic
!! fields for each particle in the simulation. @endnote
TYPE(PARTICLES), INTENT(INOUT) :: vars
!! An instance of the KORC derived type PARTICLES.
TYPE(FIELDS), INTENT(IN) :: F
!! An instance of the KORC derived type FIELDS.
call uniform_magnetic_field(F, vars%B)
call uniform_electric_field(F, vars%E)
end subroutine uniform_fields