Changeset 3449 for LMDZ6/trunk/libf
- Timestamp:
- Jan 25, 2019, 6:27:10 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ6/trunk/libf/phylmd/phyetat0.F90
r3435 r3449 110 110 IF (carbon_cycle_tr .OR. carbon_cycle_cpl) THEN 111 111 co2_ppm = tab_cntrl(3) 112 RCO2 = co2_ppm * 1.0e-06 * 44.011/28.97112 RCO2 = co2_ppm * 1.0e-06 * RMCO2/28.97 113 113 ! ELSE : keep value from .def 114 END 114 ENDIF 115 115 116 116 ! co2_ppm0 : initial value of atmospheric CO2 (from create_etat0_limit.e .def) … … 121 121 tab_cntrl(6)=nbapp_rad 122 122 123 if(iflag_cycle_diurne.GE.1) tab_cntrl( 7) = iflag_cycle_diurne124 if(soil_model) tab_cntrl( 8) =1.125 if(new_oliq) tab_cntrl( 9) =1.126 if(ok_orodr) tab_cntrl(10) =1.127 if(ok_orolf) tab_cntrl(11) =1.128 if(ok_limitvrai) tab_cntrl(12) =1.123 IF (iflag_cycle_diurne.GE.1) tab_cntrl( 7) = iflag_cycle_diurne 124 IF (soil_model) tab_cntrl( 8) =1. 125 IF (new_oliq) tab_cntrl( 9) =1. 126 IF (ok_orodr) tab_cntrl(10) =1. 127 IF (ok_orolf) tab_cntrl(11) =1. 128 IF (ok_limitvrai) tab_cntrl(12) =1. 129 129 130 130 itau_phy = tab_cntrl(15) … … 222 222 zmasq(i) = fractint(i) 223 223 ENDIF 224 END 224 ENDDO 225 225 fractint (1 : klon) = pctsrf(1 : klon, is_oce) & 226 226 + pctsrf(1 : klon, is_sic) … … 233 233 zmasq(i) = 1. - fractint(i) 234 234 ENDIF 235 END 235 ENDDO 236 236 237 237 !=================================================================== … … 358 358 ! dummy values (as is the case when generated by ce0l, 359 359 ! or by iniaqua) 360 if ( (maxval(q_ancien).eq.minval(q_ancien)) .or. &361 (maxval(ql_ancien). eq.minval(ql_ancien)) .or. &362 (maxval(qs_ancien). eq.minval(qs_ancien)) .or. &363 (maxval(prw_ancien). eq.minval(prw_ancien)) .or. &364 (maxval(prlw_ancien). eq.minval(prlw_ancien)) .or. &365 (maxval(prsw_ancien). eq.minval(prsw_ancien)) .or. &366 (maxval(t_ancien). eq.minval(t_ancien)) ) then360 IF ( (maxval(q_ancien).EQ.minval(q_ancien)) .OR. & 361 (maxval(ql_ancien).EQ.minval(ql_ancien)) .OR. & 362 (maxval(qs_ancien).EQ.minval(qs_ancien)) .OR. & 363 (maxval(prw_ancien).EQ.minval(prw_ancien)) .OR. & 364 (maxval(prlw_ancien).EQ.minval(prlw_ancien)) .OR. & 365 (maxval(prsw_ancien).EQ.minval(prsw_ancien)) .OR. & 366 (maxval(t_ancien).EQ.minval(t_ancien)) ) THEN 367 367 ancien_ok=.false. 368 endif368 ENDIF 369 369 370 370 found=phyetat0_get(klev,clwcon,"CLWCON","CLWCON",0.) … … 433 433 found=phyetat0_get(1,trs(:,it),"trs_"//tname(iiq), & 434 434 "Surf trac"//tname(iiq),0.) 435 END 435 ENDDO 436 436 CALL traclmdz_from_restart(trs) 437 437 ENDIF … … 443 443 IF (ierr /= 0) CALL abort_physic('phyetat0', 'pb allocation co2_send', 1) 444 444 found=phyetat0_get(1,co2_send,"co2_send","co2 send",co2_ppm) 445 END 446 END 445 ENDIF 446 ENDIF 447 447 448 448 !=========================================== … … 451 451 452 452 ! ondes de gravite non orographiques 453 if(ok_gwd_rando) found = &453 IF (ok_gwd_rando) found = & 454 454 phyetat0_get(klev,du_gwd_rando,"du_gwd_rando","du_gwd_rando",0.) 455 IF (. not. ok_hines .and. ok_gwd_rando) found &455 IF (.NOT. ok_hines .AND. ok_gwd_rando) found & 456 456 = phyetat0_get(klev,du_gwd_front,"du_gwd_front","du_gwd_front",0.) 457 457 … … 477 477 IF (.NOT. found) THEN 478 478 found=phyetat0_get(1,tslab,"tslab","tslab",0.) 479 END 479 ENDIF 480 480 ELSE 481 481 DO i=1,nslay 482 482 WRITE(str2,'(i2.2)') i 483 483 found=phyetat0_get(1,tslab(:,i),"tslab"//str2,"tslab",0.) 484 END 485 END 484 ENDDO 485 ENDIF 486 486 IF (.NOT. found) THEN 487 487 PRINT*, "phyetat0: Le champ <tslab> est absent" … … 489 489 DO i=1,nslay 490 490 tslab(:,i)=MAX(ftsol(:,is_oce),271.35) 491 END 492 END 491 ENDDO 492 ENDIF 493 493 494 494 ! Sea ice variables … … 499 499 PRINT*, "Initialisation a tsol_sic" 500 500 tice(:)=ftsol(:,is_sic) 501 END 501 ENDIF 502 502 found=phyetat0_get(1,seaice,"seaice","seaice",0.) 503 503 IF (.NOT. found) THEN … … 507 507 WHERE (pctsrf(:,is_sic).GT.EPSFRA) 508 508 seaice=917. 509 END 510 END 511 END 512 END 509 ENDWHERE 510 ENDIF 511 ENDIF !sea ice INT 512 ENDIF ! Slab 513 513 514 514 ! on ferme le fichier
Note: See TracChangeset
for help on using the changeset viewer.