source: trunk/LMDZ.MARS/libf/dyn3d/testharm.F @ 1422

Last change on this file since 1422 was 1422, checked in by milmd, 10 years ago

In GENERIC, MARS and COMMON models replace some include files by modules (usefull for decoupling physics with dynamics).

File size: 966 bytes
Line 
1      PROGRAM testharm
2      implicit none
3
4#include "dimensions.h"
5#include "paramet.h"
6
7      integer i,j,ii,jj
8      real pi
9      real psi(jjp1,jjp1,iim) , fphi(iim,iim)
10      character file*20, str2*2, str2b*2
11
12#include "fxyprim.h"
13
14      pi=2.*asin(1.)
15
16      call harmspher( fphi,psi )
17      print*,'FIN de harmspher'
18
19      do i=1,iim
20         write(str2,'(i2.2)') i
21         file='Phi'//str2
22         open(10,file=file,form='formatted')
23         print*,'i,file',i,file
24         do ii=1,iim
25            write(10,*) fx(float(ii))*180./pi,fphi(ii,i)
26         enddo
27         close(10)
28      enddo
29
30      do i=1,iim
31         do j=1,jjp1
32            write(str2,'(i2.2)') i
33            write(str2b,'(i2.2)') j
34            file='Psi.'//str2//'.'//str2b
35            open(10,file=file,form='formatted')
36            do jj=1,jjp1
37               write(10,*) fy(float(jj))*180./pi,psi(jj,j,i)
38            enddo
39            close(10)
40         enddo
41      enddo
42
43      end
Note: See TracBrowser for help on using the repository browser.