Ignore:
Timestamp:
Jun 21, 2013, 1:54:50 AM (11 years ago)
Author:
aslmd
Message:

LMDZ.GIANT R.I.P. (but moved def files in LMDZ.UNIVERSAL for the record). LMDZ.GENERIC added a mode in newstart to initialize with a 1D profile. added Ls in outputs. LMDZ.UNIVERSAL added def for saturn_tropo_strato

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.GENERIC/libf/phystd/newstart.F

    r993 r996  
    540540      write(*,*) 'coldspole : cold subsurface and high albedo at S.pole'
    541541      write(*,*) 'qname : change tracer name'
     542      write(*,*) 't=profile  : read temperature profile in profile.in'
    542543      write(*,*) 'q=0 : ALL tracer =zero'
    543544      write(*,*) 'q=x : give a specific uniform value to one tracer'
     
    892893                 qsurf(ig,iq)=val
    893894             ENDDO
     895
     896c       t=profile : initialize temperature with a given profile
     897c       -------------------------------------------------------
     898        else if (trim(modif) .eq. 't=profile') then
     899             write(*,*) 'Temperature profile from ASCII file'
     900             write(*,*) "'profile.in' e.g. 1D output"
     901             write(*,*) "(one value per line in file; starting with"
     902             write(*,*) "surface value, the 1st atmospheric layer"
     903             write(*,*) "followed by 2nd, etc. up to top of atmosphere)"
     904             txt="profile.in"
     905             open(33,file=trim(txt),status='old',form='formatted',
     906     &            iostat=ierr)
     907             if (ierr.eq.0) then
     908               ! OK, found file 'profile_...', load the profile
     909               do l=1,llm+1
     910                 read(33,*,iostat=ierr) profile(l)
     911                 write(*,*) profile(l)
     912                 if (ierr.ne.0) then ! something went wrong
     913                   exit ! quit loop
     914                 endif
     915               enddo
     916               if (ierr.eq.0) then
     917                 tsurf(1:ngridmx)=profile(1)
     918                 tsoil(1:ngridmx,1:nsoilmx)=profile(1)
     919                 do l=1,llm
     920                   Tset(1:iip1,1:jjp1,l)=profile(l+1)
     921                   flagtset=.true.
     922                 enddo
     923                 ucov(1:iip1,1:jjp1,1:llm)=0.
     924                 vcov(1:iip1,1:jjm,1:llm)=0.
     925                 q2(1:ngridmx,1:nlayermx+1)=0.
     926               else
     927                 write(*,*)'problem reading file ',trim(txt),' !'
     928                 write(*,*)'No modifications to temperature'
     929               endif
     930             else
     931               write(*,*)'Could not find file ',trim(txt),' !'
     932               write(*,*)'No modifications to temperature'
     933             endif
    894934
    895935c       q=profile : initialize tracer with a given profile
Note: See TracChangeset for help on using the changeset viewer.