get_fname_by_rank Function

public function get_fname_by_rank(fname, rank) result(name)

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: fname
integer, intent(in) :: rank

Return Value character(len=:), allocatable


Calls

proc~~get_fname_by_rank~~CallsGraph proc~get_fname_by_rank get_fname_by_rank proc~i_to_string i_to_string proc~get_fname_by_rank->proc~i_to_string interface~mapl_assert MAPL_Assert proc~i_to_string->interface~mapl_assert proc~mapl_return MAPL_Return proc~i_to_string->proc~mapl_return at at proc~mapl_return->at insert insert proc~mapl_return->insert proc~mapl_throw_exception MAPL_throw_exception proc~mapl_return->proc~mapl_throw_exception

Called by

proc~~get_fname_by_rank~~CalledByGraph proc~get_fname_by_rank get_fname_by_rank proc~mapl_esmfstatereadfromfile MAPL_ESMFStateReadFromFile proc~mapl_esmfstatereadfromfile->proc~get_fname_by_rank proc~mapl_genericinitialize MAPL_GenericInitialize proc~mapl_genericinitialize->proc~mapl_esmfstatereadfromfile proc~mapl_genericrefresh MAPL_GenericRefresh proc~mapl_genericrefresh->proc~mapl_esmfstatereadfromfile proc~mapl_genericrefresh->proc~mapl_genericrefresh proc~mapl_genericstaterestore MAPL_GenericStateRestore proc~mapl_genericstaterestore->proc~mapl_esmfstatereadfromfile proc~mapl_genericstaterestore->proc~mapl_genericstaterestore

Source Code

   function get_fname_by_rank(fname, rank) result(name)
     character(len=:), allocatable :: name
     character(len=*), intent(in) :: fname
     integer, intent(in) :: rank
     integer :: i

     name = trim(fname)//"_"//i_to_string(rank)

   end function get_fname_by_rank