Skip to content

Commit

Permalink
Update Noah-MP submodules to resolve cmake errors
Browse files Browse the repository at this point in the history
  • Loading branch information
akashdhruv committed Oct 23, 2024
1 parent 49cc9bf commit 27b6aa1
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 9 deletions.
4 changes: 2 additions & 2 deletions CMake/BuildERFExe.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,9 @@ function(build_erf_lib erf_lib_name)
$<BUILD_INTERFACE:${CMAKE_SOURCE_DIR}/Source/LandSurfaceModel/NOAH>
$<BUILD_INTERFACE:${CMAKE_SOURCE_DIR}/Submodules/NOAH-MP/drivers/hrldas>)
target_sources(${erf_lib_name} PRIVATE
${SRC_DIR}/LandSurfaceModel/NOAH/NOAH.cpp)
${SRC_DIR}/LandSurfaceModel/NOAH/ERF_NOAH.cpp)
target_compile_definitions(${erf_lib_name} PUBLIC ERF_USE_NOAH)
target_link_libraries(${erf_lib_name} PUBLIC NoahMP)
target_link_libraries_system(${erf_lib_name} PUBLIC NoahMP::noahmp)
endif()

if(ERF_ENABLE_RRTMGP)
Expand Down
2 changes: 1 addition & 1 deletion Source/LandSurfaceModel/ERF_LandSurface.H
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#include <ERF_MM5.H>

#if ERF_USE_NOAH
#include <NOAH.H>
#include <ERF_NOAH.H>
#endif

class LandSurface {
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@
#include<iostream>

#include <AMReX_Print.H>
#include <NoahmpIO.H>

#include <NOAH.H>
#include <ERF_NOAH.H>

using namespace amrex;

Expand Down
4 changes: 2 additions & 2 deletions Source/LandSurfaceModel/NOAH/Make.package
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
CEXE_sources += NOAH.cpp
CEXE_headers += NOAH.H
CEXE_sources += ERF_NOAH.cpp
CEXE_headers += ERF_NOAH.H
2 changes: 1 addition & 1 deletion Submodules/NOAH-MP
Submodule NOAH-MP updated 1 files
+22 −8 CMakeLists.txt

0 comments on commit 27b6aa1

Please sign in to comment.