Skip to content

Commit

Permalink
cmake cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
elynnwu committed Jul 26, 2024
1 parent 1842bb0 commit 9119ad9
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 9 deletions.
1 change: 1 addition & 0 deletions components/eamxx/docs/user/ml_correction.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ The following options can be specified:

```shell
./atmchange ML_model_path_tq=/path/to/pretrained/temperature_and_specific_humidity_model
./atmchange ML_model_path_temperature=/path/to/pretrained/temperature_only_model
./atmchange ML_model_path_uv=/path/to/pretrained/u_and_v_model
./atmchange ML_model_path_sfc_fluxes=/path/to/pretrained/surface_fluxes_model
```
Expand Down
3 changes: 0 additions & 3 deletions components/eamxx/src/physics/ml_correction/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@ else()
message(FATAL_ERROR "pybind11 is missing. Use CMake >= 3.11 or download it")
endif()

message(STATUS "Python_EXECUTABLE: ${Python_EXECUTABLE}")
message(STATUS "Python_INCLUDE_DIRS: ${Python_INCLUDE_DIRS}")
message(STATUS "Python_LIBRARIES: ${Python_LIBRARIES}")
find_package(Python REQUIRED COMPONENTS Interpreter Development)

add_library(ml_correction ${MLCORRECTION_SRCS})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,7 @@ else()
message(FATAL_ERROR "pybind11 is missing. Use CMake >= 3.11 or download it")
endif()

message(STATUS "Python_EXECUTABLE: ${Python_EXECUTABLE}")
message(STATUS "Python_INCLUDE_DIRS: ${Python_INCLUDE_DIRS}")
message(STATUS "Python_LIBRARIES: ${Python_LIBRARIES}")
find_package(Python REQUIRED COMPONENTS Interpreter Development)
message(STATUS "Python_EXECUTABLE: ${Python_EXECUTABLE}")
message(STATUS "Python_INCLUDE_DIRS: ${Python_INCLUDE_DIRS}")
message(STATUS "Python_LIBRARIES: ${Python_LIBRARIES}")

CreateUnitTest(ml_correction_standalone "ml_correction_standalone.cpp"
LIBS pybind11::pybind11 Python::Python ml_correction scream_control scream_share
Expand Down

0 comments on commit 9119ad9

Please sign in to comment.