- Timestamp:
- Dec 20, 2019, 10:45:29 AM (5 years ago)
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
dynamico_lmdz/simple_physics/phyparam/physics/radiative.F90
r4196 r4197 1 SUBROUTINE mucorr(npts,pdeclin, plat, pmu, pfract,phaut,prad) 2 IMPLICIT NONE 1 MODULE radiative 2 IMPLICIT NONE 3 SAVE 3 4 4 c======================================================================= 5 c 6 c Calcul of equivalent solar angle and and fraction of day whithout 7 c diurnal cycle. 8 c 9 c parmeters : 10 c ----------- 11 c 12 c Input : 13 c ------- 14 c npts number of points 15 c pdeclin solar declinaison 16 c plat(npts) latitude 17 c phaut hauteur typique de l'atmosphere 18 c prad rayon planetaire 19 c 20 c Output : 21 c -------- 22 c pmu(npts) equivalent cosinus of the solar angle 23 c pfract(npts) fractionnal day 24 c 25 c======================================================================= 5 CONTAINS 26 6 27 c----------------------------------------------------------------------- 28 c 29 c 0. Declarations : 30 c ----------------- 7 SUBROUTINE mucorr(npts,pdeclin, plat, pmu, pfract,phaut,prad) 31 8 32 c Arguments : 33 c ----------- 9 !======================================================================= 10 ! 11 ! Calcul of equivalent solar angle and and fraction of day whithout 12 ! diurnal cycle. 13 ! 14 ! parmeters : 15 ! ----------- 16 ! 17 ! Input : 18 ! ------- 19 ! npts number of points 20 ! pdeclin solar declinaison 21 ! plat(npts) latitude 22 ! phaut hauteur typique de l'atmosphere 23 ! prad rayon planetaire 24 ! 25 ! Output : 26 ! -------- 27 ! pmu(npts) equivalent cosinus of the solar angle 28 ! pfract(npts) fractionnal day 29 ! 30 !======================================================================= 31 32 !----------------------------------------------------------------------- 33 ! 34 ! 0. Declarations : 35 ! ----------------- 36 37 ! Arguments : 38 ! ----------- 34 39 INTEGER npts 35 40 REAL plat(npts),pmu(npts), pfract(npts) 36 41 REAL phaut,prad,pdeclin 37 c 38 cLocal variables :39 c-----------------42 ! 43 ! Local variables : 44 ! ----------------- 40 45 INTEGER j 41 46 REAL pi … … 44 49 REAL alph 45 50 46 c-----------------------------------------------------------------------51 !----------------------------------------------------------------------- 47 52 48 53 print*,'npts,pdeclin' … … 57 62 print*,'cz,sz',cz,sz 58 63 59 DO 20j = 1, npts64 DO j = 1, npts 60 65 61 66 phi = plat(j) … … 91 96 IF (pmu(j).eq.0.) pfract(j) = 0. 92 97 93 20 CONTINUE98 END DO 94 99 95 c-----------------------------------------------------------------------96 ccorrection de rotondite:97 c------------------------100 !----------------------------------------------------------------------- 101 ! correction de rotondite: 102 ! ------------------------ 98 103 99 104 alph=phaut/prad 100 DO 30j=1,npts101 c!!!!!!105 DO j=1,npts 106 ! !!!!!! 102 107 pmu(j)=sqrt(1224.*pmu(j)*pmu(j)+1.)/35. 103 c$ (sqrt(alph*alph*pmu(j)*pmu(j)+2.*alph+1.)-alph*pmu(j))104 30 CONTINUE 108 ! $ (sqrt(alph*alph*pmu(j)*pmu(j)+2.*alph+1.)-alph*pmu(j)) 109 END DO 105 110 106 RETURN 107 END 111 END SUBROUTINE mucorr 112 113 END MODULE radiative
Note: See TracChangeset
for help on using the changeset viewer.