| Directory: | ./ |
|---|---|
| File: | phys/ini_undefSTD.f90 |
| Date: | 2022-01-11 19:19:34 |
| Exec | Total | Coverage | |
|---|---|---|---|
| Lines: | 26 | 26 | 100.0% |
| Branches: | 14 | 14 | 100.0% |
| Line | Branch | Exec | Source |
|---|---|---|---|
| 1 | |||
| 2 | ! $Id: ini_undefSTD.F90 3435 2019-01-22 15:21:59Z fairhead $ | ||
| 3 | |||
| 4 | |||
| 5 | 480 | SUBROUTINE ini_undefstd(itap, itapm1) | |
| 6 | USE dimphy | ||
| 7 | USE phys_state_var_mod ! Variables sauvegardees de la physique | ||
| 8 | USE phys_cal_mod, ONLY: mth_len | ||
| 9 | IMPLICIT NONE | ||
| 10 | include "clesphys.h" | ||
| 11 | |||
| 12 | ! ==================================================================== | ||
| 13 | |||
| 14 | ! I. Musat : 09.2004 | ||
| 15 | |||
| 16 | ! Initialisation - a des frequences differentes : | ||
| 17 | |||
| 18 | ! 1) des variables moyennees sur la journee "day" ou sur le mois "mth" | ||
| 19 | ! calculees a partir des valeurs "instantannees" de la physique | ||
| 20 | |||
| 21 | ! 2) des variables moyennes mensuelles "NMC" calculees a partir des val. | ||
| 22 | ! toutes les 6 heures | ||
| 23 | |||
| 24 | ! nout=1 !var. journaliere "day" moyenne sur tous les pas de temps | ||
| 25 | ! ! de la physique | ||
| 26 | ! nout=2 !var. mensuelle "mth" moyennee sur tous les pas de temps | ||
| 27 | ! ! de la physique | ||
| 28 | ! nout=3 !var. mensuelle "NMC" moyennee toutes les 6heures | ||
| 29 | |||
| 30 | ! NB: mettre "inst(X)" dans le write_hist*NMC.h ! | ||
| 31 | ! ==================================================================== | ||
| 32 | |||
| 33 | ! ym #include "dimphy.h" | ||
| 34 | ! variables Input/Output | ||
| 35 | ! INTEGER nlevSTD, klevSTD, itap | ||
| 36 | INTEGER itap, itapm1 | ||
| 37 | ! PARAMETER(klevSTD=17) | ||
| 38 | ! REAL dtime | ||
| 39 | |||
| 40 | ! variables locales | ||
| 41 | ! INTEGER i, k, nout, n | ||
| 42 | INTEGER i, k, n | ||
| 43 | ! PARAMETER(nout=3) !nout=1 day/nout=2 mth/nout=3 NMC | ||
| 44 | ! REAL freq_outNMC(nout) | ||
| 45 | REAL un_jour | ||
| 46 | PARAMETER (un_jour=86400.) | ||
| 47 | |||
| 48 | ! variables Output | ||
| 49 | ! REAL tnondef(klon,klevSTD,nout) | ||
| 50 | ! REAL tsumSTD(klon,klevSTD,nout) | ||
| 51 | |||
| 52 |
2/2✓ Branch 0 taken 1440 times.
✓ Branch 1 taken 480 times.
|
1920 | DO n = 1, nout |
| 53 | |||
| 54 | ! initialisation variables en debut du mois, de la journee ou des 6h | ||
| 55 | |||
| 56 |
8/8✓ Branch 0 taken 480 times.
✓ Branch 1 taken 960 times.
✓ Branch 2 taken 1 times.
✓ Branch 3 taken 479 times.
✓ Branch 4 taken 960 times.
✓ Branch 5 taken 479 times.
✓ Branch 6 taken 45 times.
✓ Branch 7 taken 915 times.
|
1440 | IF (n==1 .AND. itap-itapm1==1 .OR. n>1 .AND. mod(itap,nint( & |
| 57 | 480 | freq_outnmc(n)/phys_tstep))==1) THEN | |
| 58 | ! print*,'ini_undefSTD n itap',n,itap | ||
| 59 |
2/2✓ Branch 0 taken 46 times.
✓ Branch 1 taken 782 times.
|
828 | DO k = 1, nlevstd |
| 60 |
2/2✓ Branch 0 taken 777308 times.
✓ Branch 1 taken 782 times.
|
779530 | DO i = 1, klon |
| 61 | 777308 | tnondef(i, k, n) = 0. | |
| 62 | 777308 | tsumstd(i, k, n) = 0. | |
| 63 | 777308 | usumstd(i, k, n) = 0. | |
| 64 | 777308 | vsumstd(i, k, n) = 0. | |
| 65 | 777308 | wsumstd(i, k, n) = 0. | |
| 66 | 777308 | phisumstd(i, k, n) = 0. | |
| 67 | 777308 | qsumstd(i, k, n) = 0. | |
| 68 | 777308 | rhsumstd(i, k, n) = 0. | |
| 69 | 777308 | uvsumstd(i, k, n) = 0. | |
| 70 | 777308 | vqsumstd(i, k, n) = 0. | |
| 71 | 777308 | vtsumstd(i, k, n) = 0. | |
| 72 | 777308 | wqsumstd(i, k, n) = 0. | |
| 73 | 777308 | vphisumstd(i, k, n) = 0. | |
| 74 | 777308 | wtsumstd(i, k, n) = 0. | |
| 75 | 777308 | u2sumstd(i, k, n) = 0. | |
| 76 | 777308 | v2sumstd(i, k, n) = 0. | |
| 77 | 777308 | t2sumstd(i, k, n) = 0. | |
| 78 | 777308 | o3sumstd(i, k, n) = 0. | |
| 79 | 778090 | o3daysumstd(i, k, n) = 0. | |
| 80 | END DO !i | ||
| 81 | END DO !k | ||
| 82 | END IF ! | ||
| 83 | END DO !n | ||
| 84 | 480 | RETURN | |
| 85 | END SUBROUTINE ini_undefstd | ||
| 86 |