-
Notifications
You must be signed in to change notification settings - Fork 437
move map mesh migrate out of flood block #7559
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
Conversation
map mesh migrate foro r2o maps should happen always, even if flood is not present
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.
Minor comments. Easy to update.
driver-moab/main/prep_ocn_mod.F90
Outdated
'seq_maps.rc', 'rof2ocn_ice_rmapname:', 'rof2ocn_ice_rmaptype:',samegrid_ro, & | ||
'mapper_Rr2o_ice initialization', esmf_map_flag, no_match ) | ||
! us the same one for mapper_Rr2o_ice and mapper_Fr2o | ||
#ifdef HAVE_MOAB |
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.
We should remove all HAVE_MOAB checks under driver-moab
sources. Not for this PR - but it just occurred to me.
driver-moab/main/prep_ocn_mod.F90
Outdated
! with ids rof(1)%cplcompid, rmapid (rmapid is 100*src+tgt) | ||
! this will be used in send/receive mappers | ||
type_grid = 3 ! this is type of grid | ||
ierr = iMOAB_MigrateMapMesh ( mbrxid, mbintxro, mpicom_CPLID, mpigrp_CPLID, & |
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.
This should technically be within if (.not. compute_maps_online_r2o) then
block. Even though r2o is always read from a file, the style should be consistent with the rest of the components.
also, remove #ifdef HAVE_MOAB #endif in this file
#endif | ||
endif | ||
|
||
context_id = rmapid ! ocn(1)%cplcompid*100+rof(1)%cplcompid |
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.
context_id statement should be within the if block as well. Anyway, I'll approve. We will refactor when we clean up the sources.
move map mesh migrate out of flood block map mesh migrate for r2o maps should happen always, even if flood is not present.
move map mesh migrate out of flood block.
map mesh migrate for r2o maps should happen always, even if flood is not present.