source: LMDZ6/branches/Amaury_dev/libf/grid/lmdz_fxy_reg.f90 @ 5132

Last change on this file since 5132 was 5122, checked in by abarral, 4 months ago

fix lmdz_fxy

File size: 668 bytes
Line 
1! This module replaces grid/fxy_reg.h
2
3MODULE lmdz_fxy_reg
4  USE comconst_mod, ONLY: pi
5  IMPLICIT NONE; PRIVATE
6  PUBLIC fx, fxprim, fy, fyprim
7  INCLUDE "dimensions.h"
8CONTAINS
9
10  REAL FUNCTION fx(ri)
11    REAL, INTENT(IN) :: ri
12    fx = 2. * pi / REAL(iim) * (ri - 0.5 * REAL(iim) - 1.)
13  END FUNCTION fx
14
15  REAL FUNCTION fxprim(ri)
16    REAL, INTENT(IN) :: ri
17    fxprim = 2. * pi / REAL(iim)
18  END FUNCTION fxprim
19
20  REAL FUNCTION fy(rj)
21    REAL, INTENT(IN) :: rj
22    fy = pi / REAL(jjm) * (0.5 * REAL(jjm) + 1. - rj)
23  END FUNCTION fy
24
25  REAL FUNCTION fyprim(rj)
26    REAL, INTENT(IN) :: rj
27    fyprim = pi / REAL(jjm)
28  END FUNCTION fyprim
29END MODULE lmdz_fxy_reg
Note: See TracBrowser for help on using the repository browser.