/[MITgcm]/MITgcm/verification/vero/code/FFIELDS.h
ViewVC logotype

Contents of /MITgcm/verification/vero/code/FFIELDS.h

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


Revision 1.1 - (show annotations) (download)
Sun Mar 25 22:33:55 2001 UTC (23 years, 1 month ago) by heimbach
Branch: MAIN
CVS Tags: checkpoint46n_post, checkpoint51k_post, checkpoint47j_post, checkpoint40pre1, checkpoint48d_pre, checkpoint44b_post, checkpoint51j_post, branch-exfmods-tag, checkpoint47e_post, checkpoint43a-release1mods, checkpoint44h_pre, checkpoint47i_post, checkpoint44e_post, release1_p12, release1_p13, release1_p10, release1_p11, release1_p16, release1_p17, release1_p14, release1_p15, checkpoint47f_post, checkpoint47c_post, checkpoint50e_post, release1_p13_pre, checkpoint50c_post, checkpoint46i_post, checkpoint51n_pre, checkpoint47d_post, checkpoint40pre3, checkpoint44f_pre, checkpoint47a_post, checkpoint46f_post, checkpoint46l_pre, checkpoint46d_pre, release1_beta1, checkpoint48e_post, checkpoint46e_post, checkpoint48d_post, checkpoint50g_post, release1-branch_tutorials, checkpoint46c_post, checkpoint44g_post, branchpoint-genmake2, checkpoint44h_post, checkpoint46l_post, checkpoint46k_post, checkpoint46e_pre, checkpoint48f_post, checkpoint45d_post, checkpoint51r_post, checkpoint46j_pre, checkpoint45b_post, checkpoint46b_pre, checkpoint51i_post, checkpoint40pre7, checkpoint48c_post, chkpt44a_pre, release1-branch-end, c37_adj, release1_final_v1, checkpoint51e_post, checkpoint51b_post, checkpoint51l_pre, release1_p12_pre, checkpoint46c_pre, checkpoint43, checkpoint40, checkpoint41, checkpoint47d_pre, checkpoint47, checkpoint44, checkpoint45, checkpoint48, checkpoint49, checkpoint44f_post, checkpoint47b_post, checkpoint40pre2, checkpoint40pre5, checkpoint51l_post, checkpoint40pre6, checkpoint48i_post, checkpoint40pre9, checkpoint40pre8, checkpoint50, checkpoint51f_pre, release1_b1, checkpoint48h_post, checkpoint51q_post, checkpoint50d_pre, chkpt44d_post, checkpoint46h_pre, checkpoint51, checkpoint47h_post, checkpoint52, release1_p8, release1_p9, checkpoint50d_post, checkpoint46g_pre, release1_p2, release1_p3, release1_p4, checkpoint51b_pre, release1_p6, release1_p7, checkpoint46a_post, checkpoint47g_post, chkpt44a_post, checkpoint44b_pre, chkpt44c_post, release1_p1, checkpoint46m_post, checkpoint46j_post, checkpoint40pre4, checkpoint51h_pre, checkpoint46a_pre, checkpoint50c_pre, checkpoint45c_post, checkpoint50b_pre, release1_p5, checkpoint44e_pre, checkpoint51g_post, ecco_c52_e35, checkpoint46b_post, checkpoint51f_post, checkpoint46d_post, checkpoint48b_post, checkpoint50b_post, checkpoint46g_post, checkpoint51c_post, checkpoint45a_post, checkpoint50f_post, checkpoint50a_post, checkpoint42, checkpoint50f_pre, checkpoint52a_pre, checkpoint51d_post, checkpoint48c_pre, release1-branch_branchpoint, checkpoint46, checkpoint51t_post, checkpoint50h_post, checkpoint51a_post, checkpoint39, checkpoint46h_post, checkpoint50e_pre, checkpoint38, checkpoint50i_post, checkpoint51p_post, checkpoint51n_post, release1_chkpt44d_post, checkpoint48g_post, checkpoint51i_pre, chkpt44c_pre, checkpoint51u_post, checkpoint48a_post, checkpoint51m_post, checkpoint51s_post
Branch point for: branch-genmake2, release1, branch-exfmods-curt, branch-nonh, release1_coupled, tg2-branch, release1_final, checkpoint51n_branch, release1-branch, release1_50yr
File MIME type: text/plain
Modifications and additions to enable automatic differentiation.
Detailed info's in doc/notes_c37_adj.txt

1 C $Header: /u/gcmpack/development/heimbach/div/c34_adj/verification/vero/code/FFIELDS.h,v 1.1.1.1 2001/02/13 17:55:15 heimbach Exp $
2 C
3 C /==========================================================\
4 C | FFIELDS.h |
5 C | o Model forcing fields |
6 C |==========================================================|
7 C | The arrays here will need changing and customising for a |
8 C | particular experiment. |
9 C \==========================================================/
10 C
11 C-- For a classical "gyre" type experiment just one term is needed.
12 C
13 C fu - Zonal surface wind stress
14 C Units are N/m^2 (>0 from East to West)
15 C
16 C fv - Meridional surface wind stress
17 C Units are N/m^2 (>0 from North to South))
18 C
19 C EmPmR - Evaporation - Precipitation - Runoff
20 C Units are m/s (>0 for ocean salting)
21 C
22 C Qnet - Upward surface heat flux
23 C Units are W/m^2=kg/s^3 (>0 for ocean cooling)
24 C
25 C Qsw - Upward short-wave surface heat flux
26 C Units are W/m^2=kg/s^3 (>0 for ocean cooling)
27 C
28 C dQdT - Thermal relaxation coefficient
29 C (W/m^2/degrees -> degrees/second)
30 C SST - Sea surface temperature (degrees) for relaxation
31 C SSS - Sea surface salinity (psu) for relaxation
32
33 COMMON /FFIELDS/
34 & fu,
35 & fv,
36 & Qnet,
37 & EmPmR,
38 & SST,
39 & SSS,
40 & Qsw
41 _RS fu (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
42 _RS fv (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
43 _RS Qnet (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
44 _RS EmPmR (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
45 _RS Qsw (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
46 _RS dQdT (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
47 _RS SST (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
48 _RS SSS (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
49
50 C surfaceTendencyU (units are m/s^2)
51 C -> usage in gU: gU = gU + surfaceTendencyU[m/s^2]
52 C
53 C surfaceTendencyV (units are m/s^2)
54 C -> usage in gV: gV = gV + surfaceTendencyV[m/s^2]
55 C
56 C surfaceTendencyS (units are psu/s)
57 C - EmPmR plus salinity relaxation term
58 C -> calculate -lambda*(S(model)-S(clim))
59 C -> usage in gS: gS = gS + surfaceTendencyS[psu/s]
60 C
61 C surfaceTendencyT (units are degrees/s)
62 C - Qnet plus temp. relaxation
63 C -> calculate -lambda*(T(model)-T(clim))
64 C >>> Qnet assumed to be total flux minus s/w rad. <<<
65 C -> usage in gT: gT = gT + surfaceTendencyT[K/s]
66 C
67 COMMON /TENDENCY_FORCING/
68 & surfaceTendencyU,
69 & surfaceTendencyV,
70 & surfaceTendencyT,
71 & surfaceTendencyS,
72 & tempQsw
73 _RS surfaceTendencyU (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
74 _RS surfaceTendencyV (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
75 _RS surfaceTendencyT (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
76 _RS surfaceTendencyS (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
77 _RS tempQsw (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
78
79 #ifdef ALLOW_COST_TEST
80
81 C there are eight different forcing fields
82 C each has a specific index
83
84 integer maxforcing
85 parameter( maxforcing = 8 )
86
87 integer fuindex , fvindex
88 parameter( fuindex = 1, fvindex = 2 )
89 integer SSTindex , SSSindex
90 parameter( SSTindex = 3, SSSindex = 4 )
91 integer Qnetindex , EmPmRindex
92 parameter( Qnetindex = 5, EmPmRindex = 6 )
93 integer dQdTindex , Qswindex
94 parameter( dQdTindex = 7, Qswindex = 8 )
95
96 C The follwing values define the forcing file content.
97 C Each file can have a different frequency of forcing
98 C and they can contain more records than necessary.
99 C But at least as much as required by startTime and endTime of model
100 C must be in the file.
101 C
102 C fstarttime : time of first record on file
103 C fendtime : time of lasst record on file
104 C finterval : time interval between two records
105 C factrec : record number of forcing field currently in dot file
106
107 _RS fstarttime(maxforcing)
108 _RS finterval (maxforcing)
109 _RS fendtime (maxforcing)
110
111 integer factrec (2,maxforcing)
112 INTEGER fuHandle
113 INTEGER fvHandle
114 INTEGER SSTHandle
115 INTEGER SSSHandle
116 INTEGER QnetHandle
117 INTEGER EmPmRHandle
118 INTEGER dQdTHandle
119 INTEGER QswHandle
120
121 common /forcing_rs/ fstarttime, finterval, fendtime
122
123 common /forcing_in/ factrec
124 & , fuHandle, fvHandle
125 & , SSTHandle, SSSHandle
126 & , QnetHandle,EmPmRHandle
127 & , dQdTHandle, QswHandle
128
129 #endif

  ViewVC Help
Powered by ViewVC 1.1.22