source: LMDZ6/branches/Amaury_dev/libf/dyn3d_common/fxysinus.f90 @ 5118

Last change on this file since 5118 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.6 KB
Line 
1! $Id: fxysinus.f90 5108 2024-07-24 08:58:59Z abarral $
2
3SUBROUTINE fxysinus(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 lmdz_fxy, ONLY: fxy_sin
9  IMPLICIT NONE
10  !
11  ! Calcul  des longitudes et des latitudes  pour une fonction f(x,y)
12  !        avec y = Asin( j )  .
13  !
14  ! Auteur  :  P. Le Van
15  !
16  !
17  INCLUDE "dimensions.h"
18  INCLUDE "paramet.h"
19
20  INTEGER :: i, j
21
22  REAL :: rlatu(jjp1), yprimu(jjp1), rlatv(jjm), yprimv(jjm), &
23          rlatu1(jjm), yprimu1(jjm), rlatu2(jjm), yprimu2(jjm)
24  REAL :: rlonu(iip1), xprimu(iip1), rlonv(iip1), xprimv(iip1), &
25          rlonm025(iip1), xprimm025(iip1), rlonp025(iip1), xprimp025(iip1)
26  REAL :: fy, fx, fxprim, fyprim, ri, rj
27
28  CALL fxy_sin(fy, fx, fxprim, fyprim, ri, rj)
29
30
31  !    ......  calcul  des  latitudes  et de y'   .....
32  !
33  DO j = 1, jjm + 1
34    rlatu(j) = fy    (REAL(j))
35    yprimu(j) = fyprim(REAL(j))
36  ENDDO
37
38  DO j = 1, jjm
39
40    rlatv(j) = fy    (REAL(j) + 0.5)
41    rlatu1(j) = fy    (REAL(j) + 0.25)
42    rlatu2(j) = fy    (REAL(j) + 0.75)
43
44    yprimv(j) = fyprim(REAL(j) + 0.5)
45    yprimu1(j) = fyprim(REAL(j) + 0.25)
46    yprimu2(j) = fyprim(REAL(j) + 0.75)
47
48  ENDDO
49
50  !
51  ! .....  calcul   des  longitudes et de  x'   .....
52  !
53  DO i = 1, iim + 1
54    rlonv(i) = fx    (REAL(i))
55    rlonu(i) = fx    (REAL(i) + 0.5)
56    rlonm025(i) = fx    (REAL(i) - 0.25)
57    rlonp025(i) = fx    (REAL(i) + 0.25)
58
59    xprimv  (i) = fxprim (REAL(i))
60    xprimu  (i) = fxprim (REAL(i) + 0.5)
61    xprimm025(i) = fxprim (REAL(i) - 0.25)
62    xprimp025(i) = fxprim (REAL(i) + 0.25)
63  ENDDO
64
65  !
66  RETURN
67END SUBROUTINE fxysinus
68
Note: See TracBrowser for help on using the repository browser.