Map

  • BilinearMap model coupler cmeps

    The atm->ocn mapping step of the CMEPS mediator (map_atm2ocn of med_phases_post_atm_mod.F90, the sparse weight apply of med_map_field_packed, med_map_mod.F90:1187-1234) as transcribed from the M8 stage-1 dump (cmeps_map_ocn.csv / cmeps_map_atm.csv of the C_JRA_t62_inst run, fork cmeps 2673bd61). The law is dst_j = (sum_i W_ij x_i)/normOne_j over the source stencil of each destination cell, with the weights W taken AS DATA from the offline ESMF_RegridWeightGen mapping files (atm2ocn_conserve_fracarea.nc, atm2ocn_bilinear.nc - bit-identical to the online routehandle: stage1/analysis/check_cmeps_map.py replays both laws from the file weights at worst rel 0.0 over 1152 (field,step,cell) checks each) and normOne the field_normOne row sums (mapnorm='one': no source fraction factor). Both routehandles express the SAME law through the single EarthSciDiscretizations conservative_overlap_apply template imported by reference (${ESD_ROOT}/regridding/conservative_overlap.esm): ConserveMap binds the ESMF conserve weights as its A_ij data and the dumped normOne_consf as A_j; BilinearMap binds the bilinear weights and normOne_bilnr the same way. The mapnorm='lfrac' source weighting of the M9 lane's lnd->rof map is carried in the field (F_src = lfrac*x) rather than in a second template, so there is exactly one map law for every ESMF routehandle. Both models evaluate on the traced 12-cell window (the first masked cells of PET 0, gids 41583, 41584, 42123-42126, 42662-42667 - the same window as cmeps_merge.csv) with the full ESMF stencils (conserve: 3 distinct T62 source cells, <= 2 terms; bilinear: 8, exactly 4 terms), and the tests pin cmeps_map_ocn.csv cell-wise (coords over the 12 traced cells) at rel 1e-12 at the STEPS_PINNED = (1, 13, 24) steps of the 24-step window (the first, a middle and the last: the steps repeat the same map and the same stencils with smoothly drifting inputs, so three steps spanning the drift suffice): Faxa_snowl (conserve) and Sa_tbot, Sa_pbot (bilinear) - 108 assertions (the stage-1 replay is bit-exact; the engine's own summation order leaves ~1e-16 slack on these short stencils). The remaining dumped fields are configuration facts of the traced window, not law statements, and are unpinned as unfailable: Faxa_rainl/Faxa_rainc/Faxa_snowc are identically 0 on every traced row (the Gulf-of-Guinea window receives snowfall but no rain in this JRA January window), Sa_z is a constant 10 m source (the mapped constant equals itself to 2e-15), and Sa_pslv is bit-identical to Sa_pbot on every traced row (the unfailable-assertion precedent of the prep_ice round).

  • ConserveMap model coupler cmeps

    The atm->ocn mapping step of the CMEPS mediator (map_atm2ocn of med_phases_post_atm_mod.F90, the sparse weight apply of med_map_field_packed, med_map_mod.F90:1187-1234) as transcribed from the M8 stage-1 dump (cmeps_map_ocn.csv / cmeps_map_atm.csv of the C_JRA_t62_inst run, fork cmeps 2673bd61). The law is dst_j = (sum_i W_ij x_i)/normOne_j over the source stencil of each destination cell, with the weights W taken AS DATA from the offline ESMF_RegridWeightGen mapping files (atm2ocn_conserve_fracarea.nc, atm2ocn_bilinear.nc - bit-identical to the online routehandle: stage1/analysis/check_cmeps_map.py replays both laws from the file weights at worst rel 0.0 over 1152 (field,step,cell) checks each) and normOne the field_normOne row sums (mapnorm='one': no source fraction factor). Both routehandles express the SAME law through the single EarthSciDiscretizations conservative_overlap_apply template imported by reference (${ESD_ROOT}/regridding/conservative_overlap.esm): ConserveMap binds the ESMF conserve weights as its A_ij data and the dumped normOne_consf as A_j; BilinearMap binds the bilinear weights and normOne_bilnr the same way. The mapnorm='lfrac' source weighting of the M9 lane's lnd->rof map is carried in the field (F_src = lfrac*x) rather than in a second template, so there is exactly one map law for every ESMF routehandle. Both models evaluate on the traced 12-cell window (the first masked cells of PET 0, gids 41583, 41584, 42123-42126, 42662-42667 - the same window as cmeps_merge.csv) with the full ESMF stencils (conserve: 3 distinct T62 source cells, <= 2 terms; bilinear: 8, exactly 4 terms), and the tests pin cmeps_map_ocn.csv cell-wise (coords over the 12 traced cells) at rel 1e-12 at the STEPS_PINNED = (1, 13, 24) steps of the 24-step window (the first, a middle and the last: the steps repeat the same map and the same stencils with smoothly drifting inputs, so three steps spanning the drift suffice): Faxa_snowl (conserve) and Sa_tbot, Sa_pbot (bilinear) - 108 assertions (the stage-1 replay is bit-exact; the engine's own summation order leaves ~1e-16 slack on these short stencils). The remaining dumped fields are configuration facts of the traced window, not law statements, and are unpinned as unfailable: Faxa_rainl/Faxa_rainc/Faxa_snowc are identically 0 on every traced row (the Gulf-of-Guinea window receives snowfall but no rain in this JRA January window), Sa_z is a constant 10 m source (the mapped constant equals itself to 2e-15), and Sa_pslv is bit-identical to Sa_pbot on every traced row (the unfailable-assertion precedent of the prep_ice round).