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 547 – NEMO

Changeset 547


Ignore:
Timestamp:
2006-10-20T17:45:39+02:00 (18 years ago)
Author:
opalod
Message:

nemo_v1_update_078:RB: finalization of IOM (2)

Location:
trunk/NEMO
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/NEMO/LIM_SRC/limrst.F90

    r544 r547  
    6969         clname = TRIM(cexper)//"_"//TRIM(ADJUSTL(clkt))//"_restart_ice" 
    7070         IF(lwp) WRITE(numout,*) '             open ice restart.output NetCDF file: '//clname 
    71          CALL iom_open( clname, numriw, ldwrt = .TRUE., kiolib = jprstdimg ) 
     71         CALL iom_open( clname, numriw, ldwrt = .TRUE., kiolib = jprstlib ) 
    7272         lrst_ice = .TRUE. 
    7373      ENDIF 
     
    176176      ENDIF 
    177177 
    178       CALL iom_open ( 'restart_ice_in', numrir, kiolib = jprstdimg ) 
     178      CALL iom_open ( 'restart_ice_in', numrir, kiolib = jprstlib ) 
    179179 
    180180      CALL iom_get( numrir, 'nfice' , zfice ) 
  • trunk/NEMO/OPA_SRC/DOM/domwri.F90

    r544 r547  
    9191         CASE ( 1 )                            !  create 'mesh_mask.nc' file 
    9292            !                                  ! ============================ 
    93             IF(lwp) WRITE(numout,*) '          one file in "mesh_mask.nc" ' 
    94             CALL iom_open( TRIM(clnam0), inum0, ldwrt = .TRUE., kiolib = jprstdimg ) 
     93            CALL iom_open( TRIM(clnam0), inum0, ldwrt = .TRUE., kiolib = jprstlib ) 
    9594            inum2 = inum0                                            ! put all the informations 
    9695            inum3 = inum0                                            ! in unit inum0 
     
    101100            !                                  !         'mask.nc' files 
    102101            !                                  ! ============================ 
    103             IF(lwp) WRITE(numout,*) '          two files in "mesh.nc" and "mask.nc" ' 
    104             CALL iom_open( TRIM(clnam1), inum1, ldwrt = .TRUE., kiolib = jprstdimg ) 
    105             CALL iom_open( TRIM(clnam2), inum2, ldwrt = .TRUE., kiolib = jprstdimg ) 
     102            CALL iom_open( TRIM(clnam1), inum1, ldwrt = .TRUE., kiolib = jprstlib ) 
     103            CALL iom_open( TRIM(clnam2), inum2, ldwrt = .TRUE., kiolib = jprstlib ) 
    106104            inum3 = inum1                                            ! put mesh informations  
    107105            inum4 = inum1                                            ! in unit inum1  
     
    111109            !                                  !         'mask.nc'     files 
    112110            !                                  ! ============================ 
    113             IF(lwp) WRITE(numout,*) '          three files in "mesh_hgr.nc" , mesh_zgr.nc" and "mask.nc" ' 
    114             CALL iom_open( TRIM(clnam2), inum2, ldwrt = .TRUE., kiolib = jprstdimg ) 
    115             CALL iom_open( TRIM(clnam3), inum3, ldwrt = .TRUE., kiolib = jprstdimg ) 
    116             CALL iom_open( TRIM(clnam4), inum4, ldwrt = .TRUE., kiolib = jprstdimg ) 
     111            CALL iom_open( TRIM(clnam2), inum2, ldwrt = .TRUE., kiolib = jprstlib ) 
     112            CALL iom_open( TRIM(clnam3), inum3, ldwrt = .TRUE., kiolib = jprstlib ) 
     113            CALL iom_open( TRIM(clnam4), inum4, ldwrt = .TRUE., kiolib = jprstlib ) 
    117114 
    118115         END SELECT 
  • trunk/NEMO/OPA_SRC/IOM/in_out_manager.F90

    r544 r547  
    2525   CHARACTER (len=16) ::   cexper     = "exp0"    !: experiment name used for output filename 
    2626   LOGICAL            ::   ln_rstart  = .FALSE.   !: start from (F) rest or (T) a restart file 
     27   LOGICAL            ::   ln_ctl     = .FALSE.   !: run control for debugging 
    2728   INTEGER            ::   no         = 0         !: job number 
    2829   INTEGER            ::   nrstdt     = 0         !: control of the time step (0, 1 or 2) 
     
    3233   INTEGER            ::   nleapy     = 0         !: Leap year calendar flag (0/1 or 30) 
    3334   INTEGER            ::   ninist     = 0         !: initial state output flag (0/1) 
    34    INTEGER            ::   nstock     =   10      !: restart file frequency 
    35    INTEGER            ::   nwrite     =   10      !: restart file frequency 
     35   INTEGER            ::   nbench     = 0         !: benchmark parameter (0/1) 
    3636    
    3737   !!---------------------------------------------------------------------- 
    3838   !!                    output monitoring 
    3939   !!---------------------------------------------------------------------- 
    40    LOGICAL            ::   ln_ctl     = .FALSE.   !: run control for debugging 
     40   INTEGER            ::   nstock     =   10      !: restart file frequency 
    4141   INTEGER            ::   nprint     =    0      !: level of print (0 no print) 
     42   INTEGER            ::   nwrite     =   10      !: restart file frequency 
    4243   INTEGER            ::   nictls     =    0      !: Start i indice for the SUM control 
    4344   INTEGER            ::   nictle     =    0      !: End   i indice for the SUM control 
     
    4748   INTEGER            ::   jsplt      =    1      !: number of processors following j 
    4849   INTEGER            ::   ijsplt     =    1      !: nb of local domain = nb of processors 
    49    INTEGER            ::   nbench     =    0      !: benchmark parameter (0/1) 
    50    INTEGER            ::   nbit_cmp   =    0      !: bit comparison mode parameter (0/1) 
    5150 
    5251   !!---------------------------------------------------------------------- 
  • trunk/NEMO/OPA_SRC/IOM/iom.F90

    r544 r547  
    5757      LOGICAL         , INTENT(in   ), OPTIONAL ::   ldwrt    ! open in write modeb          (default = .FALSE.) 
    5858      INTEGER         , INTENT(in   ), OPTIONAL ::   kdom     ! Type of domain to be written (default = jpdom_local_noovlap) 
    59       INTEGER         , INTENT(in   ), OPTIONAL ::   kiolib   ! library used to open the file (default = jpioipsl)  
     59      INTEGER         , INTENT(in   ), OPTIONAL ::   kiolib   ! library used to open the file (default = jpnf90)  
    6060 
    6161      CHARACTER(LEN=100)    ::   clname    ! the name of the file based on cdname [[+clcpu]+clcpu] 
     
    9494      ! what library do we use to open the file? 
    9595      IF( PRESENT(kiolib) ) THEN   ;   iolib = kiolib 
    96       ELSE                         ;   iolib = jpioipsl 
     96      ELSE                         ;   iolib = jpnf90 
    9797      ENDIF 
    9898      ! create the file name by added, if needed, TRIM(Agrif_CFixed()) and TRIM(clsuffix) 
  • trunk/NEMO/OPA_SRC/IOM/iom_def.F90

    r544 r547  
    2222   INTEGER, PARAMETER, PUBLIC ::   jpnf90      = 101     !: Use nf90 library 
    2323   INTEGER, PARAMETER, PUBLIC ::   jprstdimg   = 102     !: Use restart dimgs (fortran direct acces) library 
     24#if defined key_dimgout 
     25   INTEGER, PARAMETER, PUBLIC ::   jprstlib  = jprstdimg  !: restarts io library 
     26#else 
     27   INTEGER, PARAMETER, PUBLIC ::   jprstlib  = jpnf90     !: restarts io library 
     28#endif 
    2429 
    2530   INTEGER, PARAMETER, PUBLIC ::   jp_r8    = 200     !:  
  • trunk/NEMO/OPA_SRC/IOM/iom_rstdimg.F90

    r544 r547  
    167167            iom_file(kiomid)%irec  = 2 
    168168            ! store file informations 
    169             WRITE(idrst, REC = 1, IOSTAT = ios, ERR = 987) irecl8, kdompar(1,1), kdompar(2,1), jpk 
     169            WRITE( idrst, REC = 1, IOSTAT = ios, ERR = 987 ) irecl8, kdompar(:,1), jpk   ! store domain size 
    170170         ENDIF 
    171171      ENDIF 
     
    200200      idrst = iom_file(kiomid)%nfid   ! get back the logical unit of the restart file 
    201201      ! test if we can write in the file (test with INQUIRE gives alsways YES even with read only files...) 
    202       READ(  idrst, REC = 1, IOSTAT = ios, ERR = 987 ) irecl8 
    203       WRITE( idrst, REC = 1, IOSTAT = ios            ) irecl8 
    204       ! We can write un the file => we update its header before closing 
     202      READ(  idrst, REC = 1, IOSTAT = ios, ERR = 987 ) irecl8, inx, iny, inz    
     203      WRITE( idrst, REC = 1, IOSTAT = ios            ) irecl8, inx, iny, inz    
     204      ! We can write in the file => we update its header before closing 
    205205      IF( ios == 0 ) THEN 
    206          READ( idrst, REC = 1, IOSTAT = ios, ERR = 987 ) irecl8, inx, iny, inz 
     206         READ( idrst, REC = 1, IOSTAT = ios, ERR = 987 ) irecl8, inx, iny, inz   ! get back domain size 
    207207         ivnum = iom_file(kiomid)%nvars 
    208208         in0d = 0   ;   in2d = 0   ;   in3d = 0 
  • trunk/NEMO/OPA_SRC/restart.F90

    r544 r547  
    8585         clname = TRIM(cexper)//"_"//TRIM(ADJUSTL(clkt))//"_restart" 
    8686         IF(lwp) WRITE(numout,*) '             open ocean restart.output NetCDF file: '//clname 
    87          CALL iom_open( clname, numrow, ldwrt = .TRUE., kiolib = jprstdimg ) 
     87         CALL iom_open( clname, numrow, ldwrt = .TRUE., kiolib = jprstlib ) 
    8888         IF( lk_trdmld )   THEN 
    8989            clname = TRIM(cexper)//"_"//TRIM(ADJUSTL(clkt))//"_restart_mld" 
    9090            IF(lwp) WRITE(numout,*) '             open ocean restart_mld NetCDF file: '//clname 
    91             CALL iom_open( clname, nummldw, ldwrt = .TRUE., kiolib = jprstdimg ) 
     91            CALL iom_open( clname, nummldw, ldwrt = .TRUE., kiolib = jprstlib ) 
    9292         ENDIF 
    9393         lrst_oce = .TRUE. 
     
    232232      ENDIF 
    233233 
    234       CALL iom_open( 'restart', numror, kiolib = jprstdimg )   ! Open 
     234      CALL iom_open( 'restart', numror, kiolib = jprstlib ) 
    235235 
    236236      ! Calendar informations 
Note: See TracChangeset for help on using the changeset viewer.