[941] | 1 | MODULE trctrp |
---|
| 2 | !!====================================================================== |
---|
| 3 | !! *** MODULE trctrp *** |
---|
| 4 | !! Ocean Physics : manage the passive tracer transport |
---|
| 5 | !!====================================================================== |
---|
| 6 | !! History : 1.0 ! 2004-03 (C. Ethe) Original code |
---|
[2528] | 7 | !! 3.3 ! 2010-07 (C. Ethe) Merge TRA-TRC |
---|
[941] | 8 | !!---------------------------------------------------------------------- |
---|
| 9 | #if defined key_top |
---|
| 10 | !!---------------------------------------------------------------------- |
---|
| 11 | !! 'key_top' TOP models |
---|
| 12 | !!---------------------------------------------------------------------- |
---|
| 13 | !! trc_trp : passive tracer transport |
---|
| 14 | !!---------------------------------------------------------------------- |
---|
| 15 | USE oce_trc ! ocean dynamics and active tracers variables |
---|
[2528] | 16 | USE trc ! ocean passive tracers variables |
---|
| 17 | USE trcnam_trp ! passive tracers transport namelist variables |
---|
| 18 | USE trabbl ! bottom boundary layer (trc_bbl routine) |
---|
[941] | 19 | USE trcbbl ! bottom boundary layer (trc_bbl routine) |
---|
[2528] | 20 | USE zdfkpp ! KPP non-local tracer fluxes (trc_kpp routine) |
---|
[941] | 21 | USE trcdmp ! internal damping (trc_dmp routine) |
---|
[2528] | 22 | USE trcldf ! lateral mixing (trc_ldf routine) |
---|
| 23 | USE trcadv ! advection (trc_adv routine) |
---|
| 24 | USE trczdf ! vertical diffusion (trc_zdf routine) |
---|
[941] | 25 | USE trcnxt ! time-stepping (trc_nxt routine) |
---|
| 26 | USE trcrad ! positivity (trc_rad routine) |
---|
| 27 | USE trcsbc ! surface boundary condition (trc_sbc routine) |
---|
[2528] | 28 | USE zpshde ! partial step: hor. derivative (zps_hde routine) |
---|
[941] | 29 | |
---|
[1271] | 30 | #if defined key_agrif |
---|
| 31 | USE agrif_top_sponge ! Momemtum and tracers sponges |
---|
| 32 | #endif |
---|
| 33 | |
---|
[941] | 34 | IMPLICIT NONE |
---|
| 35 | PRIVATE |
---|
| 36 | |
---|
| 37 | PUBLIC trc_trp ! called by trc_stp |
---|
| 38 | |
---|
| 39 | !! * Substitutions |
---|
[1800] | 40 | # include "top_substitute.h90" |
---|
[941] | 41 | !!---------------------------------------------------------------------- |
---|
[2528] | 42 | !! NEMO/TOP 3.3 , NEMO Consortium (2010) |
---|
[1146] | 43 | !! $Id$ |
---|
[2528] | 44 | !! Software governed by the CeCILL licence (NEMOGCM/NEMO_CeCILL.txt) |
---|
[941] | 45 | !!---------------------------------------------------------------------- |
---|
| 46 | |
---|
| 47 | CONTAINS |
---|
| 48 | |
---|
[2528] | 49 | SUBROUTINE trc_trp( kstp ) |
---|
[941] | 50 | !!---------------------------------------------------------------------- |
---|
| 51 | !! *** ROUTINE trc_trp *** |
---|
| 52 | !! |
---|
| 53 | !! ** Purpose : Management of passive tracers transport |
---|
| 54 | !! |
---|
| 55 | !! ** Method : - Compute the passive tracers trends |
---|
| 56 | !! - Update the passive tracers |
---|
| 57 | !!---------------------------------------------------------------------- |
---|
[2528] | 58 | INTEGER, INTENT( in ) :: kstp ! ocean time-step index |
---|
[941] | 59 | !! --------------------------------------------------------------------- |
---|
[2528] | 60 | IF( .NOT. lk_c1d ) THEN |
---|
| 61 | ! |
---|
| 62 | CALL trc_sbc( kstp ) ! surface boundary condition |
---|
| 63 | IF( lk_trabbl ) CALL trc_bbl( kstp ) ! advective (and/or diffusive) bottom boundary layer scheme |
---|
| 64 | IF( lk_trcdmp ) CALL trc_dmp( kstp ) ! internal damping trends |
---|
| 65 | CALL trc_adv( kstp ) ! horizontal & vertical advection |
---|
| 66 | CALL trc_ldf( kstp ) ! lateral mixing |
---|
| 67 | IF( .NOT. lk_offline .AND. lk_zdfkpp ) & |
---|
| 68 | & CALL trc_kpp( kstp ) ! KPP non-local tracer fluxes |
---|
[1271] | 69 | #if defined key_agrif |
---|
[2528] | 70 | IF(.NOT. Agrif_Root()) CALL Agrif_Sponge_trc ! tracers sponge |
---|
[1271] | 71 | #endif |
---|
[2528] | 72 | CALL trc_zdf( kstp ) ! vertical mixing and after tracer fields |
---|
| 73 | CALL trc_nxt( kstp ) ! tracer fields at next time step |
---|
| 74 | IF( ln_trcrad ) CALL trc_rad( kstp ) ! Correct artificial negative concentrations |
---|
| 75 | IF( ln_zps ) CALL zps_hde( kstp, jptra, trn, gtru, gtrv ) ! Partial steps: now horizontal gradient of passive |
---|
| 76 | ! tracers at the bottom ocean level |
---|
| 77 | ! |
---|
| 78 | ELSE ! 1D vertical configuration |
---|
| 79 | CALL trc_sbc( kstp ) ! surface boundary condition |
---|
| 80 | IF( .NOT. lk_offline .AND. lk_zdfkpp ) & |
---|
| 81 | & CALL trc_kpp( kstp ) ! KPP non-local tracer fluxes |
---|
| 82 | CALL trc_zdf( kstp ) ! vertical mixing and after tracer fields |
---|
| 83 | CALL trc_nxt( kstp ) ! tracer fields at next time step |
---|
| 84 | IF( ln_trcrad ) CALL trc_rad( kstp ) ! Correct artificial negative concentrations |
---|
| 85 | ! |
---|
| 86 | END IF |
---|
[941] | 87 | ! |
---|
| 88 | END SUBROUTINE trc_trp |
---|
| 89 | |
---|
| 90 | #else |
---|
| 91 | !!---------------------------------------------------------------------- |
---|
| 92 | !! Dummy module : No TOP models |
---|
| 93 | !!---------------------------------------------------------------------- |
---|
| 94 | CONTAINS |
---|
| 95 | SUBROUTINE trc_trp( kt ) ! Empty routine |
---|
| 96 | INTEGER, INTENT(in) :: kt |
---|
| 97 | WRITE(*,*) 'trc_trp: You should not have seen this print! error?', kt |
---|
| 98 | END SUBROUTINE trc_trp |
---|
| 99 | #endif |
---|
| 100 | |
---|
| 101 | !!====================================================================== |
---|
| 102 | END MODULE trctrp |
---|