Changeset 3537 for LMDZ6/trunk/libf/phylmd/dyn1d/1D_read_forc_cases.h
- Timestamp:
- Jun 19, 2019, 10:29:16 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ6/trunk/libf/phylmd/dyn1d/1D_read_forc_cases.h
r2920 r3537 1008 1008 endif !forcing_case2 1009 1009 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 1010 1010 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 1011 !--------------------------------------------------------------------- 1012 ! Forcing from standard case : 1013 !--------------------------------------------------------------------- 1014 1015 if (forcing_SCM) then 1016 1017 write(*,*),'avant call read_SCM' 1018 call read_SCM_cas 1019 write(*,*) 'Forcing read' 1020 1021 !Time interpolation for initial conditions using interpolation routine 1022 write(*,*) 'AVT 1ere INTERPOLATION: day,day1 = ',daytime,day1 1023 CALL interp2_case_time(daytime,day1,annee_ref & 1024 ! & ,year_ini_cas,day_ju_ini_cas,nt_cas,pdt_cas,nlev_cas & 1025 & ,nt_cas,nlev_cas & 1026 & ,ts_cas,ps_cas,plev_cas,t_cas,th_cas,thv_cas,thl_cas,qv_cas,ql_cas,qi_cas & 1027 & ,u_cas,v_cas,ug_cas,vg_cas,vitw_cas,omega_cas,du_cas,hu_cas,vu_cas & 1028 & ,dv_cas,hv_cas,vv_cas,dt_cas,ht_cas,vt_cas,dtrad_cas & 1029 & ,dq_cas,hq_cas,vq_cas,dth_cas,hth_cas,vth_cas,lat_cas,sens_cas,ustar_cas & 1030 & ,uw_cas,vw_cas,q1_cas,q2_cas,tke_cas & 1031 ! 1032 & ,ts_prof_cas,plev_prof_cas,t_prof_cas,theta_prof_cas,thv_prof_cas & 1033 & ,thl_prof_cas,qv_prof_cas,ql_prof_cas,qi_prof_cas & 1034 & ,u_prof_cas,v_prof_cas,ug_prof_cas,vg_prof_cas,vitw_prof_cas,omega_prof_cas & 1035 & ,du_prof_cas,hu_prof_cas,vu_prof_cas & 1036 & ,dv_prof_cas,hv_prof_cas,vv_prof_cas,dt_prof_cas,ht_prof_cas,vt_prof_cas & 1037 & ,dtrad_prof_cas,dq_prof_cas,hq_prof_cas,vq_prof_cas & 1038 & ,dth_prof_cas,hth_prof_cas,vth_prof_cas,lat_prof_cas & 1039 & ,sens_prof_cas,ustar_prof_cas,uw_prof_cas,vw_prof_cas,q1_prof_cas,q2_prof_cas,tke_prof_cas) 1040 1041 do l = 1, nlev_cas 1042 print *,'apres 1ere interp: plev_cas, plev_prof_cas=',l,plev_cas(l,1),plev_prof_cas(l) 1043 enddo 1044 1045 ! vertical interpolation using interpolation routine: 1046 ! write(*,*)'avant interp vert', t_prof 1047 CALL interp2_case_vertical(play,nlev_cas,plev_prof_cas & 1048 & ,t_prof_cas,theta_prof_cas,thv_prof_cas,thl_prof_cas & 1049 & ,qv_prof_cas,ql_prof_cas,qi_prof_cas,u_prof_cas,v_prof_cas & 1050 & ,ug_prof_cas,vg_prof_cas,vitw_prof_cas,omega_prof_cas & 1051 & ,du_prof_cas,hu_prof_cas,vu_prof_cas,dv_prof_cas,hv_prof_cas,vv_prof_cas & 1052 & ,dt_prof_cas,ht_prof_cas,vt_prof_cas,dtrad_prof_cas,dq_prof_cas,hq_prof_cas,vq_prof_cas & 1053 & ,dth_prof_cas,hth_prof_cas,vth_prof_cas & 1054 ! 1055 & ,t_mod_cas,theta_mod_cas,thv_mod_cas,thl_mod_cas,qv_mod_cas,ql_mod_cas,qi_mod_cas & 1056 & ,u_mod_cas,v_mod_cas,ug_mod_cas,vg_mod_cas,w_mod_cas,omega_mod_cas & 1057 & ,du_mod_cas,hu_mod_cas,vu_mod_cas,dv_mod_cas,hv_mod_cas,vv_mod_cas & 1058 & ,dt_mod_cas,ht_mod_cas,vt_mod_cas,dtrad_mod_cas,dq_mod_cas,hq_mod_cas,vq_mod_cas & 1059 & ,dth_mod_cas,hth_mod_cas,vth_mod_cas,mxcalc) 1060 1061 ! write(*,*) 'Profil initial forcing case interpole',t_mod 1062 1063 ! initial and boundary conditions : 1064 ! tsurf = ts_prof_cas 1065 ts_cur = ts_prof_cas 1066 psurf=plev_prof_cas(1) 1067 write(*,*) 'SST initiale: ',tsurf 1068 do l = 1, llm 1069 temp(l) = t_mod_cas(l) 1070 q(l,1) = qv_mod_cas(l) 1071 q(l,2) = ql_mod_cas(l) 1072 u(l) = u_mod_cas(l) 1073 ug(l)= ug_mod_cas(l) 1074 v(l) = v_mod_cas(l) 1075 vg(l)= vg_mod_cas(l) 1076 ! Modif w_mod_cas -> omega_mod_cas (MM+MPL 20170309) 1077 omega(l) = omega_mod_cas(l) 1078 omega2(l)=omega(l)/rg*airefi ! flxmass_w calcule comme ds physiq 1079 1080 alpha = rd*temp(l)*(1.+(rv/rd-1.)*q(l,1))/play(l) 1081 !on applique le forcage total au premier pas de temps 1082 !attention: signe different de toga 1083 d_t_adv(l) = alpha*omega(l)/rcpd+(ht_mod_cas(l)+vt_mod_cas(l)) 1084 d_t_adv(l) = alpha*omega(l)/rcpd+(ht_mod_cas(l)+vt_mod_cas(l)) 1085 ! d_q_adv(l,1) = (hq_mod_cas(l)+vq_mod_cas(l)) 1086 d_q_adv(l,1) = dq_mod_cas(l) 1087 d_q_adv(l,2) = 0.0 1088 ! d_u_adv(l) = (hu_mod_cas(l)+vu_mod_cas(l)) 1089 d_u_adv(l) = du_mod_cas(l) 1090 ! d_v_adv(l) = (hv_mod_cas(l)+vv_mod_cas(l)) 1091 ! correction bug d_u -> d_v (MM+MPL 20170310) 1092 d_v_adv(l) = dv_mod_cas(l) 1093 enddo 1094 1095 ! Faut-il multiplier par -1 ? (MPL 20160713) 1096 IF (ok_flux_surf) THEN 1097 fsens=-1.*sens_prof_cas 1098 flat=-1.*lat_prof_cas 1099 ENDIF 1100 ! 1101 IF (ok_prescr_ust) THEN 1102 ust=ustar_prof_cas 1103 print *,'ust=',ust 1104 ENDIF 1105 1106 endif !forcing_SCM
Note: See TracChangeset
for help on using the changeset viewer.