Changeset 3051 for trunk/LMDZ.MARS/libf/phymars/dyn1d/writerestart1D.F90
- Timestamp:
- Sep 26, 2023, 6:10:40 PM (16 months ago)
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.MARS/libf/phymars/dyn1d/writerestart1D.F90
r3050 r3051 1 SUBROUTINE write profile(nlev,profilename,surfdata,profiledata)1 SUBROUTINE writerestart1D(psurf,tsurf,nlayer,temp,u,v,nq,qnames,qsurf,q) 2 2 3 3 implicit none 4 4 5 ! arguments 6 integer, intent(in) :: nlev 7 real, intent(in) :: surfdata 8 real, dimension(nlev), intent(in) :: profiledata 9 character(len = 30), intent(in) :: profilename 5 ! Arguments 6 integer, intent(in) :: nlayer, nq 7 real, intent(in) :: psurf, tsurf 8 real, dimension(nlayer), intent(in) :: temp, u, v 9 real, dimension(nlayer,nq), intent(in) :: q 10 real, dimension(nq), intent(in) :: qsurf 11 character(len = *), dimension(nq), intent(in) :: qnames 10 12 11 ! Local 12 integer :: il 13 ! Local variables 14 integer :: il, iq 13 15 14 ! Write the data 15 open(1,file = 'profile_out_'//trim(profilename),form = 'formatted') 16 write(1,*) surfdata 17 do il = 1,nlev 18 write(1,*) profiledata(il) 16 ! Write the data needed for a restart in "restart1D.txt" 17 open(1,file = 'restart1D.txt',status = "replace",action = "write") 18 do iq = 1,nq 19 write(1,*) qnames(iq), qsurf(iq), (q(il,iq), il = 1,nlayer) 19 20 enddo 21 write(1,*) 'ps', psurf 22 write(1,*) 'u', (u(il), il = 1,nlayer) 23 write(1,*) 'v', (v(il), il = 1,nlayer) 24 write(1,*) 'teta', tsurf, (temp(il), il = 1,nlayer) 20 25 close(1) 21 return22 26 23 END 27 END SUBROUTINE writerestart1D
Note: See TracChangeset
for help on using the changeset viewer.