shr_file_mod Module



Variables

Type Visibility Attributes Name Initial
integer(kind=SHR_KIND_IN), public, parameter :: shr_file_noPrefix = 0
integer(kind=SHR_KIND_IN), public, parameter :: shr_file_nullPrefix = 1
integer(kind=SHR_KIND_IN), public, parameter :: shr_file_cpPrefix = 2
integer(kind=SHR_KIND_IN), public, parameter :: shr_file_mssPrefix = 3
integer(kind=SHR_KIND_IN), public, parameter :: shr_file_hpssPrefix = 4

Functions

public function shr_file_queryPrefix(filepath, prefix)

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: filepath
character(len=*), intent(out), optional :: prefix

Return Value integer(kind=shr_kind_in)

public function shr_file_getUnit(unit)

Arguments

Type IntentOptional Attributes Name
integer(kind=SHR_KIND_IN), intent(in), optional :: unit

Return Value integer


Subroutines

public subroutine shr_file_put(rcode, loc_fn, rem_fn, passwd, rtpd, async, remove)

Arguments

Type IntentOptional Attributes Name
integer(kind=SHR_KIND_IN), intent(out) :: rcode
character(len=*), intent(in) :: loc_fn
character(len=*), intent(in) :: rem_fn
character(len=*), intent(in), optional :: passwd
integer(kind=SHR_KIND_IN), intent(in), optional :: rtpd
logical, intent(in), optional :: async
logical, intent(in), optional :: remove

public subroutine shr_file_get(rcode, loc_fn, rem_fn, passwd, async, clobber)

Arguments

Type IntentOptional Attributes Name
integer(kind=SHR_KIND_IN), intent(out) :: rcode
character(len=*), intent(in) :: loc_fn
character(len=*), intent(in) :: rem_fn
character(len=*), intent(in), optional :: passwd
logical, intent(in), optional :: async
logical, intent(in), optional :: clobber

public subroutine shr_file_freeUnit(unit)

Arguments

Type IntentOptional Attributes Name
integer(kind=SHR_KIND_IN), intent(in) :: unit

public subroutine shr_file_stdio(model)

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: model

public subroutine shr_file_chdir(model, rcodeOut)

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: model
integer(kind=SHR_KIND_IN), intent(out), optional :: rcodeOut

public subroutine shr_file_dirio(model)

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: model

public subroutine shr_file_chStdIn(model, NLFilename, rcodeOut)

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: model
character(len=SHR_KIND_CL), intent(out), optional :: NLFilename
integer(kind=SHR_KIND_IN), intent(out), optional :: rcodeOut

public subroutine shr_file_chStdOut(model, rcodeOut)

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: model
integer(kind=SHR_KIND_IN), intent(out), optional :: rcodeOut

public subroutine shr_file_setIO(nmlfile, funit)

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: nmlfile
integer(kind=SHR_KIND_IN), intent(in) :: funit

public subroutine shr_file_setLogUnit(unit)

Arguments

Type IntentOptional Attributes Name
integer(kind=SHR_KIND_IN), intent(in) :: unit

public subroutine shr_file_setLogLevel(newlevel)

Arguments

Type IntentOptional Attributes Name
integer(kind=SHR_KIND_IN), intent(in) :: newlevel

public subroutine shr_file_getLogUnit(unit)

Arguments

Type IntentOptional Attributes Name
integer(kind=SHR_KIND_IN), intent(out) :: unit

public subroutine shr_file_getLogLevel(curlevel)

Arguments

Type IntentOptional Attributes Name
integer(kind=SHR_KIND_IN), intent(out) :: curlevel