ALLOCATE_2D_PROFILES_ARRAYS Subroutine

private subroutine ALLOCATE_2D_PROFILES_ARRAYS(P)

@brief Subroutine that allocates the mesh information and 2-D arrays for keeping the data of pre-computed plasma profiles.

@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.f90 and korc_profiles.f90.

Arguments

Type IntentOptional AttributesName
type(PROFILES), intent(inout) :: P

Contents


Source Code

  subroutine ALLOCATE_2D_PROFILES_ARRAYS(P)
    TYPE(PROFILES), INTENT(INOUT) :: P

    ALLOCATE(P%X%R(P%dims(1)))
    ALLOCATE(P%X%Z(P%dims(3)))
    ALLOCATE(P%FLAG2D(P%dims(1),P%dims(3)))
    ALLOCATE(P%ne_2D(P%dims(1),P%dims(3)))
    ALLOCATE(P%Te_2D(P%dims(1),P%dims(3)))
    ALLOCATE(P%Zeff_2D(P%dims(1),P%dims(3)))
  end subroutine ALLOCATE_2D_PROFILES_ARRAYS