Skip to content

Commit

Permalink
Adjust core folders sources for when da core is being built
Browse files Browse the repository at this point in the history
  • Loading branch information
islas committed Aug 6, 2024
1 parent 1d744a5 commit b2c1013
Show file tree
Hide file tree
Showing 2 changed files with 67 additions and 51 deletions.
44 changes: 26 additions & 18 deletions frame/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,30 @@ if ( ${USE_RSL_LITE} )
set( MODULE_DM ${PROJECT_SOURCE_DIR}/external/RSL_LITE/module_dm.F )
endif()

set(
NON_DA_SOURCES
module_cpl.F
module_cpl_oasis3.F
clog.c
libmassv.F

module_clear_halos.F
module_comm_nesting_dm.F
module_integrate.F
module_quilt_outbuf_ops.F
module_sm.F
pack_utils.c
)

if ( ${WRF_CORE} STREQUAL "DA" OR ${WRF_CORE} STREQUAL "DA_4D_VAR" )
set( NON_DA_SOURCES "" )
endif()

target_sources(
${PROJECT_NAME}_Core
PRIVATE
${WRF_INCLUDE_FILES}

# Common sources used in all cores
module_configure.F
module_driver_constants.F
module_domain_type.F
Expand All @@ -102,11 +121,7 @@ target_sources(
module_wrf_error.F
module_machine.F
module_timing.F
# module_dm.F
${MODULE_DM}
module_cpl.F
module_cpl_oasis3.F


module_alloc_space_0.F
module_alloc_space_1.F
Expand All @@ -122,36 +137,29 @@ target_sources(
${CMAKE_BINARY_DIR}/frame/module_state_description.F # GENERATED
${nl_dyn_source} # GENERATED

clog.c

collect_on_comm.c
hires_timer.c
libmassv.F

module_clear_halos.F

module_comm_dm.F
module_comm_dm_0.F
module_comm_dm_1.F
module_comm_dm_2.F
module_comm_dm_3.F
module_comm_dm_4.F
module_comm_nesting_dm.F



module_integrate.F


module_io.F
module_io_quilt.F

module_nesting.F
module_quilt_outbuf_ops.F
module_sm.F

module_tiles.F

pack_utils.c
wrf_debug.F
wrf_num_bytes_between.c
wrf_shutdown.F

${NON_DA_SOURCES}
)

# Disable optimizations on these files always
Expand Down
74 changes: 41 additions & 33 deletions share/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,67 +11,75 @@ target_include_directories(
# Now define base share
#
########################################################################################################################
set(
NON_DA_SOURCES
module_llxy.F
module_soil_pre.F
module_compute_geop.F
module_chem_share.F
module_check_a_mundo.F
module_HLaw.F
module_ctrans_aqchem.F
module_random.F
module_interp_nmm.F
module_interp_store.F
module_string_tools.F
module_MPP.F
module_optional_input.F
dfi.F
solve_interface.F
mediation_interp_domain.F
mediation_force_domain.F
mediation_feedback_domain.F
wrf_tsin.F
track_driver.F
track_input.F
module_trajectory.F
bobrand.c
wrf_timeseries.F
track_driver.F
wrf_fddaobs_in.F
mediation_nest_move.F
setfeenv.c
)

if ( ${WRF_CORE} STREQUAL "DA" OR ${WRF_CORE} STREQUAL "DA_4D_VAR" )
set( NON_DA_SOURCES "" )
endif()

target_sources(
${PROJECT_NAME}_Core
PRIVATE

# Common sources used in all cores
module_model_constants.F
module_llxy.F
module_soil_pre.F

module_date_time.F
module_bc.F

module_bc_time_utilities.F
module_get_file_names.F
module_compute_geop.F
module_chem_share.F
module_check_a_mundo.F
module_HLaw.F
module_ctrans_aqchem.F
module_random.F
module_interp_nmm.F
module_interp_store.F
module_string_tools.F
module_MPP.F

module_io_wrf.F


module_io_domain.F

module_optional_input.F

input_wrf.F
output_wrf.F
wrf_bdyout.F
wrf_bdyin.F
dfi.F

mediation_integrate.F
mediation_wrfmain.F

solve_interface.F
mediation_interp_domain.F
mediation_force_domain.F
mediation_feedback_domain.F

start_domain.F
init_modules.F
set_timekeeping.F
interp_fcn.F
sint.F
wrf_ext_write_field.F
wrf_ext_read_field.F


wrf_tsin.F
landread.c
track_driver.F
track_input.F
module_trajectory.F
bobrand.c
wrf_timeseries.F
track_driver.F
wrf_fddaobs_in.F
mediation_nest_move.F
setfeenv.c

${NON_DA_SOURCES}
)

0 comments on commit b2c1013

Please sign in to comment.