source: LMDZ4/branches/LMDZ4V5.0-dev/libf/grid/fxy_sin.h @ 1397

Last change on this file since 1397 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.5 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)=ASIN(1.+2.*((1.-rj)/REAL(jjm)))
16      fyprim(rj)=1./SQRT((rj-1.)*(jjm+1.-rj))
17
18      fx    ( ri ) = 2.*pi/REAL(iim) * ( ri - 0.5*  REAL(iim) - 1. )
19c     fx    ( ri ) = 2.*pi/REAL(iim) * ( ri - 0.5* ( REAL(iim) + 1.) )
20      fxprim( ri ) = 2.*pi/REAL(iim)
21c
22c
23c    La valeur de pi est passee par le common/const/ou /const2/ .
24c    Sinon, il faut la calculer avant d'appeler ces fonctions .
25c
26c   ----------------------------------------------------------------
27c     Fonctions a changer eventuellement, selon x(x) et y(y) choisis .
28c   -----------------------------------------------------------------
29c
30c    .....  ici, on a l'application particuliere suivante   ........
31c
32c                **************************************
33c                **     x = 2. * pi/iim *  X         **
34c                **     y =      pi/jjm *  Y         **
35c                **************************************
36c
37c   ..................................................................
38c   ..................................................................
39c
40c
41c
42c-----------------------------------------------------------------------
Note: See TracBrowser for help on using the repository browser.