Changeset 3045 for trunk/LMDZ.MARS/libf/phymars/dyn1d/write_profile.F90
- Timestamp:
- Sep 21, 2023, 10:19:40 AM (14 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.MARS/libf/phymars/dyn1d/write_profile.F90
r3000 r3045 1 SUBROUTINE writeprofile(nlev, data,name2,qsurf)1 SUBROUTINE writeprofile(nlev,profilename,surfdata,profiledata) 2 2 3 implicit none 3 4 4 IMPLICIT NONE 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 10 6 ! arguments: 7 INTEGER nlev 8 REAL data(nlev) 9 REAL qsurf 10 CHARACTER(len=30) :: name2 11 ! Local 12 integer :: il 11 13 12 !local 13 INTEGER il 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) 19 enddo 20 close(1) 21 return 14 22 15 !write the data16 OPEN(1,file='profile_out_'//trim(name2),form='formatted')17 write(1,*) qsurf18 DO il=1,nlev19 write(1,*) data(il)20 ENDDO21 CLOSE(1)22 RETURN23 23 END
Note: See TracChangeset
for help on using the changeset viewer.