source: LMDZ4/branches/LMDZ4V5.0-dev/libf/dyn3d/create_etat0_limit.F @ 1957

Last change on this file since 1957 was 1299, checked in by Laurent Fairhead, 15 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.9 KB
RevLine 
[524]1!
[1279]2! $Id: create_etat0_limit.F 1299 2010-01-20 14:27:21Z fairhead $
[524]3!
4       PROGRAM create_etat0_limit
[1279]5#ifdef CPP_EARTH
6! This prog. is designed to work for Earth
[762]7       USE dimphy
[1299]8       USE control_mod
[762]9       USE comgeomphy
[1146]10       USE infotrac
[1279]11#ifdef CPP_IOIPSL
12       use ioipsl, only: ioconf_calendar
13#endif
14       IMPLICIT NONE
[524]15c
16c
17c     Programme d'appel a etat0, creation des etats initiaux et limit_netcdf
18c   
19c
20c     interbar = .T . si appel a  interpol. barycentrique inter_barxy
21c
22c     extrap   = .T . si on fait une extrapolation de donnees , comme pour
23c       les  SST  lorsque  le fichier ne contient pas uniquement  des points
24c     oceaniques .
25c
26c     oldice   = .T. si l'on veut garder les anciennes glaces , obtenues
27c     par  grille_m  ( grid_atob ) .
28c
29c     on cree le masque dans etat0 que l'on passe ensuite dans limit pour
[762]30c     garder les coherences
[524]31
32      LOGICAL interbar, extrap , oldice
33      PARAMETER ( interbar = .true. , extrap = .FALSE. , oldice=.false.)
34#include "dimensions.h"
35#include "paramet.h"
36#include "indicesol.h"
37      REAL :: masque(iip1,jjp1)
[989]38!      REAL :: pctsrf(iim*(jjm-1)+2, nbsrf)
[524]39
[960]40      IF (config_inca /= 'none') THEN
[822]41#ifdef INCA
[1016]42         call init_const_lmdz(
[1146]43     $        nbtr,anneeref,dayref,
[1016]44     $        iphysiq, day_step,nday)
[822]45#endif
[1146]46         print *, 'nbtr =' , nbtr
[960]47      END IF
[822]48
[1279]49      CALL Init_Phys_lmdz(iim,jjp1,llm,1,(/(jjm-1)*iim+2/))
50      PRINT *,'---> klon=',klon
[762]51      call InitComgeomphy
[773]52
[1279]53#ifdef CPP_IOIPSL
54      call ioconf_calendar('360d')
55#endif
56
[524]57      WRITE(6,*) '  *********************  '
58      WRITE(6,*) ' interbar = ',interbar
[1011]59      CALL etat0_netcdf ( interbar, masque )
[524]60c
61      WRITE(6,1)
62      WRITE(6,*) '  *********************  '
63      WRITE(6,*) '  ***  Limit_netcdf ***  '
64      WRITE(6,*) '  *********************  '
65      WRITE(6,1)
[762]66     
67c     
[989]68      CALL  limit_netcdf ( interbar, extrap , oldice, masque)
[524]69
701     FORMAT(//)
71
[1279]72#endif
73! of #ifdef CPP_EARTH
[524]74      STOP
75      END
Note: See TracBrowser for help on using the repository browser.