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 for trunk/NEMO/OPA_SRC/IOM – NEMO

Changeset 547 for trunk/NEMO/OPA_SRC/IOM


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/OPA_SRC/IOM
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • 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 
Note: See TracChangeset for help on using the changeset viewer.