Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Updated [x,y]corr values for HSAF ASCAT soil moisture obs in LDASsa_DEFAULT_inputs_ensupd.nml ([PR #235](https://github.com/GEOS-ESM/GEOSldas_GridComp/pull/235)).

### Fixed
- Fixed NAG build on macOS (GEOSlandassim) ([PR #244](https://github.com/GEOS-ESM/GEOSldas_GridComp/pull/244)).
- Fixed out-of-bounds copies of per-tile data in LandPert (`i_indgs`, `j_indgs`) and LandAssim (`f_num`) when `tile_coord` contains lake and land ice tiles in addition to land tiles ([PR #254](https://github.com/GEOS-ESM/GEOSldas_GridComp/pull/254)).
- Fixed QC of Tb obs for non-land surfaces (water, land ice) in cube-sphere tile space, where it was not applied (not 0-diff for cube-sphere tile space with Tb obs; 0-diff for EASE and lat/lon tile spaces) ([PR #249](https://github.com/GEOS-ESM/GEOSldas_GridComp/pull/249)).
- Fixed `frac_cell` and units of `area` in tile_coord when reading nc4 tile file in preprocessing (not 0-diff for nc4 tile files; 0-diff for *.til ASCII tile files) ([PR #247](https://github.com/GEOS-ESM/GEOSldas_GridComp/pull/247)).
Expand Down
10 changes: 9 additions & 1 deletion GEOSlandassim_GridComp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ set (alldirs
)

set (SRCS
hdf4_c_api.c hdf4_fortran_api.F90 io_hdf5.F90 enkf_general.F90 adapt_types.F90 mwRTM_types.F90 clsm_ensupd_glob_param.F90
hdf4_fortran_api.F90 io_hdf5.F90 enkf_general.F90 adapt_types.F90 mwRTM_types.F90 clsm_ensupd_glob_param.F90
mwRTM_routines.F90 clsm_ensupd_upd_routines.F90 clsm_ensdrv_drv_routines.F90
clsm_ensupd_read_obs.F90 catch_bias_types.F90 clsm_bias_routines.F90 clsm_adapt_routines.F90
clsm_ensupd_enkf_update.F90 clsm_ensdrv_out_routines.F90 GEOS_LandAssimGridComp.F90
Expand All @@ -16,6 +16,14 @@ find_path(HDF4_INCLUDE_DIR hdf.h PATH_SUFFIXES hdf REQUIRED)
find_library(HDF4_MFHDF_LIBRARY NAMES mfhdf REQUIRED)
find_library(HDF4_DF_LIBRARY NAMES df REQUIRED)

# The HDF4 C bridge is compiled separately so that it only sees the HDF4 headers.
# Otherwise, on case-insensitive file systems (macOS), the <assert.h> included by
# hdf.h resolves to GMAO_mpeu/assert.H through the include paths of the dependencies.
add_library (${this}_hdf4_c OBJECT hdf4_c_api.c)
target_include_directories (${this}_hdf4_c PRIVATE ${HDF4_INCLUDE_DIR})
set_target_properties (${this}_hdf4_c PROPERTIES POSITION_INDEPENDENT_CODE ON)
list (APPEND SRCS $<TARGET_OBJECTS:${this}_hdf4_c>)

esma_add_library (${this}
SRCS ${SRCS}
SUBCOMPONENTS ${alldirs}
Expand Down
4 changes: 2 additions & 2 deletions GEOSlandassim_GridComp/clsm_ensupd_read_obs.F90
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ module clsm_ensupd_read_obs
c_char

use, intrinsic :: iso_fortran_env, ONLY: &
int16
int16, REAL64

use MAPL_BaseMod, ONLY: &
MAPL_UNDEF
Expand Down Expand Up @@ -2302,7 +2302,7 @@ subroutine read_obs_sm_ASCAT_HSAF( &

! per-file arrays allocated to actual obs dimension size
integer, allocatable :: lat_raw(:), lon_raw(:)
real(8), allocatable :: time_raw(:)
real(REAL64), allocatable :: time_raw(:)
integer(2), allocatable :: ssm_raw(:)
integer(1), allocatable :: sflag_raw(:) ! surface_flag (NC_UBYTE -> int8)
integer(1), allocatable :: pflag_raw(:) ! processing_flag (NC_UBYTE -> int8)
Expand Down
Loading