29 result(does_field_exist)
32 character(len=*),
intent(in) :: file_name
33 character(len=*),
intent(in) :: field_name
34 type(domainug),
intent(in) :: domain
35 logical(INT_KIND) :: does_field_exist
38 logical(INT_KIND) :: file_exist
40 character(len=256) :: fname
41 logical(INT_KIND) :: read_dist
43 integer(INT_KIND) :: funit
44 integer(INT_KIND) :: nfile
46 integer(INT_KIND) :: i
47 integer(INT_KIND) :: ndim
48 integer(INT_KIND) :: nvar
49 integer(INT_KIND) :: natt
50 integer(INT_KIND) :: ntime
51 character(len=64) :: tmp_name
52 type(fieldtype),
dimension(:),
allocatable :: fields
56 does_field_exist = .false.
59 if (len_trim(field_name) .eq. 0)
then
62 if (field_name(1:1) .eq.
' ')
then
90 allocate(fields(nvar))
97 call mpp_get_atts(fields(i), &
99 if (lowercase(trim(tmp_name)) .eq. lowercase(trim(field_name)))
then
100 does_field_exist = .true.
logical(int_kind) function fms_io_unstructured_get_file_name(orig_file, actual_file, read_dist, domain)
For an inputted file name, check if it or any of its variants exist. For a file named "foo",...
subroutine fms_io_unstructured_get_file_unit(filename, funit, index_file, read_dist, domain)
Return the file unit and index in the "files_read" module array for the inputted file....
logical(int_kind) function fms_io_unstructured_field_exist(file_name, field_name, domain)
Return a flag indicating whether the inputted field exists in the inputted file, where the file is as...
subroutine mpp_get_info(unit, ndim, nvar, natt, ntime)
Get some general information about a file.
subroutine mpp_get_fields(unit, variables)
Copy variable information from file (excluding data)