Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Patch the CMEPS history output so that it can be used. Currently hist… #100

Merged
merged 1 commit into from
Feb 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion CMEPS/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ target_sources(OM3_cmeps PRIVATE
CMEPS/mediator/med_map_mod.F90
CMEPS/mediator/med_methods_mod.F90
CMEPS/mediator/med_phases_prep_ice_mod.F90
CMEPS/mediator/med_phases_history_mod.F90
CMEPS/mediator/med_phases_prep_glc_mod.F90
CMEPS/mediator/med_internalstate_mod.F90
CMEPS/mediator/med_phases_profile_mod.F90
Expand Down Expand Up @@ -49,6 +48,8 @@ target_sources(OM3_cmeps PRIVATE
CMEPS/mediator/med_phases_post_wav_mod.F90
)

add_patched_source(OM3_cmeps CMEPS/mediator/med_phases_history_mod.F90)

## NUOPC cap share
add_fortran_library(OM3_nuopc_cap_share mod/nuopc_cap_share STATIC)
add_library(AccessOM3::nuopc_cap_share ALIAS OM3_nuopc_cap_share)
Expand All @@ -63,6 +64,7 @@ target_sources(OM3_nuopc_cap_share PRIVATE
CMEPS/cesm/nuopc_cap_share/nuopc_shr_methods.F90
)


### Install and Export

if(OM3_LIB_INSTALL)
Expand Down
13 changes: 13 additions & 0 deletions CMEPS/patches/med_phases_history_mod.F90.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/mediator/med_phases_history_mod.F90 b/mediator/med_phases_history_mod.F90
index 5f150a4b..97864ec6 100644
--- a/mediator/med_phases_history_mod.F90
+++ b/mediator/med_phases_history_mod.F90
@@ -1300,7 +1300,7 @@ contains
call med_io_write(auxcomp%files(nf)%io_file, is_local%wrap%FBimp(compid,compid), &
whead(1), wdata(1), nx, ny, nt=auxcomp%files(nf)%nt, &
pre=trim(compname(compid))//'Imp', flds=auxcomp%files(nf)%flds, &
- use_float=.true., rc=rc)
+ use_float=.false., rc=rc)
if (ChkErr(rc,__LINE__,u_FILE_u)) return

! end definition phase
Loading