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 2798 for branches/2011/dev_r2784_CMCC1_topbfm/NEMOGCM/NEMO/TOP_SRC – NEMO

Ignore:
Timestamp:
2011-07-11T16:18:18+02:00 (13 years ago)
Author:
vichi
Message:

Added initial coupling with BFM

Location:
branches/2011/dev_r2784_CMCC1_topbfm/NEMOGCM/NEMO/TOP_SRC
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/2011/dev_r2784_CMCC1_topbfm/NEMOGCM/NEMO/TOP_SRC/par_trc.F90

    r2528 r2798  
    1717   USE par_cfc       ! CFC 11 and 12 tracers 
    1818   USE par_my_trc    ! user defined passive tracers 
    19  
     19   USE par_bfm       ! BFM biogeochemical tracers 
     20  
    2021   IMPLICIT NONE 
    2122 
    2223   ! Passive tracers : Total size 
    2324   ! ---------------               ! total number of passive tracers, of 2d and 3d output and trend arrays 
    24    INTEGER, PUBLIC,  PARAMETER ::   jptra    =  jp_lobster    + jp_pisces     + jp_cfc     + jp_c14b    + jp_my_trc 
    25    INTEGER, PUBLIC,  PARAMETER ::   jpdia2d  =  jp_lobster_2d + jp_pisces_2d  + jp_cfc_2d  + jp_c14b_2d + jp_my_trc_2d 
    26    INTEGER, PUBLIC,  PARAMETER ::   jpdia3d  =  jp_lobster_3d + jp_pisces_3d  + jp_cfc_3d  + jp_c14b_3d + jp_my_trc_3d 
     25   INTEGER, PUBLIC,  PARAMETER ::   jptra    =  jp_lobster    + jp_pisces     + jp_cfc     + jp_c14b    + jp_my_trc + jp_bfm 
     26   INTEGER, PUBLIC,  PARAMETER ::   jpdia2d  =  jp_lobster_2d + jp_pisces_2d  + jp_cfc_2d  + jp_c14b_2d + jp_my_trc_2d + jp_bfm_2d 
     27   INTEGER, PUBLIC,  PARAMETER ::   jpdia3d  =  jp_lobster_3d + jp_pisces_3d  + jp_cfc_3d  + jp_c14b_3d + jp_my_trc_3d + jp_bfm_3d 
    2728   !                     ! total number of sms diagnostic arrays 
    28    INTEGER, PUBLIC,  PARAMETER ::   jpdiabio = jp_lobster_trd + jp_pisces_trd + jp_cfc_trd + jp_c14b_trd + jp_my_trc_trd 
     29   INTEGER, PUBLIC,  PARAMETER ::   jpdiabio = jp_lobster_trd + jp_pisces_trd + jp_cfc_trd + jp_c14b_trd + jp_my_trc_trd +jp_bfm_trd 
    2930    
    3031   !  1D configuration ("key_c1d") 
  • branches/2011/dev_r2784_CMCC1_topbfm/NEMOGCM/NEMO/TOP_SRC/trcini.F90

    r2715 r2798  
    2525   USE trcini_c14b     ! C14 bomb initialisation 
    2626   USE trcini_my_trc   ! MY_TRC   initialisation 
     27#if defined key_bfm 
     28   USE par_bfm 
     29#endif 
    2730   USE trcdta    
    2831   USE daymod 
     
    9497      ENDIF 
    9598 
    96       IF( ln_dm2dc .AND. ( lk_pisces .OR. lk_lobster ) )    & 
    97          &       CALL ctl_stop( ' The diurnal cycle is not compatible with PISCES or LOBSTER ' ) 
     99      IF( ln_dm2dc .AND. ( lk_pisces .OR. lk_lobster .OR. lk_bfm) )    & 
     100         &       CALL ctl_stop( ' The diurnal cycle is not compatible with PISCES or LOBSTER or BFM ' ) 
    98101 
    99102      IF( nn_cla == 1 )   & 
     
    118121      IF( lk_my_trc  ) THEN   ;   CALL trc_ini_my_trc       ! MY_TRC  tracers 
    119122      ELSE                    ;   IF(lwp) WRITE(numout,*) '          MY_TRC not used' 
     123      ENDIF 
     124 
     125      IF( lk_bfm     ) THEN   ;   CALL trc_ini_bfm          ! BFM  tracers 
     126      ELSE                    ;   IF(lwp) WRITE(numout,*) '          BFM not used' 
    120127      ENDIF 
    121128 
  • branches/2011/dev_r2784_CMCC1_topbfm/NEMOGCM/NEMO/TOP_SRC/trcnam.F90

    r2715 r2798  
    2626   USE trcnam_c14b       ! C14 SMS namelist 
    2727   USE trcnam_my_trc     ! MY_TRC SMS namelist 
     28   USE trcnam_bfm        ! BFM namelist  
    2829   USE trdmod_trc_oce 
    2930 
     
    189190      ELSE                    ;   IF(lwp) WRITE(numout,*) '          MY_TRC not used' 
    190191      ENDIF 
     192       
     193      IF( lk_bfm  ) THEN      ;   CALL trc_nam_bfm         ! BFM  tracers 
     194      ELSE                    ;   IF(lwp) WRITE(numout,*) '          BFM not used' 
     195      ENDIF 
    191196      ! 
    192197   END SUBROUTINE trc_nam 
  • branches/2011/dev_r2784_CMCC1_topbfm/NEMOGCM/NEMO/TOP_SRC/trcstp.F90

    r2528 r2798  
    1111   !!---------------------------------------------------------------------- 
    1212   USE oce_trc          ! ocean dynamics and active tracers variables 
     13#if ! defined key_bfm 
    1314   USE trc 
    1415   USE trctrp           ! passive tracers transport 
     
    2021   USE trdmod_trc_oce 
    2122   USE trdmld_trc 
     23#else 
     24   USE api_bfm, ONLY: bio_calc 
     25   USE par_bfm 
     26#ifdef key_obc 
     27   USE trcobcdta_bfm 
     28#endif 
     29#endif 
    2230   USE iom 
    2331   USE in_out_manager 
     
    4957      !!------------------------------------------------------------------- 
    5058 
     59#if defined key_bfm 
     60   !--------------------------------------------- 
     61   ! Check the main BFM flag 
     62   !--------------------------------------------- 
     63      IF (bio_calc) THEN 
     64 
     65                             CALL trc_bfm( kt )           ! main call to BFM 
     66 
     67                             CALL trc_trp_bfm( kt )       ! transport of BFM tracers 
     68 
     69                             CALL trc_dia_bfm( kt )       ! diagnostic output for BFM 
     70      END IF 
     71#else 
     72 
    5173      IF( MOD( kt - 1 , nn_dttrc ) == 0 ) THEN      ! only every nn_dttrc time step 
    5274         ! 
     
    7193         ! 
    7294      ENDIF 
     95#endif 
    7396 
    7497   END SUBROUTINE trc_stp 
Note: See TracChangeset for help on using the changeset viewer.