Skip to content

Commit

Permalink
project i2a only if ice_c2_atm is true
Browse files Browse the repository at this point in the history
we do initialize mapper_Fi2a, for domain checking ?
even if ice_c2_atm is false
in that case, do not augment with moab data, because
we do not want those projections
  • Loading branch information
iulian787 committed Apr 3, 2024
1 parent 05cfee5 commit 7e904e7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion driver-moab/main/prep_atm_mod.F90
Original file line number Diff line number Diff line change
Expand Up @@ -646,7 +646,8 @@ subroutine prep_atm_init(infodata, ocn_c2_atm, ice_c2_atm, lnd_c2_atm, iac_c2_at
'mapper_Fi2a initialization',esmf_map_flag, no_match)

#ifdef HAVE_MOAB
! now take care of the mapper for MOAB
! now take care of the mapper for MOAB, only if ice is coupled to atm !
if (ice_c2_atm) then
if ( mapper_Fi2a%src_mbid .gt. -1 ) then
if (iamroot_CPLID) then
write(logunit,F00) 'overwriting '//trim(mapper_Fi2a%mbname) &
Expand All @@ -662,6 +663,7 @@ subroutine prep_atm_init(infodata, ocn_c2_atm, ice_c2_atm, lnd_c2_atm, iac_c2_at
wgtIdef = 'scalar'//C_NULL_CHAR
mapper_Fi2a%weight_identifier = wgtIdef
mapper_Fi2a%mbname = 'mapper_Fi2a'
endif
#endif
endif ! if (ice_present) then
call shr_sys_flush(logunit)
Expand Down

0 comments on commit 7e904e7

Please sign in to comment.