forked from GEOS-ESM/FVdycoreCubed_GridComp
-
Notifications
You must be signed in to change notification settings - Fork 5
/
DynCore_GridCompMod.F90
8665 lines (7432 loc) · 348 KB
/
DynCore_GridCompMod.F90
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
! $id: DynCore_GridCompMod.F90,v 1.1.1.1 2007/05/29 12:26:20 atrayanov Exp $
#include "MAPL_Generic.h"
!#define SCALAR_WINDS
!#define INC_WINDS
!-----------------------------------------------------------------------
! ESMA - Earth System Modeling Applications
!-----------------------------------------------------------------------
Module FVdycoreCubed_GridComp
!BOP
!
! !MODULE: FVdycoreCubed_GridComp --- Dynamical Core Grid Component
!
! !USES:
use ESMF ! ESMF base class
use MAPL ! GEOS base class
use m_set_eta, only: set_eta
! FV Specific Module
use fv_arrays_mod, only: REAL4, REAL8, FVPRC
!use fv_grid_tools_mod, only: grid_type
use FV_StateMod, only : FV_Atm, &
FV_To_State, State_To_FV, DEBUG_FV_STATE, &
DynTracers => T_TRACERS, &
DynVars => T_FVDYCORE_VARS, &
DynGrid => T_FVDYCORE_GRID, &
DynState => T_FVDYCORE_STATE, &
DynSetup => FV_Setup, &
DynInit => FV_InitState, &
DynRun => FV_Run, &
DynFinalize => FV_Finalize, &
getAgridWinds => INTERP_DGRID_TO_AGRID, &
fillMassFluxes => fv_fillMassFluxes, &
computeMassFluxes => fv_computeMassFluxes,&
getVerticalMassFlux => fv_getVerticalMassFlux,&
getOmega => fv_getOmega, &
getPK => fv_getPK, &
getVorticity => fv_getVorticity, &
getDivergence => fv_getdivergence, &
getEPV => fv_getEPV, &
getPKZ => fv_getPKZ, &
getDELZ => fv_getDELZ, &
getQ => fv_getQ, &
Agrid_To_Native => INTERP_AGRID_TO_DGRID, &
DYN_COLDSTART => COLDSTART, &
DYN_CASE => CASE_ID, &
DYN_DEBUG => DEBUG, &
HYDROSTATIC => FV_HYDROSTATIC, &
fv_getUpdraftHelicity, &
ADIABATIC, SW_DYNAMICS, AdvCore_Advection
use m_topo_remap, only: dyn_topo_remap
use CubeGridPrototype, only: register_grid_and_regridders
! !PUBLIC MEMBER FUNCTIONS:
implicit none
private
! Include the MPI library definitons:
include 'mpif.h'
type(ESMF_FieldBundle), save :: bundleAdv
integer :: NXQ = 0
logical :: overwrite_Q = .true.
public SetServices ! Register component methods
! !DESCRIPTION: This module implements the Dynamical Core as
! an ESMF gridded component.
!
! \paragraph*{Overview}
!
! This module contains an ESMF wrapper for a generic
! Dynamical Core.
!
! \paragraph*{Internal State}
!
! FVdycore maintains an internal state consisting of the
! following fields: control variables
!
! \begin{itemize}
! \item {\tt U}: U winds on the native grid (m/s)
! \item {\tt V}: V winds on the native grid (m/s)
! \item {\tt PT}: Dry Potential Temperature (T/PKZ)
! \item {\tt PE}: Edge pressures
! \item {\tt Q}: Tracers
! \item {\tt PKZ}: Consistent mean for p$^\kappa$
! \item {\tt DZ}: Height thickness (Non-Hydrostatic)
! \end{itemize}
!
! as well as a GRID (to be mentioned later)
! and same additional run-specific variables
!
! Note: {\tt PT} is not updated if the flag {\tt CONVT} is true.
!
! The internal state is updated each time FVdycore is called.
!
! \paragraph*{Import State}
!
! The import state consists of the tendencies of the
! control variables plus the surface geopotential heights:
!
! \begin{itemize}
! \item {\tt DUDT}: U wind tendency on a A-grid (m/s)
! \item {\tt DVDT}: V wind tendency on a A-grid (m/s)
! \item {\tt DTDT}: Delta-pressure-weighted temperature tendency
! \item {\tt DPEDT}: Edge pressure tendency
! \item {\tt PHIS}: Surface Geopotential Heights
! \item {\tt DWDT}: V wind tendency on a A-grid (m/s)
! \end{itemize}
!
! These are by definition on an A-grid and have an XY
! domain decomposition.
!
! \paragraph*{Export State}
!
! The export state can provide the following variables:
!
! \begin{itemize}
! \item {\tt U}: U winds on a A-grid (m/s) [Lat-Lon Oriented Flow]
! \item {\tt V}: V winds on a A-grid (m/s) [Lat-Lon Oriented Flow]
! \item {\tt U\_AGRID}: U winds on a A-grid (m/s)
! \item {\tt V\_AGRID}: V winds on a A-grid (m/s)
! \item {\tt U\_CGRID}: U winds on a C-grid (m/s)
! \item {\tt V\_CGRID}: V winds on a C-grid (m/s)
! \item {\tt U\_DGRID}: U winds on a D-grid (m/s)
! \item {\tt V\_DGRID}: V winds on a D-grid (m/s)
! \item {\tt T}: Temperature (K)
! \item {\tt Q}: Tracers
! \item {\tt TH}: Potential Temperature (K)
! \item {\tt ZL}: Mid-Layer Heights (m)
! \item {\tt ZLE}: Edge Heights (m)
! \item {\tt PLE}: Edge pressures (Pa)
! \item {\tt PLK}: P$^\kappa$ at Mid-Layers
! \item {\tt PKE}: P$^\kappa$ at Edges
! \item {\tt OMEGA}: Vertical pressure velocity (pa/s)
! \item {\tt PV}: Ertel's Potential Vorticity (m$^2$ / kg*s)
! \item {\tt DUDT}: U-wind Tendency (m/s/s)
! \item {\tt DVDT}: V-wind Tendency (m/s/s)
! \item {\tt DTDT}: Mass-Weighted Temperature Tendency (Pa K/s)
! \end{itemize}
!
! All variables are on an A-grid with points at the poles, and have an XY decomposition.
!
! \paragraph*{Grids and Decompositions}
!
! The current version supports only a 1D latitude-based
! decomposition of the domain (with OMP task-parallelism
! in the vertical, resulting in reasonable scalability
! on large PE configurations). In the near future it will
! support a 2D domain decomposition, in which import and
! export state are decomposed in longitude and latitude,
! while the internal state (for the most part) is
! decomposed in latitude and level. When needed,
! the data is redistributed (``transposed'') internally.
!
! There are two fundamental ESMF grids in use;
! \begin{itemize}
! \item {GRIDXY}: longitude-latitude ESMF grid (public)
! \item {GRIDYZ}: A latitude-level cross-sectional
! decomposition (private to this module)
! \end{itemize}
!
! PILGRIM will be used for communication until ESMF has
! sufficient functionality and performance to take over
! the task. The use of pilgrim requires a call to
! {\tt INIT\_SPMD} to set SPMD parameters, decompositions,
! etc.
!
! \paragraph*{Required Files}
!
! The following files are needed for a standard restart run:
!
! \begin{itemize}
! \item Layout file
! \begin{itemize}
! \item {\tt nprxy\_x, nprxy\_y, npryz\_y, npryz\_z}:
! process dimensions in XY and YZ.
! \item {\tt imxy, jmxy, jmyz, kmyz}: distributions for XY and YZ
! \item {\tt iord, jord}: the order of the lon. and lat. algorithms
! \item {\tt dtime}: The large (advection) time step
! \item {\tt nsplit}: the ratio between the large and small time step
! (possibly zero for automatic determination),
! \end{itemize}
! \item Restart file
! \begin{itemize}
! \item date in standard format yy, mm, dd, hh, mm, ss
! \item dimensions im, jm, km, nq
! \item control variables {\tt U, V, PT, PE, Q}
! \end{itemize}
! \item Topography file
!
! \end{itemize}
!
! \paragraph*{Future Additions}
!
! \begin{itemize}
! \item Conservation of energy (CONSV == .TRUE. )
! \item 2D decomposition (requires transposes in the coupler)
! \item Use r8 instead of r4 (currently supported in StopGap)
! \end{itemize}
!
!EOP
!
! !REVISION HISTORY:
!
! 11Jul2003 Sawyer From Trayanov/da Silva EVAC
! 23Jul2003 Sawyer First informal tiptoe-through
! 29Jul2003 Sawyer Modifications based on comments from 23Jul2003
! 28Aug2003 Sawyer First check-in; Internal state to D-grid
! 15Sep2003 Sawyer Extensive bug fixes, revisions
! 24Sep2003 Sawyer Modified names; corrected weighting of T, Q
! 22Oct2003 Sawyer pmgrid removed (data now in spmd\_dyn)
! 25Nov2003 Sawyer Optimization for 1D decomposition
! 03Dec2003 Sawyer Switched over to specified decompositions
! 04Dec2003 Sawyer Moved T_FVDYCORE_GRID to dynamics_vars
! 21Jan2004 Takacs Modified Import/Export, Added Generic State, Added TOPO utility
! 20Sep2004 Sawyer Revised cd_core, trac2d interfaces, refactoring
! 06Oct2004 Sawyer More refactoring, removed spmd_dyn
! 17Feb2005 Sawyer Added Ertel's potential vorticity to diagnostics
! 20Mar2005 Sawyer Tracers are now pointers into import state
! 12Apr2005 Sawyer Extensive changes to minimize tracer memory
! 18May2005 Sawyer Put FVdycore_wrapper in separate file; CAM/GEOS5 merge
! 16Nov2005 Takacs Added option for DCADJ, Merge with Daedalus_p5
! 18Jan2006 Putman Added mass fluxes to export state
! 24Jul2012 Todling Revisit intermittent replay (corrections for cubed)
!
!----------------------------------------------------------------------
integer, parameter :: r8 = REAL8
integer, parameter :: r4 = REAL4
real(r4), parameter :: RADIUS = MAPL_RADIUS
real(r4), parameter :: CP = MAPL_CP
real(r4), parameter :: PI = MAPL_PI_R8
real(r4), parameter :: OMEGA = MAPL_OMEGA
real(r4), parameter :: KAPPA = MAPL_KAPPA
real(r4), parameter :: P00 = MAPL_P00
real(r4), parameter :: GRAV = MAPL_GRAV
real(r4), parameter :: RGAS = MAPL_RGAS
real(r4), parameter :: RVAP = MAPL_RVAP
real(r4), parameter :: EPS = RVAP/RGAS-1.0
integer, parameter :: TIME_TO_RUN = 1
integer, parameter :: CHECK_MAXMIN = 2
integer :: I, J, K ! Default declaration for loops.
! Tracer I/O History stuff
! -------------------------------------
integer, parameter :: nlevs=5
integer, parameter :: ntracers=11
integer :: nlev, ntracer
integer :: plevs(nlevs)
character(len=ESMF_MAXSTR) :: myTracer
data plevs /850,700,600,500,300/
! Wrapper for extracting internal state
! -------------------------------------
type DYN_wrap
type (DynState), pointer :: DYN_STATE
end type DYN_wrap
interface addTracer
module procedure addTracer_r4
module procedure addTracer_r8
end interface
interface Write_Profile
module procedure Write_Profile_R4
module procedure Write_Profile_R8
module procedure Write_Profile_2d_R4
module procedure Write_Profile_2d_R8
end interface
real(kind=8) :: t1, t2
real(kind=8) :: dyn_run_timer
contains
!----------------------------------------------------------------------
!BOP
!
! !IROUTINE: SetServices
! !DESCRIPTION: SetServices registers Initialize, Run, and Finalize
! methods for FV. Two stages of the FV run method are registered. The
! first one does the dynamics calculations, and the second adds
! increments from external sources that appear in the Import state.
! SetServices also creates a private internal state in which FV
! keeps invariant or auxilliary state variables, as well as pointers to
! the true state variables. The MAPL internal state contains the
! true state variables and is managed by MAPL.
!
! The component uses all three states (Import, Export
! and Internal), in addition to a Private (non-ESMF) Internal state. All
! three are managed by MAPL.
!
! The Private Internal state contains invariant
! quantities defined by an FV specific routine, as well as pointers
! to the true state variables, kept in the MAPL Internal state.
! The MAPL Internal is kept at FV's real*8 precision.
!
! The Import State conatins tendencies to be added in the second
! run stage, the geopotential at the lower boundary, and a bundle
! of Friendly tracers to be advected. The Import and Export states
! are both at the default precision.
!
!
!
! !INTERFACE:
Subroutine SetServices ( gc, rc )
! !ARGUMENTS:
type(ESMF_GridComp), intent(inout) :: gc ! gridded component
integer, intent(out), optional :: rc ! return code
! !DESCRIPTION: Set services (register) for the FVCAM Dynamical Core
! Grid Component.
!
!EOP
!----------------------------------------------------------------------
type (DynState), pointer :: dyn_internal_state
type (DYN_wrap) :: wrap
integer :: FV3_STANDALONE
integer :: status
character(len=ESMF_MAXSTR) :: IAm
character(len=ESMF_MAXSTR) :: COMP_NAME
type (ESMF_Config) :: CF
type (ESMF_VM) :: VM
type (MAPL_MetaComp), pointer :: MAPL
character (len=ESMF_MAXSTR) :: LAYOUT_FILE
! Get the configuration from the component
!-----------------------------------------
call ESMF_GridCompGet( GC, CONFIG = CF, RC=STATUS )
call ESMF_GridCompGet( GC, name=COMP_NAME, RC=STATUS )
VERIFY_(STATUS)
Iam = trim(COMP_NAME) // "SetServices"
call ESMF_VMGetCurrent(VM, rc=STATUS)
VERIFY_(STATUS)
call MAPL_MemUtilsWrite(VM, trim(IAm)//': Begin', RC=STATUS )
VERIFY_(STATUS)
! Allocate this instance of the internal state and put it in wrapper.
! -------------------------------------------------------------------
allocate( dyn_internal_state, stat=status )
VERIFY_(STATUS)
wrap%dyn_state => dyn_internal_state
! Save pointer to the wrapped internal state in the GC
! ----------------------------------------------------
call ESMF_UserCompSetInternalState ( GC,'DYNstate',wrap,status )
VERIFY_(STATUS)
!BOS
call MAPL_AddImportSpec ( gc, &
SHORT_NAME = 'DUDT', &
LONG_NAME = 'eastward_wind_tendency', &
UNITS = 'm s-2', &
DIMS = MAPL_DimsHorzVert, &
FIELD_TYPE = MAPL_VectorField, &
VLOCATION = MAPL_VLocationCenter, RC=STATUS )
VERIFY_(STATUS)
call MAPL_AddImportSpec ( gc, &
SHORT_NAME = 'DVDT', &
LONG_NAME = 'northward_wind_tendency', &
UNITS = 'm s-2', &
DIMS = MAPL_DimsHorzVert, &
FIELD_TYPE = MAPL_VectorField, &
VLOCATION = MAPL_VLocationCenter, RC=STATUS )
VERIFY_(STATUS)
call MAPL_AddImportSpec ( gc, &
SHORT_NAME = 'DWDT', &
LONG_NAME = 'vertical_velocity_tendency', &
UNITS = 'm s-2', &
DIMS = MAPL_DimsHorzVert, &
FIELD_TYPE = MAPL_VectorField, &
VLOCATION = MAPL_VLocationCenter, RC=STATUS )
VERIFY_(STATUS)
call MAPL_AddImportSpec ( gc, &
SHORT_NAME = 'DTDT', &
LONG_NAME = 'delta-p_weighted_temperature_tendency', &
UNITS = 'Pa K s-1', &
DIMS = MAPL_DimsHorzVert, &
VLOCATION = MAPL_VLocationCenter, RC=STATUS )
VERIFY_(STATUS)
call MAPL_AddImportSpec ( gc, &
SHORT_NAME = 'DQVANA', &
LONG_NAME = 'specific_humidity_increment_from_analysis', &
UNITS = 'kg kg-1', &
DIMS = MAPL_DimsHorzVert, &
VLOCATION = MAPL_VLocationCenter, RC=STATUS )
VERIFY_(STATUS)
call MAPL_AddImportSpec ( gc, &
SHORT_NAME = 'DQLANA', &
LONG_NAME = 'specific_humidity_liquid_increment_from_analysis', &
UNITS = 'kg kg-1', &
DIMS = MAPL_DimsHorzVert, &
VLOCATION = MAPL_VLocationCenter, RC=STATUS )
VERIFY_(STATUS)
call MAPL_AddImportSpec ( gc, &
SHORT_NAME = 'DQIANA', &
LONG_NAME = 'specific_humidity_ice_increment_from_analysis', &
UNITS = 'kg kg-1', &
DIMS = MAPL_DimsHorzVert, &
VLOCATION = MAPL_VLocationCenter, RC=STATUS )
VERIFY_(STATUS)
call MAPL_AddImportSpec ( gc, &
SHORT_NAME = 'DQRANA', &
LONG_NAME = 'specific_humidity_rain_increment_from_analysis', &
UNITS = 'kg kg-1', &
DIMS = MAPL_DimsHorzVert, &
VLOCATION = MAPL_VLocationCenter, RC=STATUS )
VERIFY_(STATUS)
call MAPL_AddImportSpec ( gc, &
SHORT_NAME = 'DQSANA', &
LONG_NAME = 'specific_humidity_snow_increment_from_analysis', &
UNITS = 'kg kg-1', &
DIMS = MAPL_DimsHorzVert, &
VLOCATION = MAPL_VLocationCenter, RC=STATUS )
VERIFY_(STATUS)
call MAPL_AddImportSpec ( gc, &
SHORT_NAME = 'DQGANA', &
LONG_NAME = 'specific_humidity_graupel_increment_from_analysis', &
UNITS = 'kg kg-1', &
DIMS = MAPL_DimsHorzVert, &
VLOCATION = MAPL_VLocationCenter, RC=STATUS )
VERIFY_(STATUS)
call MAPL_AddImportSpec ( gc, &
SHORT_NAME = 'DOXANA', &
LONG_NAME = 'ozone_increment_from_analysis', &
UNITS = 'kg kg-1', &
DIMS = MAPL_DimsHorzVert, &
VLOCATION = MAPL_VLocationCenter, RC=STATUS )
VERIFY_(STATUS)
call MAPL_AddImportSpec ( gc, &
SHORT_NAME = 'DPEDT', &
LONG_NAME = 'edge_pressure_tendency', &
UNITS = 'Pa s-1', &
DIMS = MAPL_DimsHorzVert, &
VLOCATION = MAPL_VLocationEdge, RC=STATUS )
VERIFY_(STATUS)
call MAPL_AddImportSpec ( gc, &
SHORT_NAME = 'PHIS', &
LONG_NAME = 'surface_geopotential_height', &
UNITS = 'm+2 s-2', &
DIMS = MAPL_DimsHorzOnly, &
VLOCATION = MAPL_VLocationNone, RC=STATUS )
VERIFY_(STATUS)
call MAPL_AddImportSpec( gc, &
SHORT_NAME = 'TRADV', &
LONG_NAME = 'advected_quantities', &
UNITS = 'unknown', &
DATATYPE = MAPL_BundleItem, &
RC=STATUS )
VERIFY_(STATUS)
! !EXPORT STATE:
call MAPL_AddExportSpec ( gc, &
SHORT_NAME = 'KE', &
LONG_NAME = 'vertically_integrated_kinetic_energy', &
UNITS = 'J m-2' , &
DIMS = MAPL_DimsHorzOnly, &
VLOCATION = MAPL_VLocationNone, RC=STATUS )
VERIFY_(STATUS)
call MAPL_AddExportSpec ( gc, &
SHORT_NAME = 'TAVE', &
LONG_NAME = 'vertically_averaged_dry_temperature', &
UNITS = 'K', &
DIMS = MAPL_DimsHorzOnly, &
VLOCATION = MAPL_VLocationNone, RC=STATUS )
VERIFY_(STATUS)
call MAPL_AddExportSpec ( gc, &
SHORT_NAME = 'UAVE', &
LONG_NAME = 'vertically_averaged_zonal_wind', &
UNITS = 'm sec-1', &
DIMS = MAPL_DimsHorzOnly, &
FIELD_TYPE = MAPL_VectorField, &
VLOCATION = MAPL_VLocationNone, RC=STATUS )
VERIFY_(STATUS)
call MAPL_AddExportSpec ( gc, &
SHORT_NAME = 'KEPHY', &
LONG_NAME = 'vertically_integrated_kinetic_energy_tendency_due_to_physics', &
UNITS = 'W m-2', &
DIMS = MAPL_DimsHorzOnly, &
VLOCATION = MAPL_VLocationNone, RC=STATUS )
VERIFY_(STATUS)
call MAPL_AddExportSpec ( gc, &
SHORT_NAME = 'PEPHY', &
LONG_NAME = 'total_potential_energy_tendency_due_to_physics', &
UNITS = 'W m-2', &
DIMS = MAPL_DimsHorzOnly, &
VLOCATION = MAPL_VLocationNone, RC=STATUS )
VERIFY_(STATUS)
call MAPL_AddExportSpec ( gc, &
SHORT_NAME = 'TEPHY', &
LONG_NAME = 'mountain_work_tendency_due_to_physics', &
UNITS = 'W m-2', &
DIMS = MAPL_DimsHorzOnly, &
VLOCATION = MAPL_VLocationNone, RC=STATUS )
VERIFY_(STATUS)
call MAPL_AddExportSpec ( gc, &
SHORT_NAME = 'KEANA', &
LONG_NAME = 'total_kinetic_energy_tendency_due_to_analysis', &
UNITS = 'W m-2', &
DIMS = MAPL_DimsHorzOnly, &
VLOCATION = MAPL_VLocationNone, RC=STATUS )
VERIFY_(STATUS)
call MAPL_AddExportSpec ( gc, &
SHORT_NAME = 'PEANA', &
LONG_NAME = 'total_potential_energy_tendency_due_to_analysis', &
UNITS = 'W m-2', &
DIMS = MAPL_DimsHorzOnly, &
VLOCATION = MAPL_VLocationNone, RC=STATUS )
VERIFY_(STATUS)
call MAPL_AddExportSpec ( gc, &
SHORT_NAME = 'TEANA', &
LONG_NAME = 'mountain_work_tendency_due_to_analysis', &
UNITS = 'W m-2', &
DIMS = MAPL_DimsHorzOnly, &
VLOCATION = MAPL_VLocationNone, RC=STATUS )
VERIFY_(STATUS)
call MAPL_AddExportSpec ( gc, &
SHORT_NAME = 'KEHOT', &
LONG_NAME = 'vertically_integrated_kinetic_energy_tendency_due_to_HOT', &
UNITS = 'W m-2', &
DIMS = MAPL_DimsHorzOnly, &
VLOCATION = MAPL_VLocationNone, RC=STATUS )
VERIFY_(STATUS)
call MAPL_AddExportSpec ( gc, &
SHORT_NAME = 'KEDP', &
LONG_NAME = 'vertically_integrated_kinetic_energy_tendency_due_to_pressure_change', &
UNITS = 'W m-2', &
DIMS = MAPL_DimsHorzOnly, &
VLOCATION = MAPL_VLocationNone, RC=STATUS )
VERIFY_(STATUS)
call MAPL_AddExportSpec ( gc, &
SHORT_NAME = 'KEADV', &
LONG_NAME = 'vertically_integrated_kinetic_energy_tendency_due_to_dynamics_advection', &
UNITS = 'W m-2', &
DIMS = MAPL_DimsHorzOnly, &
VLOCATION = MAPL_VLocationNone, RC=STATUS )
VERIFY_(STATUS)
call MAPL_AddExportSpec ( gc, &
SHORT_NAME = 'KEPG', &
LONG_NAME = 'vertically_integrated_kinetic_energy_tendency_due_to_pressure_gradient', &
UNITS = 'W m-2', &
DIMS = MAPL_DimsHorzOnly, &
VLOCATION = MAPL_VLocationNone, RC=STATUS )
VERIFY_(STATUS)
call MAPL_AddExportSpec ( gc, &
SHORT_NAME = 'KEDYN', &
LONG_NAME = 'vertically_integrated_kinetic_energy_tendency_due_to_dynamics', &
UNITS = 'W m-2', &
DIMS = MAPL_DimsHorzOnly, &
VLOCATION = MAPL_VLocationNone, RC=STATUS )
VERIFY_(STATUS)
call MAPL_AddExportSpec ( gc, &
SHORT_NAME = 'PEDYN', &
LONG_NAME = 'vertically_integrated_potential_energy_tendency_due_to_dynamics', &
UNITS = 'W m-2', &
DIMS = MAPL_DimsHorzOnly, &
VLOCATION = MAPL_VLocationNone, RC=STATUS )
VERIFY_(STATUS)
call MAPL_AddExportSpec ( gc, &
SHORT_NAME = 'TEDYN', &
LONG_NAME = 'mountain_work_tendency_due_to_dynamics', &
UNITS = 'W m-2', &
DIMS = MAPL_DimsHorzOnly, &
VLOCATION = MAPL_VLocationNone, RC=STATUS )
VERIFY_(STATUS)
call MAPL_AddExportSpec ( gc, &
SHORT_NAME = 'KECDCOR', &
LONG_NAME = 'vertically_integrated_kinetic_energy_tendency_due_to_cdcore', &
UNITS = 'W m-2', &
DIMS = MAPL_DimsHorzOnly, &
VLOCATION = MAPL_VLocationNone, RC=STATUS )
VERIFY_(STATUS)
call MAPL_AddExportSpec ( gc, &
SHORT_NAME = 'PECDCOR', &
LONG_NAME = 'vertically_integrated_potential_energy_tendency_due_to_cdcore', &
UNITS = 'W m-2', &
DIMS = MAPL_DimsHorzOnly, &
VLOCATION = MAPL_VLocationNone, RC=STATUS )
VERIFY_(STATUS)
call MAPL_AddExportSpec ( gc, &
SHORT_NAME = 'TECDCOR', &
LONG_NAME = 'mountain_work_tendency_due_to_cdcore', &
UNITS = 'W m-2', &
DIMS = MAPL_DimsHorzOnly, &
VLOCATION = MAPL_VLocationNone, RC=STATUS )
VERIFY_(STATUS)
call MAPL_AddExportSpec ( gc, &
SHORT_NAME = 'QFIXER', &
LONG_NAME = 'vertically_integrated_potential_energy_tendency_due_to_CONSV', &
UNITS = 'W m-2', &
DIMS = MAPL_DimsHorzOnly, &
VLOCATION = MAPL_VLocationNone, RC=STATUS )
VERIFY_(STATUS)
call MAPL_AddExportSpec ( gc, &
SHORT_NAME = 'KEREMAP', &
LONG_NAME = 'vertically_integrated_kinetic_energy_tendency_due_to_remap', &
UNITS = 'W m-2', &
DIMS = MAPL_DimsHorzOnly, &
VLOCATION = MAPL_VLocationNone, RC=STATUS )
VERIFY_(STATUS)
call MAPL_AddExportSpec ( gc, &
SHORT_NAME = 'PEREMAP', &
LONG_NAME = 'vertically_integrated_potential_energy_tendency_due_to_remap', &
UNITS = 'W m-2', &
DIMS = MAPL_DimsHorzOnly, &
VLOCATION = MAPL_VLocationNone, RC=STATUS )
VERIFY_(STATUS)
call MAPL_AddExportSpec ( gc, &
SHORT_NAME = 'TEREMAP', &
LONG_NAME = 'mountain_work_tendency_due_to_remap', &
UNITS = 'W m-2', &
DIMS = MAPL_DimsHorzOnly, &
VLOCATION = MAPL_VLocationNone, RC=STATUS )
VERIFY_(STATUS)
call MAPL_AddExportSpec ( gc, &
SHORT_NAME = 'KEGEN', &
LONG_NAME = 'vertically_integrated_generation_of_kinetic_energy', &
UNITS = 'W m-2', &
DIMS = MAPL_DimsHorzOnly, &
VLOCATION = MAPL_VLocationNone, RC=STATUS )
VERIFY_(STATUS)
call MAPL_AddExportSpec ( gc, &
SHORT_NAME = 'DKERESIN', &
LONG_NAME = 'vertically_integrated_kinetic_energy_residual_from_inertial_terms', &
UNITS = 'W m-2', &
DIMS = MAPL_DimsHorzOnly, &
VLOCATION = MAPL_VLocationNone, RC=STATUS )
VERIFY_(STATUS)
call MAPL_AddExportSpec ( gc, &
SHORT_NAME = 'DKERESPG', &
LONG_NAME = 'vertically_integrated_kinetic_energy_residual_from_PG_terms', &
UNITS = 'W m-2', &
DIMS = MAPL_DimsHorzOnly, &
VLOCATION = MAPL_VLocationNone, RC=STATUS )
VERIFY_(STATUS)
call MAPL_AddExportSpec ( gc, &
SHORT_NAME = 'DMDTANA', &
LONG_NAME = 'vertically_integrated_mass_tendency_due_to_analysis', &
UNITS = 'kg m-2 s-1', &
DIMS = MAPL_DimsHorzOnly, &
VLOCATION = MAPL_VLocationNone, RC=STATUS )
VERIFY_(STATUS)
call MAPL_AddExportSpec ( gc, &
SHORT_NAME = 'DOXDTANAINT', &
LONG_NAME = 'vertically_integrated_ozone_tendency_due_to_analysis', &
UNITS = 'kg m-2 s-1', &
DIMS = MAPL_DimsHorzOnly, &
VLOCATION = MAPL_VLocationNone, RC=STATUS )
VERIFY_(STATUS)
call MAPL_AddExportSpec ( gc, &
SHORT_NAME = 'DQVDTANAINT', &
LONG_NAME = 'vertically_integrated_water_vapor_tendency_due_to_analysis', &
UNITS = 'kg m-2 s-1', &
DIMS = MAPL_DimsHorzOnly, &
VLOCATION = MAPL_VLocationNone, RC=STATUS )
VERIFY_(STATUS)
call MAPL_AddExportSpec ( gc, &
SHORT_NAME = 'DQLDTANAINT', &
LONG_NAME = 'vertically_integrated_liquid_water_tendency_due_to_analysis', &
UNITS = 'kg m-2 s-1', &
DIMS = MAPL_DimsHorzOnly, &
VLOCATION = MAPL_VLocationNone, RC=STATUS )
VERIFY_(STATUS)
call MAPL_AddExportSpec ( gc, &
SHORT_NAME = 'DQIDTANAINT', &
LONG_NAME = 'vertically_integrated_ice_water_tendency_due_to_analysis', &
UNITS = 'kg m-2 s-1', &
DIMS = MAPL_DimsHorzOnly, &
VLOCATION = MAPL_VLocationNone, RC=STATUS )
VERIFY_(STATUS)
call MAPL_AddExportSpec ( gc, &
SHORT_NAME = 'DMDTDYN', &
LONG_NAME = 'vertically_integrated_mass_tendency_due_to_dynamics', &
UNITS = 'kg m-2 s-1', &
DIMS = MAPL_DimsHorzOnly, &
VLOCATION = MAPL_VLocationNone, RC=STATUS )
VERIFY_(STATUS)
call MAPL_AddExportSpec ( gc, &
SHORT_NAME = 'DOXDTDYNINT', &
LONG_NAME = 'vertically_integrated_ozone_tendency_due_to_dynamics', &
UNITS = 'kg m-2 s-1', &
DIMS = MAPL_DimsHorzOnly, &
VLOCATION = MAPL_VLocationNone, RC=STATUS )
VERIFY_(STATUS)
call MAPL_AddExportSpec ( gc, &
SHORT_NAME = 'DTHVDTDYNINT', &
LONG_NAME = 'vertically_integrated_THV_tendency_due_to_dynamics', &
UNITS = 'K kg m-2 s-1', &
DIMS = MAPL_DimsHorzOnly, &
VLOCATION = MAPL_VLocationNone, RC=STATUS )
VERIFY_(STATUS)
call MAPL_AddExportSpec ( gc, &
SHORT_NAME = 'DTHVDTREMAP', &
LONG_NAME = 'vertically_integrated_THV_tendency_due_to_vertical_remapping', &
UNITS = 'K kg m-2 s-1', &
DIMS = MAPL_DimsHorzOnly, &
VLOCATION = MAPL_VLocationNone, RC=STATUS )
VERIFY_(STATUS)
call MAPL_AddExportSpec ( gc, &
SHORT_NAME = 'DTHVDTCONSV', &
LONG_NAME = 'vertically_integrated_THV_tendency_due_to_TE_conservation', &
UNITS = 'K kg m-2 s-1', &
DIMS = MAPL_DimsHorzOnly, &
VLOCATION = MAPL_VLocationNone, RC=STATUS )
VERIFY_(STATUS)
call MAPL_AddExportSpec ( gc, &
SHORT_NAME = 'DTHVDTPHYINT', &
LONG_NAME = 'vertically_integrated_THV_tendency_due_to_physics', &
UNITS = 'K kg m-2 s-1', &
DIMS = MAPL_DimsHorzOnly, &
VLOCATION = MAPL_VLocationNone, RC=STATUS )
VERIFY_(STATUS)
call MAPL_AddExportSpec ( gc, &
SHORT_NAME = 'DTHVDTANAINT', &
LONG_NAME = 'vertically_integrated_THV_tendency_due_to_analysis', &
UNITS = 'K kg m-2 s-1', &
DIMS = MAPL_DimsHorzOnly, &
VLOCATION = MAPL_VLocationNone, RC=STATUS )
VERIFY_(STATUS)
call MAPL_AddExportSpec ( gc, &
SHORT_NAME = 'DQVDTDYNINT', &
LONG_NAME = 'vertically_integrated_water_vapor_tendency_due_to_dynamics', &
UNITS = 'kg m-2 s-1', &
DIMS = MAPL_DimsHorzOnly, &
VLOCATION = MAPL_VLocationNone, RC=STATUS )
VERIFY_(STATUS)
call MAPL_AddExportSpec ( gc, &
SHORT_NAME = 'DQLDTDYNINT', &
LONG_NAME = 'vertically_integrated_liquid_water_tendency_due_to_dynamics', &
UNITS = 'kg m-2 s-1', &
DIMS = MAPL_DimsHorzOnly, &
VLOCATION = MAPL_VLocationNone, RC=STATUS )
VERIFY_(STATUS)
call MAPL_AddExportSpec ( gc, &
SHORT_NAME = 'DQIDTDYNINT', &
LONG_NAME = 'vertically_integrated_ice_water_tendency_due_to_dynamics', &
UNITS = 'kg m-2 s-1', &
DIMS = MAPL_DimsHorzOnly, &
VLOCATION = MAPL_VLocationNone, RC=STATUS )
VERIFY_(STATUS)
call MAPL_AddExportSpec ( gc, &
SHORT_NAME = 'CONVKE', &
LONG_NAME = 'vertically_integrated_kinetic_energy_convergence', &
UNITS = 'W m-2', &
DIMS = MAPL_DimsHorzOnly, &
VLOCATION = MAPL_VLocationCenter, RC=STATUS )
VERIFY_(STATUS)
call MAPL_AddExportSpec ( gc, &
SHORT_NAME = 'CONVTHV', &
LONG_NAME = 'vertically_integrated_thetav_convergence', &
UNITS = 'W m-2', &
DIMS = MAPL_DimsHorzOnly, &
VLOCATION = MAPL_VLocationCenter, RC=STATUS )
VERIFY_(STATUS)
call MAPL_AddExportSpec ( gc, &
SHORT_NAME = 'CONVCPT', &
LONG_NAME = 'vertically_integrated_enthalpy_convergence', &
UNITS = 'W m-2', &
DIMS = MAPL_DimsHorzOnly, &
VLOCATION = MAPL_VLocationCenter, RC=STATUS )
VERIFY_(STATUS)
call MAPL_AddExportSpec ( gc, &
SHORT_NAME = 'CONVPHI', &
LONG_NAME = 'vertically_integrated_geopotential_convergence', &
UNITS = 'W m-2', &
DIMS = MAPL_DimsHorzOnly, &
VLOCATION = MAPL_VLocationCenter, RC=STATUS )
VERIFY_(STATUS)
call MAPL_AddExportSpec ( gc, &
SHORT_NAME = 'U', &
LONG_NAME = 'eastward_wind', &
UNITS = 'm s-1', &
DIMS = MAPL_DimsHorzVert, &
FIELD_TYPE = MAPL_VectorField, &
VLOCATION = MAPL_VLocationCenter, RC=STATUS )
VERIFY_(STATUS)
call MAPL_AddExportSpec ( gc, &
SHORT_NAME = 'V', &
LONG_NAME = 'northward_wind', &
UNITS = 'm s-1', &
DIMS = MAPL_DimsHorzVert, &
FIELD_TYPE = MAPL_VectorField, &
VLOCATION = MAPL_VLocationCenter, RC=STATUS )
VERIFY_(STATUS)
call MAPL_AddExportSpec ( gc, &
SHORT_NAME = 'T', &
LONG_NAME = 'air_temperature', &
UNITS = 'K', &
DIMS = MAPL_DimsHorzVert, &
VLOCATION = MAPL_VLocationCenter, RC=STATUS )
VERIFY_(STATUS)
call MAPL_AddExportSpec ( gc, &
SHORT_NAME = 'PL', &
LONG_NAME = 'mid_level_pressure', &
UNITS = 'Pa', &
DIMS = MAPL_DimsHorzVert, &
VLOCATION = MAPL_VLocationCenter, RC=STATUS )
VERIFY_(STATUS)
call MAPL_AddExportSpec ( gc, &
SHORT_NAME = 'ZLE', &
LONG_NAME = 'edge_heights', &
UNITS = 'm', &
DIMS = MAPL_DimsHorzVert, &
VLOCATION = MAPL_VLocationEdge, RC=STATUS )
VERIFY_(STATUS)
call MAPL_AddExportSpec ( gc, &
SHORT_NAME = 'ZL', &
LONG_NAME = 'mid_layer_heights', &
UNITS = 'm', &
DIMS = MAPL_DimsHorzVert, &
VLOCATION = MAPL_VLocationCenter, RC=STATUS )
VERIFY_(STATUS)
call MAPL_AddExportSpec ( gc, &
SHORT_NAME = 'S', &
LONG_NAME = 'mid_layer_dry_static_energy', &
UNITS = 'm', &
DIMS = MAPL_DimsHorzVert, &
VLOCATION = MAPL_VLocationCenter, RC=STATUS )
VERIFY_(STATUS)
call MAPL_AddExportSpec ( gc, &
SHORT_NAME = 'PLE', &
LONG_NAME = 'edge_pressure', &
UNITS = 'Pa', &
DIMS = MAPL_DimsHorzVert, &
VLOCATION = MAPL_VLocationEdge, RC=STATUS )
VERIFY_(STATUS)
call MAPL_AddExportSpec ( gc, &
SHORT_NAME = 'TH', &
LONG_NAME = 'potential_temperature', &
UNITS = 'K', &
DIMS = MAPL_DimsHorzVert, &
VLOCATION = MAPL_VLocationCenter, RC=STATUS )
VERIFY_(STATUS)
call MAPL_AddExportSpec ( gc, &
SHORT_NAME = 'PLK', &
LONG_NAME = 'mid-layer_p$^\kappa$', &
UNITS = 'Pa$^\kappa$', &
DIMS = MAPL_DimsHorzVert, &
VLOCATION = MAPL_VLocationCenter, RC=STATUS )
VERIFY_(STATUS)
call MAPL_AddExportSpec ( gc, &
SHORT_NAME = 'PKE', &
LONG_NAME = 'edge_p$^\kappa$', &
UNITS = 'Pa$^\kappa$', &
DIMS = MAPL_DimsHorzVert, &
VLOCATION = MAPL_VLocationEdge, RC=STATUS )
VERIFY_(STATUS)
call MAPL_AddExportSpec ( gc, &
SHORT_NAME = 'W', &
LONG_NAME = 'vertical_velocity', &
UNITS = 'm s-1', &
DIMS = MAPL_DimsHorzVert, &
VLOCATION = MAPL_VLocationCenter, RC=STATUS )
VERIFY_(STATUS)
call MAPL_AddExportSpec ( gc, &
SHORT_NAME = 'OMEGA', &
LONG_NAME = 'vertical_pressure_velocity', &
UNITS = 'Pa s-1', &
DIMS = MAPL_DimsHorzVert, &
VLOCATION = MAPL_VLocationCenter, RC=STATUS )
VERIFY_(STATUS)
call MAPL_AddExportSpec ( gc, &
SHORT_NAME = 'CX', &
LONG_NAME = 'eastward_accumulated_courant_number', &
UNITS = '', &
PRECISION = ESMF_KIND_R8, &
DIMS = MAPL_DimsHorzVert, &
VLOCATION = MAPL_VLocationCenter, RC=STATUS )
VERIFY_(STATUS)
call MAPL_AddExportSpec ( gc, &
SHORT_NAME = 'CY', &
LONG_NAME = 'northward_accumulated_courant_number', &
UNITS = '', &
PRECISION = ESMF_KIND_R8, &
DIMS = MAPL_DimsHorzVert, &
VLOCATION = MAPL_VLocationCenter, RC=STATUS )
VERIFY_(STATUS)
call MAPL_AddExportSpec ( gc, &
SHORT_NAME = 'CU', &
LONG_NAME = 'eastward_accumulated_courant_number', &
UNITS = '', &
DIMS = MAPL_DimsHorzVert, &
VLOCATION = MAPL_VLocationCenter, RC=STATUS )
VERIFY_(STATUS)
call MAPL_AddExportSpec ( gc, &
SHORT_NAME = 'CV', &
LONG_NAME = 'northward_accumulated_courant_number', &
UNITS = '', &
DIMS = MAPL_DimsHorzVert, &
VLOCATION = MAPL_VLocationCenter, RC=STATUS )
VERIFY_(STATUS)
call MAPL_AddExportSpec ( gc, &
SHORT_NAME = 'MX', &
LONG_NAME = 'pressure_weighted_accumulated_eastward_mass_flux', &
UNITS = 'Pa m+2 s-1', &
DIMS = MAPL_DimsHorzVert, &
VLOCATION = MAPL_VLocationCenter, RC=STATUS )