-
Notifications
You must be signed in to change notification settings - Fork 79
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
fix the x case #397
fix the x case #397
Conversation
@jedwards4b - I got past the problem you encountered by doing the following: diff --git a/mediator/esmFldsExchange_cesm_mod.F90 b/mediator/esmFldsExchange_cesm_mod.F90
index 66dc57c..b8fba33 100644
--- a/mediator/esmFldsExchange_cesm_mod.F90
+++ b/mediator/esmFldsExchange_cesm_mod.F90
@@ -2158,7 +2158,7 @@ contains
! liquid from river and possibly flood from river to ocean
if (fldchk(is_local%wrap%FBImp(comprof, comprof), 'Forr_rofl' , rc=rc)) then
if (trim(rof2ocn_liq_rmap) == 'unset') then
- call addmap_from(comprof, 'Forr_rofl', compocn, mapconsd, 'none', 'unset')
+ call addmap_from(comprof, 'Forr_rofl', compocn, mapconsd, 'one', 'unset')
else
call addmap_from(comprof, 'Forr_rofl', compocn, map_rof2ocn_liq, 'none', rof2ocn_liq_rmap)
end if
@@ -2182,7 +2182,7 @@ contains
! ice from river to ocean
if (fldchk(is_local%wrap%FBImp(comprof, comprof), 'Forr_rofi' , rc=rc)) then
if (trim(rof2ocn_ice_rmap) == 'unset') then
- call addmap_from(comprof, 'Forr_rofi', compocn, mapconsd, 'none', 'unset')
+ call addmap_from(comprof, 'Forr_rofi', compocn, mapconsd, 'one', 'unset')
else
call addmap_from(comprof, 'Forr_rofi', compocn, map_rof2ocn_ice, 'none', rof2ocn_ice_rmap)
end if It ran successfully for over 3 days - but then crash in trying to map rof to lnd.
Here ! map rof to lnd
if (is_local%wrap%med_coupling_active(comprof,complnd)) then
call t_startf('MED:'//trim(subname)//' map_rof2lnd')
call med_map_field_packed( &
FBSrc=is_local%wrap%FBImp(comprof,comprof), &
FBDst=is_local%wrap%FBImp(comprof,complnd), &
FBFracSrc=is_local%wrap%FBFrac(comprof), &
field_normOne=is_local%wrap%field_normOne(comprof,complnd,:), &
packed_data=is_local%wrap%packed_data(comprof,complnd,:), &
routehandles=is_local%wrap%RH(comprof,complnd,:), rc=rc)
if (ChkErr(rc,__LINE__,u_FILE_u)) return
call t_stopf('MED:'//trim(subname)//' map_rof2lnd')
end if Frankly - I am wondering why we are worrying about rof in an X compset. This is such a special case for mapping - since with either drof or any of the prognostic river components we use custom mapping files. |
Also recall the discussion in #334 where we discussed problems with the current attempts to create runoff mappings at runtime, and particularly the summary comment in that issue. |
My feeling is that we either get the X case working or completely remove it from cmeps. |
I tried the solution suggested by Mariana - it ran 5 days without issue. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Its interesting that you had no problem running this for 5 days. I am comfortable with this change.
Description of changes
Fixes the x case by ignoring the rof->ocn coupling in med_internalstate_mod.F90
Specific notes
Contributors other than yourself, if any:
CMEPS Issues Fixed #396
Are changes expected to change answers? (specify if bfb, different at roundoff, more substantial)
Any User Interface Changes (namelist or namelist defaults changes)?
Testing performed
Please describe the tests along with the target model and machine(s)
If possible, please also added hashes that were used in the testing