source: trunk/LMDZ.MARS/libf/phymars/dyn1d/write_profile.F90 @ 2970

Last change on this file since 2970 was 2948, checked in by evos, 2 years ago

adding the options to write profiles at the end of the 1D simulation (write_prof=.true.)

File size: 290 bytes
RevLine 
[2948]1SUBROUTINE writeprofile(nlev,data,name2,iq)
2
3
4IMPLICIT NONE
5
6! arguments:
7INTEGER nlev,iq
8REAL data(nlev)
9CHARACTER(len=30) :: name2
10
11!local
12INTEGER il
13
14!write the data
15OPEN(iq,file='profile_out_'//trim(name2),form='formatted')
16DO il=1,nlev
17        write(iq,*) data(il)
18ENDDO
19CLOSE(iq)
20RETURN
21END
Note: See TracBrowser for help on using the repository browser.