|
1 | | -! ======================================================= |
2 | | - subroutine src2(maxmx,maxmy,num_eqn,num_ghost,mx,my,xlower,ylower, & |
3 | | - dx,dy,q,num_aux,aux,t,dt,Rsphere) |
4 | | -! ======================================================= |
5 | | - |
| 1 | +subroutine src2(maxmx,maxmy,num_eqn,num_ghost,mx,my,xlower,ylower, & |
| 2 | + dx,dy,q,num_aux,aux,t,dt,Rsphere) |
6 | 3 |
|
7 | 4 | ! # Compute source term for Rossby-Haurwitz wave. |
8 | 5 | ! # The source term models the Coriolis force using a 4-stage RK method |
9 | 6 | ! # and the projection of the velocity components to the tangent plane. |
10 | 7 |
|
| 8 | + implicit none |
11 | 9 |
|
12 | | - implicit double precision (a-h,o-z) |
13 | | - dimension q(num_eqn, 1:mx, 1:my) |
14 | | - dimension aux(num_aux, 1:mx, 1:my) |
15 | | - double precision :: RK(4,3) |
| 10 | + real(kind=8) :: q(num_eqn, 1:mx, 1:my) |
| 11 | + real(kind=8) :: aux(num_aux, 1:mx, 1:my) |
| 12 | + real(kind=8) :: RK(4,3) |
| 13 | + real(kind=8) :: a, Omega, df, erx, ery, erz, qn, xc, yc, rad, theta |
| 14 | + real(kind=8) :: xp, yp, zp, phi, fcor, hu, hv, hw |
| 15 | + integer :: num_eqn, num_ghost, mx, my, num_aux, maxmx, maxmy |
| 16 | + integer :: i, j, m |
| 17 | + real(kind=8) :: xlower, ylower, dx, dy, t, dt, Rsphere |
16 | 18 |
|
17 | 19 | !f2py integer intent(in) maxmx |
18 | 20 | !f2py integer intent(in) maxmy |
|
0 commit comments