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 881 for branches/dev_001_SBC/NEMO/LIM_SRC/limrst.F90 – NEMO

Ignore:
Timestamp:
2008-04-08T11:45:52+02:00 (16 years ago)
Author:
ctlod
Message:

dev_001_SBC: Step I: change cpp ket name key_ice_lim into key_lim2 & change names inside modules with extension _2, see ticket: #110

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/dev_001_SBC/NEMO/LIM_SRC/limrst.F90

    r811 r881  
    1 MODULE limrst 
     1MODULE limrst_2 
    22   !!====================================================================== 
    3    !!                     ***  MODULE  limrst  *** 
     3   !!                     ***  MODULE  limrst_2  *** 
    44   !! Ice restart :  write the ice restart file 
    55   !!====================================================================== 
     
    77   !!                 !  06-07  (S. Masson)  use IOM for restart read/write 
    88   !!---------------------------------------------------------------------- 
    9 #if defined key_ice_lim 
    10    !!---------------------------------------------------------------------- 
    11    !!   'key_ice_lim' :                                   LIM sea-ice model 
    12    !!---------------------------------------------------------------------- 
    13    !!---------------------------------------------------------------------- 
    14    !!   lim_rst_opn   : open ice restart file 
    15    !!   lim_rst_write : write of the ice restart file  
    16    !!   lim_rst_read  : read  the ice restart file  
    17    !!---------------------------------------------------------------------- 
    18    USE ice 
     9#if defined key_lim2 
     10   !!---------------------------------------------------------------------- 
     11   !!   'key_lim2' :                                  LIM 2.0 sea-ice model 
     12   !!---------------------------------------------------------------------- 
     13   !!---------------------------------------------------------------------- 
     14   !!   lim_rst_opn_2   : open ice restart file 
     15   !!   lim_rst_write_2 : write of the ice restart file  
     16   !!   lim_rst_read_2  : read  the ice restart file  
     17   !!---------------------------------------------------------------------- 
     18   USE ice_2 
    1919   USE sbc_oce 
    2020   USE sbc_ice 
     
    2727   PRIVATE 
    2828 
    29    PUBLIC   lim_rst_opn     ! routine called by ??? module 
    30    PUBLIC   lim_rst_write   ! routine called by lim_step.F90 
    31    PUBLIC   lim_rst_read    ! routine called by lim_init.F90 
     29   PUBLIC   lim_rst_opn_2     ! routine called by sbcice_lim_2.F90 
     30   PUBLIC   lim_rst_write_2   ! routine called by sbcice_lim_2.F90 
     31   PUBLIC   lim_rst_read_2    ! routine called by iceini_2.F90 
    3232 
    3333   LOGICAL, PUBLIC ::   lrst_ice         !: logical to control the ice restart write  
     
    4242CONTAINS 
    4343 
    44    SUBROUTINE lim_rst_opn( kt ) 
    45       !!---------------------------------------------------------------------- 
    46       !!                    ***  lim_rst_opn  *** 
     44   SUBROUTINE lim_rst_opn_2( kt ) 
     45      !!---------------------------------------------------------------------- 
     46      !!                    ***  lim_rst_opn_2  *** 
    4747      !! 
    4848      !! ** purpose  :   output of sea-ice variable in a netcdf file 
     
    8282      ENDIF 
    8383      ! 
    84    END SUBROUTINE lim_rst_opn 
    85  
    86  
    87    SUBROUTINE lim_rst_write( kt ) 
    88       !!---------------------------------------------------------------------- 
    89       !!                    ***  lim_rst_write  *** 
     84   END SUBROUTINE lim_rst_opn_2 
     85 
     86 
     87   SUBROUTINE lim_rst_write_2( kt ) 
     88      !!---------------------------------------------------------------------- 
     89      !!                    ***  lim_rst_write_2  *** 
    9090      !! 
    9191      !! ** purpose  :   output of sea-ice variable in a netcdf file 
     
    100100      IF( iter == nitrst ) THEN 
    101101         IF(lwp) WRITE(numout,*) 
    102          IF(lwp) WRITE(numout,*) 'lim_rst_write : write ice restart file  kt =', kt 
    103          IF(lwp) WRITE(numout,*) '~~~~~~~~~~~~~' 
    104       ENDIF 
    105  
    106       ! Write in numriw (if iter  == nitrst) 
     102         IF(lwp) WRITE(numout,*) 'lim_rst_write_2 : write ice restart file  kt =', kt 
     103         IF(lwp) WRITE(numout,*) '~~~~~~~~~~~~~~~' 
     104      ENDIF 
     105 
     106      ! Write in numriw (if iter == nitrst) 
    107107      ! ------------------  
    108108      !                                                                     ! calendar control 
     
    164164      ENDIF 
    165165      ! 
    166    END SUBROUTINE lim_rst_write 
    167  
    168  
    169    SUBROUTINE lim_rst_read 
    170       !!---------------------------------------------------------------------- 
    171       !!                    ***  lim_rst_read  *** 
     166   END SUBROUTINE lim_rst_write_2 
     167 
     168 
     169   SUBROUTINE lim_rst_read_2 
     170      !!---------------------------------------------------------------------- 
     171      !!                    ***  lim_rst_read_2  *** 
    172172      !! 
    173173      !! ** purpose  :   read of sea-ice variable restart in a netcdf file 
     
    178178      IF(lwp) THEN 
    179179         WRITE(numout,*) 
    180          WRITE(numout,*) 'lim_rst_read : read ice NetCDF restart file' 
    181          WRITE(numout,*) '~~~~~~~~~~~~' 
     180         WRITE(numout,*) 'lim_rst_read_2 : read ice NetCDF restart file' 
     181         WRITE(numout,*) '~~~~~~~~~~~~~~' 
    182182      ENDIF 
    183183 
     
    247247      CALL iom_close( numrir ) 
    248248      ! 
    249    END SUBROUTINE lim_rst_read 
     249   END SUBROUTINE lim_rst_read_2 
    250250 
    251251#else 
    252252   !!---------------------------------------------------------------------- 
    253    !!   Default option :       Empty module            NO LIM sea-ice model 
     253   !!   Default option :       Empty module        NO LIM 2.0 sea-ice model 
    254254   !!---------------------------------------------------------------------- 
    255255#endif 
    256256 
    257257   !!====================================================================== 
    258 END MODULE limrst 
     258END MODULE limrst_2 
Note: See TracChangeset for help on using the changeset viewer.