Skip to content

Conversation

iulian787
Copy link
Contributor

@iulian787 iulian787 commented Jul 29, 2025

move map mesh migrate out of flood block.
map mesh migrate for r2o maps should happen always, even if flood is not present.

map mesh migrate foro r2o maps should happen always,
even if flood is not present
@iulian787 iulian787 requested review from vijaysm and rljacob July 29, 2025 11:08
@rljacob rljacob self-assigned this Jul 30, 2025
@rljacob rljacob added MOAB Involves the MOAB library Coupler Related to code in driver-mct or driver-moab or component connections to the coupler. labels Jul 30, 2025
Copy link
Contributor

@vijaysm vijaysm left a 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.

'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
Copy link
Contributor

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.

! 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, &
Copy link
Contributor

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
Copy link
Contributor

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.

rljacob added a commit that referenced this pull request Aug 1, 2025
move map mesh migrate out of flood block
map mesh migrate for r2o maps should happen always, even if flood is not present.
@rljacob rljacob merged commit b8fd8b5 into master Aug 1, 2025
6 checks passed
@rljacob rljacob deleted the iulian787/fix_r2o_maps branch August 1, 2025 20:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Coupler Related to code in driver-mct or driver-moab or component connections to the coupler. MOAB Involves the MOAB library
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants