Changeset 1457
- Timestamp:
- Nov 22, 2010, 4:19:25 PM (14 years ago)
- Location:
- LMDZ5/branches/LMDZ5V2.0-dev/libf/phylmd
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ5/branches/LMDZ5V2.0-dev/libf/phylmd/phyetat0.F
r1456 r1457 21 21 USE infotrac 22 22 USE traclmdz_mod, ONLY : traclmdz_from_restart 23 USE carbon_cycle_mod,ONLY : carbon_cycle_tr, carbon_cycle_cpl 23 USE carbon_cycle_mod,ONLY : 24 & carbon_cycle_tr, carbon_cycle_cpl, co2_send 24 25 25 26 IMPLICIT none … … 133 134 134 135 135 136 IF( clesphy0(1).NE.tab_cntrl( 5 ) ) THEN 137 clesphy0(1)=tab_cntrl( 5 ) 138 ENDIF 139 140 IF( clesphy0(2).NE.tab_cntrl( 6 ) ) THEN 141 clesphy0(2)=tab_cntrl( 6 ) 142 ENDIF 143 144 IF( clesphy0(3).NE.tab_cntrl( 7 ) ) THEN 145 clesphy0(3)=tab_cntrl( 7 ) 146 ENDIF 147 148 IF( clesphy0(4).NE.tab_cntrl( 8 ) ) THEN 149 clesphy0(4)=tab_cntrl( 8 ) 150 ENDIF 151 152 IF( clesphy0(5).NE.tab_cntrl( 9 ) ) THEN 153 clesphy0(5)=tab_cntrl( 9 ) 154 ENDIF 155 156 IF( clesphy0(6).NE.tab_cntrl( 10 ) ) THEN 157 clesphy0(6)=tab_cntrl( 10 ) 158 ENDIF 159 160 IF( clesphy0(7).NE.tab_cntrl( 11 ) ) THEN 161 clesphy0(7)=tab_cntrl( 11 ) 162 ENDIF 163 164 IF( clesphy0(8).NE.tab_cntrl( 12 ) ) THEN 165 clesphy0(8)=tab_cntrl( 12 ) 166 ENDIF 167 136 clesphy0(1)=tab_cntrl( 5 ) 137 clesphy0(2)=tab_cntrl( 6 ) 138 clesphy0(3)=tab_cntrl( 7 ) 139 clesphy0(4)=tab_cntrl( 8 ) 140 clesphy0(5)=tab_cntrl( 9 ) 141 clesphy0(6)=tab_cntrl( 10 ) 142 clesphy0(7)=tab_cntrl( 11 ) 143 clesphy0(8)=tab_cntrl( 12 ) 168 144 169 145 c … … 1078 1054 1079 1055 END DO 1080 1081 1056 CALL traclmdz_from_restart(trs) 1057 1058 IF (carbon_cycle_cpl) THEN 1059 ALLOCATE(co2_send(klon), stat=ierr) 1060 IF (ierr /= 0) CALL abort_gcm 1061 & ('phyetat0','pb allocation co2_send',1) 1062 CALL get_field("co2_send",co2_send,found) 1063 IF (.NOT. found) THEN 1064 PRINT*,"phyetat0: Le champ <co2_send> est absent" 1065 PRINT*,"Initialisation uniforme a co2_ppm=",co2_ppm 1066 co2_send(:) = co2_ppm 1067 END IF 1068 END IF 1082 1069 END IF 1083 1070 -
LMDZ5/branches/LMDZ5V2.0-dev/libf/phylmd/phyredem.F
r1456 r1457 11 11 USE pbl_surface_mod, ONLY : pbl_surface_final 12 12 USE phys_state_var_mod 13 USE iostart 13 USE iostart 14 14 USE traclmdz_mod, ONLY : traclmdz_to_restart 15 15 USE infotrac 16 16 USE control_mod 17 USE carbon_cycle_mod, ONLY : carbon_cycle_cpl, co2_send 17 18 18 19 IMPLICIT none … … 97 98 CALL put_var("controle","Parametres de controle",tab_cntrl) 98 99 c 100 99 101 CALL put_field("longitude", 100 102 . "Longitudes de la grille physique",rlon) … … 335 337 CALL put_field("trs_"//tname(iiq),"",trs(:,it)) 336 338 END DO 339 IF (carbon_cycle_cpl) THEN 340 IF (.NOT. ALLOCATED(co2_send)) THEN 341 ! This is the case of create_etat0_limit, ce0l 342 ALLOCATE(co2_send(klon)) 343 co2_send(:) = co2_ppm0 344 END IF 345 CALL put_field("co2_send","co2_ppm for coupling",co2_send) 346 END IF 337 347 END IF 338 348 -
LMDZ5/branches/LMDZ5V2.0-dev/libf/phylmd/physiq.F
r1456 r1457 1250 1250 cym Attention pbase pas initialise dans concvl !!!! 1251 1251 pbase=0 1252 paire_ter(:)=0.1253 1252 cIM 180608 1254 1253 c pmflxr=0. … … 1849 1848 !!! jyg 17 Sep 2010 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 1850 1849 call ymds2ju(year_cur, mth_eq, day_eq,0., jD_eq) 1851 day_since_equinox = (jD_cur + jH_cur) - jD_eq 1850 day_since_equinox = (jD_cur + jH_cur) - jD_eq 1852 1851 ! 1853 ! choix entre calcul de la longitude solaire vraie ou valeur fixee a 1852 ! choix entre calcul de la longitude solaire vraie ou valeur fixee a 1854 1853 ! solarlong0 1855 1854 if (solarlong0<-999.) then … … 1857 1856 ! calcul selon la routine utilisee pour les planetes 1858 1857 call solarlong(day_since_equinox, zlongi, dist) 1859 else 1858 else 1860 1859 ! calcul selon la routine utilisee pour l'AR4 1861 1860 CALL orbite(REAL(days_elapsed+1),zlongi,dist) 1862 endif 1863 else 1861 endif 1862 else 1864 1863 zlongi=solarlong0 ! longitude solaire vraie 1865 dist=1. ! distance au soleil / moyenne 1866 endif 1867 !!! 1868 1864 dist=1. ! distance au soleil / moyenne 1865 endif 1869 1866 if(prt_level.ge.1) & 1870 1867 & write(lunout,*)'Longitude solaire ',zlongi,solarlong0,dist … … 3379 3376 I cdragh,coefh,u1,v1,ftsol,pctsrf, 3380 3377 I frac_impa, frac_nucl, 3381 I pphis,airephy,dtime,itap) 3378 I pphis,airephy,dtime,itap, 3379 I rlon,rlat,qx(:,:,ivap),da,phi,mp,upwd,dnwd) 3382 3380 3383 3381
Note: See TracChangeset
for help on using the changeset viewer.