Skip to content

Commit fd1a765

Browse files
committed
EAMxx: move data/time interpolation into IO library
1 parent ed56abf commit fd1a765

21 files changed

+38
-54
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Subproject commit 4f65fc04c624988baf06efda56fc4e0f528c0835

components/eamxx/src/control/atmosphere_surface_coupling_exporter.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33

44
#include "surface_coupling_utils.hpp"
55

6+
#include "share/io/eamxx_time_interpolation.hpp"
67
#include "share/atm_process/atmosphere_process.hpp"
7-
#include "share/algorithm/eamxx_time_interpolation.hpp"
88
#include "share/atm_process/ATMBufferManager.hpp"
99
#include "share/data_managers/SCDataManager.hpp"
1010

components/eamxx/src/physics/gw/impl/gw_gw_ediff_impl.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
#define GW_GW_EDIFF_IMPL_HPP
33

44
#include "gw_functions.hpp" // for ETI only but harmless for GPU
5-
#include "util/eamxx_utils.hpp"
5+
#include "share/util/eamxx_utils.hpp"
6+
67
#include <ekat_math_utils.hpp>
78
#include <ekat_subview_utils.hpp>
89

components/eamxx/src/physics/gw/impl/gw_gwd_compute_stress_profiles_and_diffusivities_impl.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
#define GW_GWD_COMPUTE_STRESS_PROFILES_AND_DIFFUSIVITIES_IMPL_HPP
33

44
#include "gw_functions.hpp" // for ETI only but harmless for GPU
5-
#include "util/eamxx_utils.hpp"
5+
#include "share/util/eamxx_utils.hpp"
6+
67
#include <ekat_math_utils.hpp>
78

89
namespace scream {

components/eamxx/src/physics/gw/impl/gw_gwd_compute_tendencies_from_stress_divergence_impl.hpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@
22
#define GW_GWD_COMPUTE_TENDENCIES_FROM_STRESS_DIVERGENCE_IMPL_HPP
33

44
#include "gw_functions.hpp" // for ETI only but harmless for GPU
5-
#include "util/eamxx_utils.hpp"
6-
#include <cmath>
5+
#include "share/util/eamxx_utils.hpp"
6+
77
#include <ekat_math_utils.hpp>
8+
#include <cmath>
89

910
namespace scream {
1011
namespace gw {

components/eamxx/src/physics/mam/readfiles/tracer_reader_utils.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
#include "share/scorpio_interface/eamxx_scorpio_interface.hpp"
99
#include "share/io/scorpio_input.hpp"
1010
#include "share/util/eamxx_time_stamp.hpp"
11-
#include "share/algorithm/eamxx_time_interpolation.hpp"
11+
#include "share/io/eamxx_time_interpolation.hpp"
1212

1313
#include <ekat_team_policy_utils.hpp>
1414
#include <ekat_lin_interp.hpp>

components/eamxx/src/physics/nudging/eamxx_nudging_process_interface.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
#include "share/atm_process/atmosphere_process.hpp"
55

6-
#include "share/algorithm/eamxx_time_interpolation.hpp"
6+
#include "share/io/eamxx_time_interpolation.hpp"
77
#include "share/remap/abstract_remapper.hpp"
88

99
#include <ekat_parameter_list.hpp>

components/eamxx/src/physics/spa/eamxx_spa_process_interface.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#include "eamxx_spa_process_interface.hpp"
22

3-
#include "share/algorithm/eamxx_data_interpolation.hpp"
3+
#include "share/io/eamxx_data_interpolation.hpp"
44
#include "share/scorpio_interface/eamxx_scorpio_interface.hpp"
55
#include "share/property_checks/field_within_interval_check.hpp"
66

components/eamxx/src/share/CMakeLists.txt

Lines changed: 3 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -34,20 +34,9 @@ add_subdirectory(diagnostics)
3434
# IO library
3535
add_subdirectory(io)
3636

37-
set(SHARE_SRC
38-
algorithm/eamxx_data_interpolation.cpp
39-
algorithm/eamxx_time_interpolation.cpp
40-
)
41-
42-
add_library(scream_share ${SHARE_SRC})
43-
44-
target_include_directories(scream_share PUBLIC
45-
${SCREAM_SRC_DIR}
46-
${SCREAM_BIN_DIR}/src
47-
${CMAKE_CURRENT_SOURCE_DIR}
48-
)
49-
50-
target_link_libraries(scream_share PUBLIC
37+
# For bwd compatibility: a "catch" all interface lib of all the stuff in the share folder
38+
add_library(scream_share INTERFACE)
39+
target_link_libraries(scream_share INTERFACE
5140
eamxx_core
5241
eamxx_scorpio_interface
5342
eamxx_utils
@@ -60,13 +49,6 @@ target_link_libraries(scream_share PUBLIC
6049
eamxx_diagnostics
6150
scream_io)
6251

63-
# Used in the data interpolation
64-
target_link_libraries(scream_share PUBLIC stdc++fs)
65-
66-
if (NOT SCREAM_LIB_ONLY)
67-
add_subdirectory(tests)
68-
endif()
69-
7052
# The "build_cf_dictionary" target downloads an XML file containing valid field
7153
# names and aliases based on the CF conventions, and transforms it into a YAML
7254
# file that we use to validate our own fields against it. This target is only

0 commit comments

Comments
 (0)