Last change
on this file since 2951 was
2948,
checked in by evos, 20 months ago
|
adding the options to write profiles at the end of the 1D simulation (write_prof=.true.)
|
File size:
290 bytes
|
Line | |
---|
1 | SUBROUTINE writeprofile(nlev,data,name2,iq) |
---|
2 | |
---|
3 | |
---|
4 | IMPLICIT NONE |
---|
5 | |
---|
6 | ! arguments: |
---|
7 | INTEGER nlev,iq |
---|
8 | REAL data(nlev) |
---|
9 | CHARACTER(len=30) :: name2 |
---|
10 | |
---|
11 | !local |
---|
12 | INTEGER il |
---|
13 | |
---|
14 | !write the data |
---|
15 | OPEN(iq,file='profile_out_'//trim(name2),form='formatted') |
---|
16 | DO il=1,nlev |
---|
17 | write(iq,*) data(il) |
---|
18 | ENDDO |
---|
19 | CLOSE(iq) |
---|
20 | RETURN |
---|
21 | END |
---|
Note: See
TracBrowser
for help on using the repository browser.