Changeset 996 for trunk/LMDZ.GENERIC/libf/phystd/newstart.F
- Timestamp:
- Jun 21, 2013, 1:54:50 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.GENERIC/libf/phystd/newstart.F
r993 r996 540 540 write(*,*) 'coldspole : cold subsurface and high albedo at S.pole' 541 541 write(*,*) 'qname : change tracer name' 542 write(*,*) 't=profile : read temperature profile in profile.in' 542 543 write(*,*) 'q=0 : ALL tracer =zero' 543 544 write(*,*) 'q=x : give a specific uniform value to one tracer' … … 892 893 qsurf(ig,iq)=val 893 894 ENDDO 895 896 c t=profile : initialize temperature with a given profile 897 c ------------------------------------------------------- 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 894 934 895 935 c q=profile : initialize tracer with a given profile
Note: See TracChangeset
for help on using the changeset viewer.