MOM6
mom_io::file_exists Interface Reference

Detailed Description

Indicate whether a file exists, perhaps with domain decomposition.

Definition at line 68 of file MOM_io.F90.

Private functions

logical function fms_file_exists (filename, domain, no_domain)
 Returns true if the named file or its domain-decomposed variant exists. More...
 
logical function mom_file_exists (filename, MOM_Domain)
 Returns true if the named file or its domain-decomposed variant exists. More...
 

Functions and subroutines

◆ fms_file_exists()

logical function mom_io::file_exists::fms_file_exists ( character(len=*), intent(in)  filename,
type(domain2d), intent(in), optional  domain,
logical, intent(in), optional  no_domain 
)
private

Returns true if the named file or its domain-decomposed variant exists.

Parameters
[in]filenameThe name of the file being inquired about
[in]domainThe mpp domain2d that describes the decomposition
[in]no_domainThis file does not use domain decomposition

Definition at line 835 of file MOM_io.F90.

835  character(len=*), intent(in) :: filename !< The name of the file being inquired about
836  type(domain2d), optional, intent(in) :: domain !< The mpp domain2d that describes the decomposition
837  logical, optional, intent(in) :: no_domain !< This file does not use domain decomposition
838 ! This function uses the fms_io function file_exist to determine whether
839 ! a named file (or its decomposed variant) exists.
840 
841  logical :: FMS_file_exists
842 
843  fms_file_exists = file_exist(filename, domain, no_domain)
844 

◆ mom_file_exists()

logical function mom_io::file_exists::mom_file_exists ( character(len=*), intent(in)  filename,
type(mom_domain_type), intent(in)  MOM_Domain 
)
private

Returns true if the named file or its domain-decomposed variant exists.

Parameters
[in]filenameThe name of the file being inquired about
[in]mom_domainThe MOM_Domain that describes the decomposition

Definition at line 821 of file MOM_io.F90.

821  character(len=*), intent(in) :: filename !< The name of the file being inquired about
822  type(MOM_domain_type), intent(in) :: MOM_Domain !< The MOM_Domain that describes the decomposition
823 
824 ! This function uses the fms_io function file_exist to determine whether
825 ! a named file (or its decomposed variant) exists.
826 
827  logical :: MOM_file_exists
828 
829  mom_file_exists = file_exist(filename, mom_domain%mpp_domain)
830 

The documentation for this interface was generated from the following file: