New URL for NEMO forge!   http://forge.nemo-ocean.eu

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
Changeset 2528 for trunk/NEMOGCM/NEMO/OPA_SRC/IOM/iom.F90 – NEMO

Ignore:
Timestamp:
2010-12-27T18:33:53+01:00 (13 years ago)
Author:
rblod
Message:

Update NEMOGCM from branch nemo_v3_3_beta

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/NEMOGCM/NEMO/OPA_SRC/IOM/iom.F90

    • Property svn:eol-style deleted
    r2499 r2528  
    4444#endif 
    4545   PUBLIC iom_init, iom_swap, iom_open, iom_close, iom_setkt, iom_varid, iom_get, iom_gettime, iom_rstput, iom_put 
     46   PUBLIC iom_getatt 
    4647 
    4748   PRIVATE iom_rp0d, iom_rp1d, iom_rp2d, iom_rp3d 
     
    5455   INTERFACE iom_get 
    5556      MODULE PROCEDURE iom_g0d, iom_g1d, iom_g2d, iom_g3d 
     57   END INTERFACE 
     58   INTERFACE iom_getatt 
     59      MODULE PROCEDURE iom_g0d_intatt 
    5660   END INTERFACE 
    5761   INTERFACE iom_rstput 
     
    6872 
    6973   !!---------------------------------------------------------------------- 
    70    !!  OPA 9.0 , LOCEAN-IPSL (2006) 
     74   !! NEMO/OPA 3.3 , NEMO Consortium (2010) 
    7175   !! $Id$ 
    72    !! Software governed by the CeCILL licence (modipsl/doc/NEMO_CeCILL.txt) 
     76   !! Software governed by the CeCILL licence (NEMOGCM/NEMO_CeCILL.txt) 
    7377   !!---------------------------------------------------------------------- 
    7478 
     
    824828      ! 
    825829   END SUBROUTINE iom_gettime 
     830 
     831 
     832   !!---------------------------------------------------------------------- 
     833   !!                   INTERFACE iom_getatt 
     834   !!---------------------------------------------------------------------- 
     835   SUBROUTINE iom_g0d_intatt( kiomid, cdatt, pvar ) 
     836      INTEGER         , INTENT(in   )                 ::   kiomid    ! Identifier of the file 
     837      CHARACTER(len=*), INTENT(in   )                 ::   cdatt     ! Name of the attribute 
     838      INTEGER         , INTENT(  out)                 ::   pvar      ! read field 
     839      ! 
     840      IF( kiomid > 0 ) THEN 
     841         IF( iom_file(kiomid)%nfid > 0 ) THEN 
     842            SELECT CASE (iom_file(kiomid)%iolib) 
     843            CASE (jpioipsl )   ;   CALL ctl_stop('iom_getatt: only nf90 available') 
     844            CASE (jpnf90   )   ;   CALL iom_nf90_getatt( kiomid, cdatt, pvar ) 
     845            CASE (jprstdimg)   ;   CALL ctl_stop('iom_getatt: only nf90 available') 
     846            CASE DEFAULT     
     847               CALL ctl_stop( 'iom_g0d_att: accepted IO library are only jpioipsl, jpnf90 and jprstdimg' ) 
     848            END SELECT 
     849         ENDIF 
     850      ENDIF 
     851   END SUBROUTINE iom_g0d_intatt 
    826852 
    827853 
Note: See TracChangeset for help on using the changeset viewer.