Browse Source

Merge tag '1.3.2' into develop

- Release 1.3.2
- Coordinate name index positions are no longer assumed and are searched
  instead. Some users use xarray to rewrite WRF output files, and xarray
  might reorder the coordinate name positions.
- Fixed a segfault issue with CAPE when more than 150 vertical levels are
  used (e.g. LES runs).
- setup.py will now bootstrap the numpy installation.
lon0
Bill Ladwig 6 years ago
parent
commit
da46fb0290
  1. 2
      build_scripts/gnu_no_omp.sh
  2. 2
      build_scripts/gnu_omp.sh
  3. 12
      doc/source/new.rst
  4. 2
      src/wrf/version.py
  5. 26
      test/comp_utest.py

2
build_scripts/gnu_no_omp.sh

@ -1,8 +1,6 @@ @@ -1,8 +1,6 @@
#!/bin/bash
unset LDFLAGS
unset FFLAGS
unset CFLAGS
cd ../fortran
$FC -E ompgen.F90 -cpp -o omp.f90

2
build_scripts/gnu_omp.sh

@ -1,8 +1,6 @@ @@ -1,8 +1,6 @@
#!/bin/bash
unset LDFLAGS
unset FFLAGS
unset CFLAGS
cd ../fortran/build_help
$FC -o sizes -fopenmp omp_sizes.f90

12
doc/source/new.rst

@ -4,6 +4,18 @@ What's New @@ -4,6 +4,18 @@ What's New
Releases
-------------
v1.3.2 (February 2019)
^^^^^^^^^^^^^^^^^^^^^^^^^
- Release 1.3.2
- Coordinate name index positions are no longer assumed and are searched
instead. Some users use xarray to rewrite WRF output files, and xarray
might reorder the coordinate name positions.
- Fixed a segfault issue with CAPE when more than 150 vertical levels are
used (e.g. LES runs).
- setup.py will now bootstrap the numpy installation (thanks bbonenfant!).
v1.3.1 (January 2019)
^^^^^^^^^^^^^^^^^^^^^^^^^

2
src/wrf/version.py

@ -1 +1 @@ @@ -1 +1 @@
__version__ = "1.3.1"
__version__ = "1.3.2"

26
test/comp_utest.py

@ -12,11 +12,21 @@ from netCDF4 import Dataset as nc @@ -12,11 +12,21 @@ from netCDF4 import Dataset as nc
from wrf import *
NCL_EXE = "/Users/ladwig/nclbuild/6.3.0/bin/ncl"
TEST_FILE = "/Users/ladwig/Documents/wrf_files/wrfout_d01_2010-06-13_21:00:00"
TEST_FILE = ("/Users/ladwig/Documents/wrf_files/wrf_vortex_multi/moving_nest/"
"wrfout_d02_2005-08-28_00:00:00")
OUT_NC_FILE = "/tmp/wrftest.nc"
NCFILE = nc(TEST_FILE)
NCGROUP = [NCFILE, NCFILE, NCFILE]
GROUP_FILES = [
("/Users/ladwig/Documents/wrf_files/wrf_vortex_multi/moving_nest/"
"wrfout_d02_2005-08-28_00:00:00"),
("/Users/ladwig/Documents/wrf_files/wrf_vortex_multi/moving_nest/"
"wrfout_d02_2005-08-28_12:00:00"),
("/Users/ladwig/Documents/wrf_files/wrf_vortex_multi/moving_nest/"
"wrfout_d02_2005-08-29_00:00:00")]
NCGROUP = [nc(file) for file in GROUP_FILES]
# Python 3
if sys.version_info > (3,):
@ -294,7 +304,7 @@ def get_args(varname, wrfnc, timeidx, method, squeeze): @@ -294,7 +304,7 @@ def get_args(varname, wrfnc, timeidx, method, squeeze):
cache=None, meta=True)
v = destagger(v_vars[varname], -2, meta=True)
zstag = ph + phb
zstag = (ph + phb) / Constants.G
return (zstag, mapfct, u, v, wstag, dx, dy)
@ -667,11 +677,9 @@ if __name__ == "__main__": @@ -667,11 +677,9 @@ if __name__ == "__main__":
omp_set_schedule(OMP_SCHED_STATIC, 0)
omp_set_dynamic(False)
varnames = ["avo", "eth", "cape_2d", "cape_3d", "ctt", "dbz", "mdbz",
"geopt", "helicity", "lat", "lon", "omg", "p", "pressure",
"pvo", "pw", "rh2", "rh", "slp", "ter", "td2", "td", "tc",
"theta", "tk", "tv", "twb", "updraft_helicity", "ua", "va",
"wa", "uvmet10", "uvmet", "z", "cloudfrac"]
varnames=["avo", "pvo", "eth", "dbz", "helicity", "updraft_helicity",
"omg", "pw", "rh", "slp", "td", "tk", "tv", "twb", "uvmet",
"cloudfrac", "ctt"]
omp_set_num_threads(omp_get_num_procs()-1)
omp_set_schedule(OMP_SCHED_STATIC, 0)

Loading…
Cancel
Save