/[MITgcm]/MITgcm/pkg/fizhi/fizhi_init_fixed.F
ViewVC logotype

Annotation of /MITgcm/pkg/fizhi/fizhi_init_fixed.F

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.6 - (hide annotations) (download)
Tue Jun 8 22:26:08 2004 UTC (19 years, 11 months ago) by molod
Branch: MAIN
Changes since 1.5: +3 -3 lines
Developing inputs for fizhi

1 molod 1.6 C $Header: /u/gcmpack/MITgcm/pkg/fizhi/fizhi_init_fixed.F,v 1.5 2004/06/08 15:09:01 molod Exp $
2 molod 1.1 C $Name: $
3    
4     subroutine fizhi_init_fixed (myThid)
5     c-----------------------------------------------------------------------
6     c Routine to initialise the fizhi package.
7     c
8     c Input: myThid - Process number calling this routine
9     c
10     c Notes:
11     c 1) This routine is the interface to read input datasets and set
12     c other fixed variables for fizhi
13     c the datasets are:
14     c vegetation (data for each tile at every grid point)
15     c ozone (varies with lat, height and time - read it all in
16     c now and interpolate between values later)
17     c the other fixed parameters are:
18     c N2O, Methane (vary with space)
19     c CO2, CFC11, CFC12, CFC22 (set to a global value)
20 molod 1.3 c 3) For now, the fizhi package contains the alarms and clocks
21     c routines, so this routine will also initialize the alarms.
22 molod 1.1 c-----------------------------------------------------------------------
23     implicit none
24     #include "CPP_OPTIONS.h"
25     #include "SIZE.h"
26     #include "fizhi_SIZE.h"
27 molod 1.2 #include "fizhi_land_SIZE.h"
28 molod 1.1 #include "EEPARAMS.h"
29 molod 1.2 #include "fizhi_chemistry_coms.h"
30     #include "fizhi_earth_coms.h"
31 molod 1.3 #include "fizhi_land_coms.h"
32     #include "chronos.h"
33 molod 1.5 #include "gridalt_mapping.h"
34 molod 1.1
35     integer myThid
36    
37     integer bi, bj
38     integer im1, im2, jm1, jm2, idim1, idim2, jdim1, jdim2
39 molod 1.3 integer nymdb,nhmsb
40     character*40 vegdata
41 molod 1.5 _RL pressure(Nrphys)
42 molod 1.1
43     im1 = 1-OLx
44     im2 = sNx+OLx
45     jm1 = 1-OLy
46     jm2 = sNy+OLy
47     idim1 = 1
48     idim2 = sNx
49     jdim1 = 1
50     jdim2 = sNy
51 molod 1.3 nymdb = nymd0
52     nhmsb = nhms0
53 molod 1.1
54 molod 1.3 call fizhi_alarms(nymdb,nhmsb,deltaTClock)
55 molod 1.6 call fizhi_init_veg ( mythid, vegdata,idim2,jdim2,Nsx,Nsy,
56     . nSx*nPx,nSy*nPy,maxtyp,nchp,surftype,tilefrac,igrd,ityp,chfr )
57 molod 1.3
58     C Compute pressure profile to get methane and n2o values (bottom-up)
59    
60 molod 1.5 pressure(1)=1000.
61     do L = 2,Nrphys+1
62     pressure(L)=pressure(L-1)-dpphys0(1,1,L-1,1,1)
63 molod 1.1 enddo
64 molod 1.3
65 molod 1.4 call fizhi_init_chem(mythid,
66     . nlatsoz,nlevsoz,ntimesoz,latsoz,levsoz,ozone,
67     . nlatsq,nlevsq,ntimesq,latsq,levsq,stratq,
68     . Nrphys,pressure,n20,methane,co2,cfc11,cfc12,cfc22)
69 molod 1.1
70     return
71     end

  ViewVC Help
Powered by ViewVC 1.1.22