1 |
heimbach |
1.1 |
c $Header: /u/gcmpack/development/heimbach/ecco_env/pkg/exf/exf_init.F,v 1.4 2001/02/02 19:43:46 heimbach Exp $ |
2 |
|
|
|
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 |
|
|
c |
18 |
|
|
c ================================================================== |
19 |
|
|
c SUBROUTINE exf_init |
20 |
|
|
c ================================================================== |
21 |
|
|
|
22 |
|
|
implicit none |
23 |
|
|
|
24 |
|
|
c == global variables == |
25 |
|
|
|
26 |
|
|
#include "EEPARAMS.h" |
27 |
|
|
#include "SIZE.h" |
28 |
|
|
#include "cal.h" |
29 |
|
|
#include "exf.h" |
30 |
|
|
|
31 |
|
|
c == routine arguments == |
32 |
|
|
|
33 |
|
|
integer mythid |
34 |
|
|
|
35 |
|
|
c == local variables == |
36 |
|
|
|
37 |
|
|
integer i |
38 |
|
|
|
39 |
|
|
c == end of interface == |
40 |
|
|
|
41 |
|
|
call exf_init_hflux ( mythid ) |
42 |
|
|
call exf_init_sflux ( mythid ) |
43 |
|
|
|
44 |
|
|
call exf_init_ustress( mythid ) |
45 |
|
|
call exf_init_vstress( mythid ) |
46 |
|
|
|
47 |
|
|
#ifdef ALLOW_BULKFORMULAE |
48 |
|
|
c Use bulk formulae estimates of the surface fluxes. |
49 |
|
|
|
50 |
|
|
#ifdef ALLOW_ATM_TEMP |
51 |
|
|
|
52 |
|
|
c Use the atmospheric temperature and specific humidity for flux |
53 |
|
|
c estimates. |
54 |
|
|
call exf_init_atemp ( mythid ) |
55 |
|
|
call exf_init_aqh ( mythid ) |
56 |
|
|
call exf_init_lwflux( mythid ) |
57 |
|
|
call exf_init_swflux( mythid ) |
58 |
|
|
call exf_init_precip( mythid ) |
59 |
|
|
|
60 |
|
|
#else /* ALLOW_ATM_TEMP undefined */ |
61 |
|
|
|
62 |
|
|
#ifdef ALLOW_KPP |
63 |
|
|
call exf_init_swflux( mythid ) |
64 |
|
|
#endif /* ALLOW_KPP */ |
65 |
|
|
|
66 |
|
|
#endif /* ALLOW_ATM_TEMP */ |
67 |
|
|
|
68 |
|
|
#ifdef ALLOW_ATM_WIND |
69 |
|
|
|
70 |
|
|
c Use atmospheric wind fields |
71 |
|
|
call exf_init_uwind( mythid ) |
72 |
|
|
call exf_init_vwind( mythid ) |
73 |
|
|
|
74 |
|
|
#endif /* ALLOW_ATM_WIND */ |
75 |
|
|
|
76 |
|
|
#else /* ALLOW_BULKFORMULAE undefined */ |
77 |
|
|
|
78 |
|
|
#ifdef ALLOW_KPP |
79 |
|
|
call exf_init_swflux( mythid ) |
80 |
|
|
#endif /* ALLOW_KPP */ |
81 |
|
|
|
82 |
|
|
#endif /* ALLOW_BULKFORMULAE */ |
83 |
|
|
|
84 |
|
|
c Check for climatological contributions |
85 |
|
|
call exf_clim_init( mythid ) |
86 |
|
|
|
87 |
|
|
end |