Skip to content

Commit e7bbfd3

Browse files
committed
Merge branch 'hotfix-v5.1'
This merge introduces fixes for MPAS-Atmosphere * hotfix-v5.1: (24 commits) Note in description of config_len_disp that it is also used by 3-d div damping Introduce a new, scale-aware 3-d divergence damping scheme for acoustic modes Introduced scaling of the gravity-wave absorbing layer coefficient Comment-out code in MYNN surface-layer scheme to bound 2-m theta Initialize horizontal fluxes for ghost-cell faces in monotonic transport Use 'config_extrap_airtemp' to control vertical extrapolation of temperature Add check for lapse-rate extrapolation above first-guess data in vertical_interp Add namelist option config_extrap_airtemp for extrapolation above/below first-guess levels Ensure that temperature is computed if MSLP is needed in isobaric_diagnostics Remove .tmp.f90 files from esmf_time_f90 directory when 'make clean' is run Replace angle brackets with quotes in include statements in esmf_time_f90 Change name of preprocessed Fortran files from .f90 to .tmp.f90 in esmf_time_f90 Provide compatibility with ECMWF 100-289 cm soil layer * In ./src/core_atmosphere/physics/mpas_atmphys_driver_radiation_lw.F and mpas_atmphys_driver_radiation_sw.F, revised the initialization of the variables re_cloud, re_ice, re_snow, and rre_cloud, rre_ice, and rre_snow, when config_microp_scheme is set to off. Tiny formatting corrections in mpas_init_atm_cases.F Bug fix to re-enable the read and interpolation of pressure levels as output by calc_ecmpwf_p.exe from WPS Updated INSTALL documentation with known problems on IBM Bluegene and Mac OSX Changes to real/double conversion as requested in amendment of 2423776, however 0.0d0_RKIND does not work, need to use 0.0_RKIND Removed CPP directives -DSINGLE_PRECISION from Fortran compiler flags as this breaks builds on systems where GEN_F90 is required (e.g. Bluegene) Avoid setting invalid pointers to scalar constituents in mpas_atmphys_interface module ...
2 parents ef684ba + 992be01 commit e7bbfd3

32 files changed

+405
-165
lines changed

INSTALL

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,11 @@ and the gfortran compiler. The gfortran compiler can be installed using homebrew
1212
(http://brew.sh), or using pre-compiled binaries from the MacOSX HPC website
1313
(http://hpc.soureforge.net), or it can be compiled by the user from the GNU sources.
1414

15-
The standard clang compiler does not support OpenMP. Users wanting to compile MPAS
15+
Caveats:
16+
17+
(1) MPAS cannot be compiled with gfortran-clang if GEN_F90=true.
18+
19+
(2) The standard clang compiler does not support OpenMP. Users wanting to compile MPAS
1620
with OpenMP support on MacOSX will have to install the LLVM clang compiler, which is
1721
accomplished easiest with homebrew. Since this alternative clang compiler is not in
1822
the standard search/library path, the user will have to modify the call to the clang
@@ -57,3 +61,10 @@ would become
5761
...
5862

5963
assuming that the LLVM clang compiler is installed in /usr/local/opt/llvm.
64+
65+
66+
bluegene: Compiling MPAS on IBM Bluegene using the xl compilers
67+
----------
68+
All MPAS cores except the ocean compile on IBM Bluegene using the xl compilers. The ocean
69+
core currently does not work on IBM Bluegene. Known limitations: OPENMP must be disabled
70+
(OPENMP=false) for compiling, since the xl compilers do not support nested OpenMP directives.

Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,6 @@ ifeq "$(OPENMP)" "true"
509509
endif #OPENMP IF
510510

511511
ifeq "$(PRECISION)" "single"
512-
FFLAGS += "-DSINGLE_PRECISION"
513512
CFLAGS += "-DSINGLE_PRECISION"
514513
CXXFLAGS += "-DSINGLE_PRECISION"
515514
override CPPFLAGS += "-DSINGLE_PRECISION"

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
MPAS-v5.0
1+
MPAS-v5.1
22
====
33

44
The Model for Prediction Across Scales (MPAS) is a collaborative project for

src/core_atmosphere/Registry.xml

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0"?>
2-
<registry model="mpas" core="atmosphere" core_abbrev="atm" version="5.0">
2+
<registry model="mpas" core="atmosphere" core_abbrev="atm" version="5.1">
33

44
<!-- **************************************************************************************** -->
55
<!-- ************************************** Dimensions ************************************** -->
@@ -141,7 +141,7 @@
141141

142142
<nml_option name="config_len_disp" type="real" default_value="120000.0"
143143
units="m"
144-
description="Horizontal length scale for Smagorinsky formulation of horizontal diffusion"
144+
description="Horizontal length scale, used by the Smagorinsky formulation of horizontal diffusion and by 3-d divergence damping"
145145
possible_values="Positive real values"/>
146146

147147
<nml_option name="config_visc4_2dsmag" type="real" default_value="0.05"
@@ -224,16 +224,11 @@
224224
description="Off-centering parameter for the vertically implicit acoustic integration"
225225
possible_values="Positive real values"/>
226226

227-
<nml_option name="config_smdiv" type="real" default_value="0.025"
227+
<nml_option name="config_smdiv" type="real" default_value="0.1"
228228
units="-"
229229
description="3-d divergence damping coefficient"
230230
possible_values="Positive real values"/>
231231

232-
<nml_option name="config_smdiv_p_forward" type="real" default_value="0.1"
233-
units="-"
234-
description="Fractional forward weighting of the pressure during the acoustic step --- a form of 3D divergence damping"
235-
possible_values="Real values typically in the range 0 to 0.2"/>
236-
237232
<nml_option name="config_apvm_upwinding" type="real" default_value="0.5" in_defaults="false"
238233
units="-"
239234
description="Amount of upwinding in APVM"
@@ -1588,9 +1583,6 @@
15881583
<var name="rho_p_save" type="real" dimensions="nVertLevels nCells Time" units="kg m^{-3}"
15891584
description="predicted value rho_p, saved before acoustic steps"/>
15901585

1591-
<var name="divergence_3d" type="real" dimensions="nVertLevels nCells Time" units="kg m^{-3} s^{-1}"
1592-
description="3D divergence used for acoustic filtering"/>
1593-
15941586
<var name="kdiff" type="real" dimensions="nVertLevels nCells Time" units="m^2 s^{-1}"
15951587
description="Smagorinsky horizontal eddy viscosity"/>
15961588

src/core_atmosphere/diagnostics/isobaric_diagnostics.F

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -553,7 +553,7 @@ subroutine interp_diagnostics(mesh, state, time_lev, diag)
553553
enddo
554554
enddo
555555

556-
if (NEED_TEMP .or. NEED_RELHUM .or. NEED_DEWPOINT) then
556+
if (NEED_TEMP .or. NEED_RELHUM .or. NEED_DEWPOINT .or. need_mslp) then
557557
!calculation of temperature at cell centers:
558558
do iCell = 1,nCells
559559
do k = 1,nVertLevels

0 commit comments

Comments
 (0)