1 |
dimitri |
1.4 |
c $Header: /u/gcmpack/MITgcm/pkg/exf/exf_init.F,v 1.3 2002/11/12 20:34:41 heimbach Exp $ |
2 |
heimbach |
1.1 |
|
3 |
|
|
#include "EXF_CPPOPTIONS.h" |
4 |
|
|
|
5 |
|
|
|
6 |
|
|
subroutine exf_init( |
7 |
|
|
I mythid |
8 |
|
|
& ) |
9 |
|
|
|
10 |
|
|
c ================================================================== |
11 |
|
|
c SUBROUTINE exf_init |
12 |
|
|
c ================================================================== |
13 |
|
|
c |
14 |
|
|
c o This routine initialises the forcing |
15 |
|
|
c |
16 |
|
|
c started: Ralf.Giering@FastOpt.de 25-Mai-20000 |
17 |
dimitri |
1.4 |
c included evaporation; menemenlis@jpl.nasa.gov 20-Dec-2002 |
18 |
heimbach |
1.1 |
c |
19 |
|
|
c ================================================================== |
20 |
|
|
c SUBROUTINE exf_init |
21 |
|
|
c ================================================================== |
22 |
|
|
|
23 |
|
|
implicit none |
24 |
|
|
|
25 |
|
|
c == global variables == |
26 |
|
|
|
27 |
|
|
#include "EEPARAMS.h" |
28 |
|
|
#include "SIZE.h" |
29 |
|
|
#include "cal.h" |
30 |
|
|
#include "exf.h" |
31 |
|
|
|
32 |
|
|
c == routine arguments == |
33 |
|
|
|
34 |
|
|
integer mythid |
35 |
|
|
|
36 |
|
|
c == local variables == |
37 |
|
|
|
38 |
|
|
c == end of interface == |
39 |
|
|
|
40 |
|
|
call exf_init_hflux ( mythid ) |
41 |
|
|
call exf_init_sflux ( mythid ) |
42 |
|
|
|
43 |
|
|
call exf_init_ustress( mythid ) |
44 |
|
|
call exf_init_vstress( mythid ) |
45 |
dimitri |
1.4 |
|
46 |
|
|
#ifdef EXF_READ_EVAP |
47 |
|
|
call exf_init_evap ( mythid ) |
48 |
|
|
#endif EXF_READ_EVAP |
49 |
heimbach |
1.3 |
|
50 |
|
|
#ifdef ALLOW_RUNOFF |
51 |
|
|
call exf_init_runoff ( mythid ) |
52 |
|
|
#endif /* ALLOW_RUNOFF */ |
53 |
heimbach |
1.1 |
|
54 |
|
|
#ifdef ALLOW_BULKFORMULAE |
55 |
|
|
c Use bulk formulae estimates of the surface fluxes. |
56 |
|
|
|
57 |
|
|
#ifdef ALLOW_ATM_TEMP |
58 |
|
|
|
59 |
|
|
c Use the atmospheric temperature and specific humidity for flux |
60 |
|
|
c estimates. |
61 |
|
|
call exf_init_atemp ( mythid ) |
62 |
|
|
call exf_init_aqh ( mythid ) |
63 |
|
|
call exf_init_lwflux( mythid ) |
64 |
|
|
call exf_init_swflux( mythid ) |
65 |
|
|
call exf_init_precip( mythid ) |
66 |
|
|
|
67 |
|
|
#else /* ALLOW_ATM_TEMP undefined */ |
68 |
|
|
|
69 |
|
|
#ifdef ALLOW_KPP |
70 |
|
|
call exf_init_swflux( mythid ) |
71 |
|
|
#endif /* ALLOW_KPP */ |
72 |
|
|
|
73 |
|
|
#endif /* ALLOW_ATM_TEMP */ |
74 |
|
|
|
75 |
|
|
#ifdef ALLOW_ATM_WIND |
76 |
|
|
|
77 |
|
|
c Use atmospheric wind fields |
78 |
|
|
call exf_init_uwind( mythid ) |
79 |
|
|
call exf_init_vwind( mythid ) |
80 |
|
|
|
81 |
|
|
#endif /* ALLOW_ATM_WIND */ |
82 |
|
|
|
83 |
|
|
#else /* ALLOW_BULKFORMULAE undefined */ |
84 |
|
|
|
85 |
|
|
#ifdef ALLOW_KPP |
86 |
|
|
call exf_init_swflux( mythid ) |
87 |
|
|
#endif /* ALLOW_KPP */ |
88 |
|
|
|
89 |
|
|
#endif /* ALLOW_BULKFORMULAE */ |
90 |
|
|
|
91 |
|
|
c Check for climatological contributions |
92 |
|
|
call exf_clim_init( mythid ) |
93 |
|
|
|
94 |
|
|
end |