My Project
 All Classes Files Functions Variables Macros
inifis.F
Go to the documentation of this file.
1 !
2 ! $Id: inifis.F 1403 2010-07-01 09:02:53Z fairhead $
3 !
4  SUBROUTINE inifis(ngrid,nlayer,
5  $ punjours,
6  $ pdayref,ptimestep,
7  $ plat,plon,parea,
8  $ prad,pg,pr,pcpp)
9  USE dimphy
10  IMPLICIT NONE
11 c
12 c=======================================================================
13 c
14 c subject:
15 c --------
16 c
17 c Initialisation for the physical parametrisations of the LMD
18 c martian atmospheric general circulation modele.
19 c
20 c author: Frederic Hourdin 15 / 10 /93
21 c -------
22 c
23 c arguments:
24 c ----------
25 c
26 c input:
27 c ------
28 c
29 c ngrid Size of the horizontal grid.
30 c All internal loops are performed on that grid.
31 c nlayer Number of vertical layers.
32 c pdayref Day of reference for the simulation
33 c firstcall True at the first call
34 c lastcall True at the last call
35 c pday Number of days counted from the North. Spring
36 c equinoxe.
37 c
38 c=======================================================================
39 c
40 c-----------------------------------------------------------------------
41 c declarations:
42 c -------------
43 
44 cym#include "dimensions.h"
45 cym#include "dimphy.h"
46 
47  include 'iniprint.h'
48  REAL prad,pg,pr,pcpp,punjours
49 
50  INTEGER ngrid,nlayer
51  REAL plat(ngrid),plon(ngrid),parea(klon)
52  INTEGER pdayref
53 
54  REAL ptimestep
55  CHARACTER (LEN=20) :: modname='inifis'
56  CHARACTER (LEN=80) :: abort_message
57 
58 
59  IF (nlayer.NE.klev) THEN
60  print*,'STOP in inifis'
61  print*,'Probleme de dimensions :'
62  print*,'nlayer = ',nlayer
63  print*,'klev = ',klev
64  abort_message = ''
65  CALL abort_gcm(modname,abort_message,1)
66  ENDIF
67 
68  IF (ngrid.NE.klon) THEN
69  print*,'STOP in inifis'
70  print*,'Probleme de dimensions :'
71  print*,'ngrid = ',ngrid
72  print*,'klon = ',klon
73  abort_message = ''
74  CALL abort_gcm(modname,abort_message,1)
75  ENDIF
76 
77  RETURN
78 9999 continue
79  abort_message =
80 'Cette version demande les fichier rnatur.dat & et surf.def'
81  CALL abort_gcm(modname,abort_message,1)
82 
83  END