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 49f95e3
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
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

0 comments on commit 49f95e3

Please sign in to comment.