Skip to content

Commit

Permalink
Merge branch 'NOAA-EMC:develop' into feature/phase2_msonet
Browse files Browse the repository at this point in the history
  • Loading branch information
delippi authored Oct 24, 2024
2 parents f29f1d5 + 00994bb commit 811544b
Show file tree
Hide file tree
Showing 6 changed files with 453 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ install*/
!/bundle/ioda-data
!/bundle/fv3-jedi-data
!/bundle/mpas-jedi-data
!/bundle/fix

#
expr
Expand Down
1 change: 1 addition & 0 deletions bundle/fix
36 changes: 33 additions & 3 deletions rrfs-test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,9 @@ if(FV3_DYCORE)
set(MPI_ARGS ${RESTORE_MPI_ARGS})
endif()

endif()

endif()

if(MPAS_DYCORE)
if(MPAS_DYCORE)

message(STATUS "MACHINE_ID is " ${MACHINE_ID})
if("${MACHINE_ID}" STREQUAL "orion")
Expand Down Expand Up @@ -117,4 +116,35 @@ if(FV3_DYCORE)
set(MPI_ARGS ${RESTORE_MPI_ARGS})
endif()

########################
### Bufr2ioda ctests ###
########################

# YAML-based bufr2ioda
set(case "rrfs_bufr2ioda_msonet")
set(casedir "${CMAKE_CURRENT_BINARY_DIR}/rundir-${case}")
set(src_casedir "${rrfs-test_data_local}/rrfs-data_mpasjedi_2024052700")
if (NOT EXISTS "${casedir}")
file(MAKE_DIRECTORY ${casedir})
endif()
file(CREATE_LINK ${src_casedir}/data ${casedir}/data SYMBOLIC)
configure_file(${src_casedir}/data/obs/bufr/rap.t00z.prepbufr.tm00 ${casedir}/prepbufr COPYONLY)
file(COPY ${src_yaml}/${case}.yaml DESTINATION ${casedir})
set(MPI_ARGS "--time=00:05:00 --mem=64G")
set(IODA_CONV_COMP_TOL "5.0e-4")
ecbuild_add_test( TARGET ${case}
MPI 1
TYPE SCRIPT
COMMAND bash
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/rundir-${case}
ARGS ${CMAKE_SOURCE_DIR}/rrfs-test/ush/iodaconv_comp_rrfs.sh
netcdf
"${CMAKE_BINARY_DIR}/bin/bufr2ioda.x ${case}.yaml"
data/obs/ioda_mesonet.nc
ioda_mesonet.nc
${IODA_CONV_COMP_TOL}
DEPENDS bufr2ioda.x )


endif()

Loading

0 comments on commit 811544b

Please sign in to comment.