source: LMDZ6/branches/Amaury_dev/libf/dyn3d_common/fxy.f90 @ 5114

Last change on this file since 5114 was 5108, checked in by abarral, 4 months ago

Turn grid/*.h into lmdz_fxy.f90

  • Property copyright set to
    Name of program: LMDZ
    Creation date: 1984
    Version: LMDZ5
    License: CeCILL version 2
    Holder: Laboratoire de m\'et\'eorologie dynamique, CNRS, UMR 8539
    See the license file in the root directory
  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.7 KB
Line 
1! $Id: fxy.f90 5108 2024-07-24 08:58:59Z abarral $
2
3SUBROUTINE fxy(rlatu, yprimu, rlatv, yprimv, rlatu1, yprimu1, &
4        rlatu2, yprimu2, &
5        rlonu, xprimu, rlonv, xprimv, rlonm025, xprimm025, rlonp025, xprimp025)
6
7  USE comconst_mod, ONLY: pi
8  USE serre_mod, ONLY: pxo, pyo, alphax, alphay, transx, transy
9  USE lmdz_fxy, ONLY: fxy_new
10
11  IMPLICIT NONE
12
13  ! Auteur  :  P. Le Van
14  !
15  ! Calcul  des longitudes et des latitudes  pour une fonction f(x,y)
16  !       a tangente sinusoidale et eventuellement avec zoom  .
17  !
18  !
19  include "dimensions.h"
20  include "paramet.h"
21
22  INTEGER :: i, j
23
24  REAL :: rlatu(jjp1), yprimu(jjp1), rlatv(jjm), yprimv(jjm), &
25          rlatu1(jjm), yprimu1(jjm), rlatu2(jjm), yprimu2(jjm)
26  REAL :: rlonu(iip1), xprimu(iip1), rlonv(iip1), xprimv(iip1), &
27          rlonm025(iip1), xprimm025(iip1), rlonp025(iip1), xprimp025(iip1)
28  REAL :: ripx, fx, fxprim, fy, fyprim, ri, rj, bigy
29
30  CALL fxy_new(ripx, fx, fxprim, fy, fyprim, ri, rj, bigy)
31
32  !    ......  calcul  des  latitudes  et de y'   .....
33  !
34  DO j = 1, jjm + 1
35    rlatu(j) = fy    (REAL(j))
36    yprimu(j) = fyprim(REAL(j))
37  ENDDO
38
39  DO j = 1, jjm
40
41    rlatv(j) = fy    (REAL(j) + 0.5)
42    rlatu1(j) = fy    (REAL(j) + 0.25)
43    rlatu2(j) = fy    (REAL(j) + 0.75)
44
45    yprimv(j) = fyprim(REAL(j) + 0.5)
46    yprimu1(j) = fyprim(REAL(j) + 0.25)
47    yprimu2(j) = fyprim(REAL(j) + 0.75)
48
49  ENDDO
50
51  !
52  ! .....  calcul   des  longitudes et de  x'   .....
53  !
54  DO i = 1, iim + 1
55    rlonv(i) = fx    (REAL(i))
56    rlonu(i) = fx    (REAL(i) + 0.5)
57    rlonm025(i) = fx    (REAL(i) - 0.25)
58    rlonp025(i) = fx    (REAL(i) + 0.25)
59
60    xprimv  (i) = fxprim (REAL(i))
61    xprimu  (i) = fxprim (REAL(i) + 0.5)
62    xprimm025(i) = fxprim (REAL(i) - 0.25)
63    xprimp025(i) = fxprim (REAL(i) + 0.25)
64  ENDDO
65
66  !
67END SUBROUTINE fxy
68
Note: See TracBrowser for help on using the repository browser.