! $Id$ ! ! Earth System Modeling Framework ! Copyright (c) 2002-2023, University Corporation for Atmospheric Research, ! Massachusetts Institute of Technology, Geophysical Fluid Dynamics ! Laboratory, University of Michigan, National Centers for Environmental ! Prediction, Los Alamos National Laboratory, Argonne National Laboratory, ! NASA Goddard Space Flight Center. ! Licensed under the University of Illinois-NCSA License. ! !============================================================================== ! ! F77 interface files for C++ layer calling into F90 implementation layer. ! This cannot use any F90 syntax, including modules, or allocatable ! arrays, or ... ! !============================================================================== #define ESMF_FILENAME "ESMF_IO_Gridspec_C.F90" ! !------------------------------------------------------------------------------ ! INCLUDES #include "ESMF.h" !============================================================================== !------------------------------------------------------------------------------ ! The following line turns the CVS identifier string into a printable variable. ! character(*), parameter, private :: version = & ! '$Id$' !============================================================================== #undef ESMF_METHOD #define ESMF_METHOD "f_esmf_gridspec_inq" subroutine f_esmf_gridspec_inq(filename, ndims, grid_dims, rc) use ESMF_UtilTypesMod use ESMF_LogErrMod use ESMF_IOGridspecMod implicit none !------------------------------------------------------------------------------ !arguments character(len=*), intent(in) :: filename integer, intent(out) :: ndims integer, intent(out) :: grid_dims(2) integer, intent(out) :: rc ! Initialize return code; assume routine not implemented rc = ESMF_RC_NOT_IMPL ! Call into public interface call ESMF_GridspecInq(filename, ndims, grid_dims, rc=rc) ! Error handling if (ESMF_LogFoundError(rc, ESMF_ERR_PASSTHRU, & ESMF_CONTEXT, rcToReturn=rc)) return ! Return successfully rc = ESMF_SUCCESS end subroutine f_esmf_gridspec_inq