Skip to content

Conversation

iulian787
Copy link
Contributor

@iulian787 iulian787 commented Jul 1, 2025

Copy correction factors from mct to moab which eliminates differences
between the two within the combined coupler in driver-moab (when reading maps).

Ignore for the time being the correction factors computed by moab.
Also add and remove a mesh write in MOABDEBUG.

	use the correction factors to see if we obtain 0 differences
	we do not, at step 5, we still have differences
	Is that the frst time ocean couples with atm ?
	those are not minor differences
	ocn run(seq_comm_compare_mb_mct)  , difference on tag Sa_pbot^@ =    6.3068705975487666E-002
it has _src_ in name, it shows the source values before
 sending
it is of little value, the receive should be enough (and correct)
unless there is a catastrophic failure
correction factors method not onlly computes the correction factors
(aream/area or area/aream), but it also factors the fluxes existent on
the component side, with the correction factors (flux <- flux * mdl2drv)
Then, it sends all fields to coupler , after scaling just the initial
fluxes
It seems that only Fioo_q on ocean is affected in simple coupled ne4 case
(all other fluxes are 0 ?)
need to double check
also, put factor in second term of multiplication
before, we were doing flux <- mdl2drv * flux
so to compare mct and moab for correction factors,
put the factor at the end of flux <- flux * factor
(before it was flux <- factor * flux)
this is just to compare with ocn mct instance
we use MOAB tools, but it should not matter
@rljacob rljacob self-assigned this Jul 1, 2025
@rljacob rljacob added Coupler Related to code in driver-mct or driver-moab or component connections to the coupler. MOAB Involves the MOAB library labels Jul 1, 2025
@rljacob rljacob changed the title make mct and moab driver differences zero make mct and moab differences zero in combo-driver. Jul 1, 2025
@rljacob rljacob requested a review from vijaysm July 1, 2025 17:21
rljacob added a commit that referenced this pull request Jul 7, 2025
)

Copy correction factors from mct to moab which eliminates differences
between the two within the combined coupler in driver-moab (when reading maps).

Ignore for the time being the correction factors computed by moab.
@rljacob rljacob merged commit 067316d into master Jul 7, 2025
7 checks passed
@rljacob rljacob deleted the iulian787/correction_factors_from_mct branch July 7, 2025 15:51
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