Changeset 1533 for trunk/LMDZ.GENERIC/libf/phystd/dyn1d
- Timestamp:
- Apr 7, 2016, 5:25:33 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.GENERIC/libf/phystd/dyn1d/rcm1d.F
r1531 r1533 109 109 character*2 str2 110 110 character (len=7) :: str7 111 character(len=44) :: txt 111 112 112 113 logical oldcompare, earthhack,saveprofile … … 122 123 REAL cloudfrac(1,llm) 123 124 REAL hice(1),totcloudfrac(1) 124 REAL qzero1D !initial water amount on the ground125 125 126 126 ! added by BC for ocean … … 550 550 qsurf(iq) = 0. 551 551 ENDDO 552 553 if (water) then 554 qzero1D = 0.0 555 qsurf(i_h2o_vap) = qzero1D 556 endif 552 553 if (tracer) then ! Initialize tracers here. 554 555 write(*,*) "rcm1d : initializing tracers profiles" 556 557 do iq=1,nq 558 559 txt="" 560 write(txt,"(a)") tname(iq) 561 write(*,*)" tracer:",trim(txt) 562 563 ! CO2 564 if (txt.eq."co2_ice") then 565 q(:,iq)=0. ! kg/kg of atmosphere 566 qsurf(iq)=0. ! kg/m2 at the surface 567 ! Look for a "profile_co2_ice" input file 568 open(91,file='profile_co2_ice',status='old', 569 & form='formatted',iostat=ierr) 570 if (ierr.eq.0) then 571 read(91,*) qsurf(iq) 572 do ilayer=1,nlayer 573 read(91,*) q(ilayer,iq) 574 enddo 575 else 576 write(*,*) "No profile_co2_ice file!" 577 endif 578 close(91) 579 endif ! of if (txt.eq."co2") 580 581 ! WATER VAPOUR 582 if (txt.eq."h2o_vap") then 583 q(:,iq)=0. ! kg/kg of atmosphere 584 qsurf(iq)=0. ! kg/m2 at the surface 585 ! Look for a "profile_h2o_vap" input file 586 open(91,file='profile_h2o_vap',status='old', 587 & form='formatted',iostat=ierr) 588 if (ierr.eq.0) then 589 read(91,*) qsurf(iq) 590 do ilayer=1,nlayer 591 read(91,*) q(ilayer,iq) 592 enddo 593 else 594 write(*,*) "No profile_h2o_vap file!" 595 endif 596 close(91) 597 endif ! of if (txt.eq."h2o_vap") 598 599 ! WATER ICE 600 if (txt.eq."h2o_ice") then 601 q(:,iq)=0. ! kg/kg of atmosphere 602 qsurf(iq)=0. ! kg/m2 at the surface 603 ! Look for a "profile_h2o_ice" input file 604 open(91,file='profile_h2o_ice',status='old', 605 & form='formatted',iostat=ierr) 606 if (ierr.eq.0) then 607 read(91,*) qsurf(iq) 608 do ilayer=1,nlayer 609 read(91,*) q(ilayer,iq) 610 enddo 611 else 612 write(*,*) "No profile_h2o_ice file!" 613 endif 614 close(91) 615 endif ! of if (txt.eq."h2o_ice") 616 617 enddo ! of do iq=1,nq 618 619 endif ! of tracer 557 620 558 621 c Initialisation pour prendre en compte les vents en 1-D
Note: See TracChangeset
for help on using the changeset viewer.