Subroutine that allocates the mesh information and 3-D arrays for keeping the data of pre-computed plasma profiles.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(PROFILES), | intent(inout) | :: | P | @param[out] P An instance of KORC's derived type PROFILES containing all the information about the plasma profiles used in the simulation. See korc_types and korc_profiles. |
subroutine ALLOCATE_3D_PROFILES_ARRAYS(P)
!! @note Subroutine that allocates the mesh information and 3-D arrays
!! for keeping the data of pre-computed plasma profiles. @endnote
TYPE(PROFILES), INTENT(INOUT) :: P
!! @param[out] P An instance of KORC's derived type PROFILES containing
!! all the information about the plasma profiles used in the
!! simulation. See [[korc_types]] and [[korc_profiles]].
ALLOCATE(P%X%R(P%dims(1)))
ALLOCATE(P%X%PHI(P%dims(2)))
ALLOCATE(P%X%Z(P%dims(3)))
ALLOCATE(P%FLAG3D(P%dims(1),P%dims(2),P%dims(3)))
ALLOCATE(P%ne_3D(P%dims(1),P%dims(2),P%dims(3)))
ALLOCATE(P%Te_3D(P%dims(1),P%dims(2),P%dims(3)))
ALLOCATE(P%Zeff_3D(P%dims(1),P%dims(2),P%dims(3)))
end subroutine ALLOCATE_3D_PROFILES_ARRAYS