source: LMDZ4/branches/LMDZ4V5.0-dev/libf/grid/fxy_reg.h @ 1299

Last change on this file since 1299 was 1299, checked in by Laurent Fairhead, 14 years ago

Nettoyage general pour se rapprocher des normes et éviter des erreurs a la
compilation:

  • tous les FLOAT() sont remplacés par des REAL()
  • tous les STOP dans phylmd sont remplacés par des appels à abort_gcm
  • le common control défini dans le fichier control.h est remplacé par le module control_mod pour éviter des messages sur l'alignement des variables dans les déclarations
  • des $Header$ remplacés par des $Id$ pour svn

Quelques remplacements à faire ont pu m'échapper


General cleanup of the code to try and adhere to norms and to prevent some
compilation errors:

  • all FLOAT() instructions have been replaced by REAL() instructions
  • all STOP instructions in phylmd have been replaced by calls to abort_gcm
  • the common block control defined in the control.h file has been replaced by the control_mod to prevent compilation warnings on the alignement of declared variables
  • $Header$ replaced by $Id$ for svn

Some changes which should have been made might have escaped me

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.6 KB
Line 
1!
2! $Header$
3!
4c-----------------------------------------------------------------------
5c INCLUDE 'fxyprim.h'
6c
7c    ................................................................
8c    ................  Fonctions in line  ...........................
9c    ................................................................
10c
11      REAL  fy, fx, fxprim, fyprim
12      REAL  ri, rj
13c
14c
15      fy    ( rj ) =    pi/REAL(jjm) * ( 0.5 * REAL(jjm) +  1. - rj  )
16      fyprim( rj ) =    pi/REAL(jjm)
17
18c     fy(rj)=ASIN(1.+2.*((1.-rj)/REAL(jjm)))
19c     fyprim(rj)=1./SQRT((rj-1.)*(jjm+1.-rj))
20
21      fx    ( ri ) = 2.*pi/REAL(iim) * ( ri - 0.5*  REAL(iim) - 1. )
22c     fx    ( ri ) = 2.*pi/REAL(iim) * ( ri - 0.5* ( REAL(iim) + 1.) )
23      fxprim( ri ) = 2.*pi/REAL(iim)
24c
25c
26c    La valeur de pi est passee par le common/const/ou /const2/ .
27c    Sinon, il faut la calculer avant d'appeler ces fonctions .
28c
29c   ----------------------------------------------------------------
30c     Fonctions a changer eventuellement, selon x(x) et y(y) choisis .
31c   -----------------------------------------------------------------
32c
33c    .....  ici, on a l'application particuliere suivante   ........
34c
35c                **************************************
36c                **     x = 2. * pi/iim *  X         **
37c                **     y =      pi/jjm *  Y         **
38c                **************************************
39c
40c   ..................................................................
41c   ..................................................................
42c
43c
44c
45c-----------------------------------------------------------------------
Note: See TracBrowser for help on using the repository browser.