Changeset 66 for trunk/libf/phylmd/physiq.F
- Timestamp:
- Feb 16, 2011, 4:57:45 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libf/phylmd/physiq.F
r1 r66 1 ! $Id: physiq.F 14 28 2010-09-13 08:43:37Z fairhead $1 ! $Id: physiq.F 1486 2011-02-11 12:07:39Z fairhead $ 2 2 c#define IO_DEBUG 3 3 … … 158 158 save ok_LES 159 159 c$OMP THREADPRIVATE(ok_LES) 160 c 161 LOGICAL callstats ! sortir le fichier stats 162 save callstats 163 c$OMP THREADPRIVATE(callstats) 160 164 c 161 165 LOGICAL ok_region ! sortir le fichier regional … … 606 610 real, save :: ale_bl_prescr=0. 607 611 608 real, save :: ale_max=100 .612 real, save :: ale_max=1000. 609 613 real, save :: alp_max=2. 610 614 … … 1150 1154 ! and 360 1151 1155 1156 INTEGER ierr 1152 1157 #include "YOMCST.h" 1153 1158 #include "YOETHF.h" … … 1222 1227 . ok_instan, ok_hf, 1223 1228 . ok_LES, 1229 . callstats, 1224 1230 . solarlong0,seuil_inversion, 1225 1231 . fact_cldcon, facttemps,ok_newmicro,iflag_radia, … … 1250 1256 cym Attention pbase pas initialise dans concvl !!!! 1251 1257 pbase=0 1252 paire_ter(:)=0.1253 1258 cIM 180608 1254 1259 c pmflxr=0. … … 1847 1852 ! doit donc etre placé avant radlwsw et pbl_surface 1848 1853 1854 !!! jyg 17 Sep 2010 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 1855 call ymds2ju(year_cur, mth_eq, day_eq,0., jD_eq) 1856 day_since_equinox = (jD_cur + jH_cur) - jD_eq 1857 ! 1858 ! choix entre calcul de la longitude solaire vraie ou valeur fixee a 1859 ! solarlong0 1860 if (solarlong0<-999.) then 1861 if (new_orbit) then 1849 1862 ! calcul selon la routine utilisee pour les planetes 1850 if (new_orbit) then1851 call ymds2ju(year_cur, mth_eq, day_eq,0., jD_eq)1852 day_since_equinox = (jD_cur + jH_cur) - jD_eq1853 ! day_since_equinox = (jD_cur) - jD_eq1854 1863 call solarlong(day_since_equinox, zlongi, dist) 1855 else1864 else 1856 1865 ! calcul selon la routine utilisee pour l'AR4 1857 ! choix entre calcul de la longitude solaire vraie ou valeur fixee a 1858 ! solarlong0 1859 if (solarlong0<-999.) then 1860 CALL orbite(REAL(days_elapsed+1),zlongi,dist) 1861 else 1866 CALL orbite(REAL(days_elapsed+1),zlongi,dist) 1867 endif 1868 else 1862 1869 zlongi=solarlong0 ! longitude solaire vraie 1863 dist=1. ! distance au soleil / moyenne 1864 endif 1865 endif 1870 dist=1. ! distance au soleil / moyenne 1871 endif 1866 1872 if(prt_level.ge.1) & 1867 1873 & write(lunout,*)'Longitude solaire ',zlongi,solarlong0,dist … … 3376 3382 I cdragh,coefh,u1,v1,ftsol,pctsrf, 3377 3383 I frac_impa, frac_nucl, 3378 I pphis,airephy,dtime,itap) 3384 I pphis,airephy,dtime,itap, 3385 I rlon,rlat,qx(:,:,ivap),da,phi,mp,upwd,dnwd) 3379 3386 3380 3387 … … 3694 3701 c==================================================================== 3695 3702 c 3696 3703 3704 c ----------------------------------------------------------------- 3705 c WSTATS: Saving statistics 3706 c ----------------------------------------------------------------- 3707 c ("stats" stores and accumulates 8 key variables in file "stats.nc" 3708 c which can later be used to make the statistic files of the run: 3709 c "stats") only possible in 3D runs ! 3710 3711 3712 IF (callstats) THEN 3713 3714 call wstats(klon,o_psol%name,"Surface pressure","Pa" 3715 & ,2,paprs(:,1)) 3716 call wstats(klon,o_tsol%name,"Surface temperature","K", 3717 & 2,zxtsol) 3718 zx_tmp_fi2d(:) = rain_fall(:) + snow_fall(:) 3719 call wstats(klon,o_precip%name,"Precip Totale liq+sol", 3720 & "kg/(s*m2)",2,zx_tmp_fi2d) 3721 zx_tmp_fi2d(:) = rain_lsc(:) + snow_lsc(:) 3722 call wstats(klon,o_plul%name,"Large-scale Precip", 3723 & "kg/(s*m2)",2,zx_tmp_fi2d) 3724 zx_tmp_fi2d(:) = rain_con(:) + snow_con(:) 3725 call wstats(klon,o_pluc%name,"Convective Precip", 3726 & "kg/(s*m2)",2,zx_tmp_fi2d) 3727 call wstats(klon,o_sols%name,"Solar rad. at surf.", 3728 & "W/m2",2,solsw) 3729 call wstats(klon,o_soll%name,"IR rad. at surf.", 3730 & "W/m2",2,sollw) 3731 zx_tmp_fi2d(:) = topsw(:)-toplw(:) 3732 call wstats(klon,o_nettop%name,"Net dn radiatif flux at TOA", 3733 & "W/m2",2,zx_tmp_fi2d) 3734 3735 3736 3737 call wstats(klon,o_temp%name,"Air temperature","K", 3738 & 3,t_seri) 3739 call wstats(klon,o_vitu%name,"Zonal wind","m.s-1", 3740 & 3,u_seri) 3741 call wstats(klon,o_vitv%name,"Meridional wind", 3742 & "m.s-1",3,v_seri) 3743 call wstats(klon,o_vitw%name,"Vertical wind", 3744 & "m.s-1",3,omega) 3745 call wstats(klon,o_ovap%name,"Specific humidity", "kg/kg", 3746 & 3,q_seri) 3747 3748 3749 3750 IF(lafin) THEN 3751 write (*,*) "Writing stats..." 3752 call mkstats(ierr) 3753 ENDIF 3754 3755 ENDIF !if callstats 3756 3697 3757 3698 3758 IF (lafin) THEN
Note: See TracChangeset
for help on using the changeset viewer.