Skip to content

Commit

Permalink
Remove .h from CICE history output filenames
Browse files Browse the repository at this point in the history
  • Loading branch information
anton-seaice committed Aug 14, 2024
1 parent 63ed4a4 commit 331aaf8
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CICE/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ target_sources(OM3_cice PRIVATE
CICE/cicecore/cicedyn/general/ice_flux_bgc.F90
CICE/cicecore/cicedyn/general/ice_forcing.F90
CICE/cicecore/cicedyn/general/ice_forcing_bgc.F90
CICE/cicecore/cicedyn/general/ice_init.F90
CICE/cicecore/cicedyn/general/ice_state.F90
CICE/cicecore/cicedyn/general/ice_step_mod.F90

Expand Down Expand Up @@ -155,6 +154,7 @@ endif()

add_patched_source(OM3_cice CICE/cicecore/cicedyn/infrastructure/ice_domain.F90)
add_patched_source(OM3_cice CICE/cicecore/shared/ice_distribution.F90)
add_patched_source(OM3_cice CICE/cicecore/cicedyn/general/ice_init.F90)

### Install and Export

Expand Down
13 changes: 13 additions & 0 deletions CICE/patches/ice_init.F90.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/cicecore/cicedyn/general/ice_init.F90 b/cicecore/cicedyn/general/ice_init.F90
index 24ac40db..4ad296aa 100644
--- a/cicecore/cicedyn/general/ice_init.F90
+++ b/cicecore/cicedyn/general/ice_init.F90
@@ -872,7 +872,7 @@ subroutine input_data
! runid and runtype are obtained from the driver, not from the namelist

if (my_task == master_task) then
- history_file = trim(runid) // ".cice" // trim(inst_suffix) //".h"
+ history_file = trim(runid) // ".cice" // trim(inst_suffix)
restart_file = trim(runid) // ".cice" // trim(inst_suffix) //".r"
incond_file = trim(runid) // ".cice" // trim(inst_suffix) //".i"
! Note by tcraig - this if test is needed because the nuopc cap sets
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ option(OM3_ENABLE_CICE6 "Build CICE6 configuration" OFF)
option(OM3_ENABLE_WW3 "Build WW3 configuration" OFF)
option(OM3_ENABLE_MOM6-WW3 "Build MOM6-WW3 configuration" OFF)
option(OM3_ENABLE_MOM6-CICE6 "Build MOM6-CICE6 configuration" ON)
option(OM3_ENABLE_CICE6-WW3 "Build CICE6-WW3 configuration" ON)
option(OM3_ENABLE_MOM6-CICE6-WW3 "Build MOM6-CICE6-WW3 configuration" ON)
option(OM3_ENABLE_CICE6-WW3 "Build CICE6-WW3 configuration" OFF)
option(OM3_ENABLE_MOM6-CICE6-WW3 "Build MOM6-CICE6-WW3 configuration" OFF)

message(STATUS "Configurations")
message(STATUS " - MOM6 ${OM3_ENABLE_MOM6}")
Expand Down

0 comments on commit 331aaf8

Please sign in to comment.