ALLOCATE_3D_PROFILES_ARRAYS Subroutine

private subroutine ALLOCATE_3D_PROFILES_ARRAYS(P)

Arguments

Type IntentOptional AttributesName
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.


Called by

proc~~allocate_3d_profiles_arrays~~CalledByGraph proc~allocate_3d_profiles_arrays ALLOCATE_3D_PROFILES_ARRAYS proc~load_profiles_data_from_hdf5 load_profiles_data_from_hdf5 proc~load_profiles_data_from_hdf5->proc~allocate_3d_profiles_arrays proc~initialize_profiles initialize_profiles proc~initialize_profiles->proc~load_profiles_data_from_hdf5 program~main main program~main->proc~initialize_profiles

Contents


Source Code

  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