From 9119ad945ca62a918e613d6037cf9af9457f7afa Mon Sep 17 00:00:00 2001 From: Elynn Wu Date: Fri, 26 Jul 2024 11:01:33 -0700 Subject: [PATCH] cmake cleanup --- components/eamxx/docs/user/ml_correction.md | 1 + components/eamxx/src/physics/ml_correction/CMakeLists.txt | 3 --- .../eamxx/tests/single-process/ml_correction/CMakeLists.txt | 6 ------ 3 files changed, 1 insertion(+), 9 deletions(-) diff --git a/components/eamxx/docs/user/ml_correction.md b/components/eamxx/docs/user/ml_correction.md index fe9ce2d1e48..ae0a07ad7ca 100644 --- a/components/eamxx/docs/user/ml_correction.md +++ b/components/eamxx/docs/user/ml_correction.md @@ -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 ``` diff --git a/components/eamxx/src/physics/ml_correction/CMakeLists.txt b/components/eamxx/src/physics/ml_correction/CMakeLists.txt index 381671364a0..337d761ccae 100644 --- a/components/eamxx/src/physics/ml_correction/CMakeLists.txt +++ b/components/eamxx/src/physics/ml_correction/CMakeLists.txt @@ -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}) diff --git a/components/eamxx/tests/single-process/ml_correction/CMakeLists.txt b/components/eamxx/tests/single-process/ml_correction/CMakeLists.txt index 51c88e3924e..a8b93cf440c 100644 --- a/components/eamxx/tests/single-process/ml_correction/CMakeLists.txt +++ b/components/eamxx/tests/single-process/ml_correction/CMakeLists.txt @@ -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