Changeset 1948 for LMDZ5/trunk/libf/phy1d/1DUTILS.h
- Timestamp:
- Jan 27, 2014, 11:29:29 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ5/trunk/libf/phy1d/1DUTILS.h
r1914 r1948 2968 2968 2969 2969 !===================================================================== 2970 subroutine readprofiles(nlev_max,kmax, height,2970 subroutine readprofiles(nlev_max,kmax,ntrac,height, 2971 2971 . thlprof,qtprof,uprof, 2972 2972 . vprof,e12prof,ugprof,vgprof, 2973 2973 . wfls,dqtdxls,dqtdyls,dqtdtls, 2974 . thlpcar )2974 . thlpcar,tracer,nt1,nt2) 2975 2975 implicit none 2976 2976 2977 integer nlev_max,kmax,kmax2 2977 integer nlev_max,kmax,kmax2,ntrac 2978 2978 logical :: llesread = .true. 2979 2979 … … 2982 2982 . ugprof(nlev_max),vgprof(nlev_max),wfls(nlev_max), 2983 2983 . dqtdxls(nlev_max),dqtdyls(nlev_max),dqtdtls(nlev_max), 2984 . thlpcar(nlev_max) 2984 . thlpcar(nlev_max),tracer(nlev_max,ntrac) 2985 2985 2986 2986 integer, parameter :: ilesfile=1 2987 integer :: ierr,irad,imax,jtot,k 2987 integer :: ierr,irad,imax,jtot,k,itrac,nt1,nt2 2988 2988 logical :: lmoist,lcoriol,ltimedep 2989 2989 real :: xsize,ysize … … 3015 3015 end do 3016 3016 close(ilesfile) 3017 3018 open(ilesfile,file='trac.inp.001',status='old',iostat=ierr) 3019 nt1=ntrac 3020 nt2=ntrac 3021 if (ierr /= 0) then 3022 print*,'WARNING : trac.inp does not exist' 3023 else 3024 read (ilesfile,*) kmax2,nt1,nt2 3025 if (nt2>ntrac) then 3026 stop'Augmenter le nombre de traceurs dans traceur.def' 3027 endif 3028 if (kmax .ne. kmax2) then 3029 print *, 'fichiers prof.inp et lscale.inp incompatibles :' 3030 print *, 'nbre de niveaux : ',kmax,' et ',kmax2 3031 stop 'lecture profiles' 3032 endif 3033 do k=1,kmax 3034 read (ilesfile,*) height(k),(tracer(k,itrac),itrac=nt1,nt2) 3035 end do 3036 close(ilesfile) 3037 endif 3017 3038 3018 3039 return
Note: See TracChangeset
for help on using the changeset viewer.