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

Changeset 4166


Ignore:
Timestamp:
2013-11-08T06:51:52+01:00 (10 years ago)
Author:
cetlod
Message:

dev_LOCEAN_2013 : bugs corrections, see ticket #1169

Location:
branches/2013/dev_LOCEAN_2013/NEMOGCM/NEMO
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • branches/2013/dev_LOCEAN_2013/NEMOGCM/NEMO/LIM_SRC_3/limistate.F90

    r4161 r4166  
    3636   PUBLIC   lim_istate      ! routine called by lim_init.F90 
    3737 
    38    !                       !!** init namelist (namiceini) ** 
    39    REAL(wp) ::   ttest      ! threshold water temperature for initial sea ice 
    40    REAL(wp) ::   hninn      ! initial snow thickness in the north 
    41    REAL(wp) ::   hginn_u    ! initial ice thickness in the north 
    42    REAL(wp) ::   aginn_u    ! initial leads area in the north 
    43    REAL(wp) ::   hginn_d    ! initial ice thickness in the north 
    44    REAL(wp) ::   aginn_d    ! initial leads area in the north 
    45    REAL(wp) ::   hnins      ! initial snow thickness in the south 
    46    REAL(wp) ::   hgins_u    ! initial ice thickness in the south 
    47    REAL(wp) ::   agins_u    ! initial leads area in the south 
    48    REAL(wp) ::   hgins_d    ! initial ice thickness in the south 
    49    REAL(wp) ::   agins_d    ! initial leads area in the south 
    50    REAL(wp) ::   sinn       ! initial salinity  
    51    REAL(wp) ::   sins       ! 
     38 
     39   !! * Module variables 
     40   !                          !!** init namelist (namiceini) ** 
     41   REAL(wp) ::   ttest   ! threshold water temperature for initial sea ice 
     42   REAL(wp) ::   hninn   ! initial snow thickness in the north 
     43   REAL(wp) ::   hnins   ! initial snow thickness in the south 
     44   REAL(wp) ::   hginn   ! initial ice thickness in the north 
     45   REAL(wp) ::   hgins   ! initial ice thickness in the south 
     46   REAL(wp) ::   aginn   ! initial leads area in the north 
     47   REAL(wp) ::   agins   ! initial leads area in the south 
     48   REAL(wp) ::   sinn    ! initial salinity  
     49   REAL(wp) ::   sins   
    5250 
    5351   !!---------------------------------------------------------------------- 
     
    483481      !!  8.5  ! 07-11 (M. Vancoppenolle) rewritten initialization 
    484482      !!----------------------------------------------------------------------------- 
    485 <<<<<<< .courant 
     483      NAMELIST/namiceini/ ttest, hninn, hnins, hginn, hgins, aginn, agins, sinn, sins 
     484      ! 
    486485      INTEGER :: ios                 ! Local integer output status for namelist read 
    487       NAMELIST/namiceini/ ttest, hninn, hginn_u, aginn_u, hginn_d, aginn_d, hnins,   & 
    488          &                hgins_u, agins_u, hgins_d, agins_d, sinn, sins 
    489 ======= 
    490       NAMELIST/namiceini/ ttest, hninn, hnins, hginn, hgins, aginn, agins, sinn, sins 
    491 >>>>>>> .fusion-droit.r4160 
    492486      !!----------------------------------------------------------------------------- 
    493 <<<<<<< .courant 
    494487      ! 
    495488      REWIND( numnam_ice_ref )              ! Namelist namiceini in reference namelist : Ice initial state 
     
    501494902   IF( ios /= 0 ) CALL ctl_nam ( ios , 'namiceini in configuration namelist', lwp ) 
    502495      WRITE ( numoni, namiceini ) 
    503 ======= 
    504496 
    505497      ! Define the initial parameters 
    506498      ! ------------------------- 
    507499 
    508       ! Read Namelist namiceini  
    509       REWIND ( numnam_ice ) 
    510       READ   ( numnam_ice , namiceini ) 
    511 >>>>>>> .fusion-droit.r4160 
    512500      IF(lwp) THEN 
    513501         WRITE(numout,*) 
  • branches/2013/dev_LOCEAN_2013/NEMOGCM/NEMO/OFF_SRC/nemogcm.F90

    r4152 r4166  
    106106      END DO 
    107107#if defined key_iomput 
    108       CALL xios_context_finalize() ! needed for XIOS+AGRIF 
     108      CALL iom_context_finalize( "nemo" ) ! needed for XIOS+AGRIF 
    109109#endif 
    110110 
  • branches/2013/dev_LOCEAN_2013/NEMOGCM/NEMO/OPA_SRC/DIA/diahsb.F90

    r4162 r4166  
    2626   USE restart         ! ocean restart 
    2727   USE wrk_nemo         ! work arrays 
     28   USE sbcrnf         ! river runoffd 
    2829 
    2930   IMPLICIT NONE 
     
    196197      !! 
    197198      NAMELIST/namhsb/ ln_diahsb 
     199      ! 
     200      INTEGER  ::   ios 
    198201      !!---------------------------------------------------------------------- 
    199       ! 
    200       REWIND ( numnam )              ! Read Namelist namhsb  
    201       READ   ( numnam, namhsb ) 
     202 
     203      IF(lwp) THEN 
     204         WRITE(numout,*) 
     205         WRITE(numout,*) 'dia_hsb_init : check the heat and salt budgets' 
     206         WRITE(numout,*) '~~~~~~~~ ' 
     207      ENDIF 
     208 
     209      REWIND( numnam_ref )              ! Namelist namhsb in reference namelist 
     210      READ  ( numnam_ref, namhsb, IOSTAT = ios, ERR = 901) 
     211901   IF( ios /= 0 ) CALL ctl_nam ( ios , 'namhsb in reference namelist', lwp ) 
     212 
     213      REWIND( numnam_cfg )              ! Namelist namhsb in configuration namelist 
     214      READ  ( numnam_cfg, namhsb, IOSTAT = ios, ERR = 902 ) 
     215902   IF( ios /= 0 ) CALL ctl_nam ( ios , 'namhsb in configuration namelist', lwp ) 
     216      WRITE ( numond, namhsb ) 
     217 
    202218      ! 
    203219      IF(lwp) THEN                   ! Control print 
    204220         WRITE(numout,*) 
    205          WRITE(numout,*) 'dia_hsb_init : check the heat and salt budgets' 
    206          WRITE(numout,*) '~~~~~~~~~~~~' 
    207221         WRITE(numout,*) '   Namelist namhsb : set hsb parameters' 
    208222         WRITE(numout,*) '      Switch for hsb diagnostic (T) or not (F)  ln_diahsb  = ', ln_diahsb 
  • branches/2013/dev_LOCEAN_2013/NEMOGCM/NEMO/SAS_SRC/nemogcm.F90

    r4147 r4166  
    431431      ierr =        dia_wri_alloc   () 
    432432      ierr = ierr + dom_oce_alloc   ()          ! ocean domain 
    433       ierr = ierr + lib_mpp_alloc   (numout)    ! mpp exchanges 
    434433      ALLOCATE( snwice_mass(jpi,jpj)  , snwice_mass_b(jpi,jpj),             & 
    435434         &      snwice_fmass(jpi,jpj), STAT= ierr4 ) 
  • branches/2013/dev_LOCEAN_2013/NEMOGCM/NEMO/SAS_SRC/step.F90

    r3769 r4166  
    7272      kstp = nit000 + Agrif_Nb_Step() 
    7373# if defined key_iomput 
    74       IF( Agrif_Nbstepint() == 0 )   CALL iom_swap 
     74      IF( Agrif_Nbstepint() == 0 )   CALL iom_swap( "nemo" ) 
    7575# endif    
    7676#endif    
    77       IF( kstp == nit000 )   CALL iom_init            ! iom_put initialization (must be done after nemo_init for AGRIF+XIOS+OASIS) 
     77      IF( kstp == nit000 )   CALL iom_init( "nemo" )       ! iom_put initialization (must be done after nemo_init for AGRIF+XIOS+OASIS) 
    7878      IF( kstp /= nit000 )   CALL day( kstp )             ! Calendar (day was already called at nit000 in day_init) 
    79                              CALL iom_setkt( kstp )       ! say to iom that we are at time step kstp 
     79                             CALL iom_setkt( kstp, "nemo" )       ! say to iom that we are at time step kstp 
    8080 
    8181                             CALL sbc    ( kstp )         ! Sea Boundary Condition (including sea-ice) 
     
    8787                             CALL stp_ctl( kstp, indic ) 
    8888#if defined key_iomput 
    89       IF( kstp == nitend )   CALL xios_context_finalize() ! needed for XIOS+AGRIF 
     89      IF( kstp == nitend )   CALL iom_context_finalize( "nemo" ) ! needed for XIOS+AGRIF 
    9090#endif 
    9191      ! 
Note: See TracChangeset for help on using the changeset viewer.