Skip to content

Commit

Permalink
Merge branch 'iulian787/moab_api_change' (PR #6523)
Browse files Browse the repository at this point in the history
Add an extra argument, related to CAAS filtering, in iMOAB mapping.

[BFB]
  • Loading branch information
rljacob authored Aug 16, 2024
2 parents 063fb3a + 2ff6e26 commit 5d44648
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion components/mpas-ocean/driver/ocn_comp_mct.F
Original file line number Diff line number Diff line change
Expand Up @@ -2952,6 +2952,8 @@ subroutine ocn_export_mct(o2x_o, errorCode) !{{{
block_ptr => block_ptr % next
end do

errorCode = 0

!-----------------------------------------------------------------------
!EOC

Expand Down Expand Up @@ -3936,7 +3938,6 @@ subroutine ocn_import_moab( Eclock, errorCode)!{{{
call mpas_dmpar_exch_halo_field(iceFluxDMSPField)
endif
endif
endif

!-----------------------------------------------------------------------
!EOC
Expand Down
4 changes: 3 additions & 1 deletion driver-moab/main/seq_map_mod.F90
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,7 @@ subroutine seq_map_map( mapper, av_s, av_d, fldlist, norm, avwts_s, avwtsfld_s,
real(r8), dimension(:), allocatable :: wghts
real(kind=r8) , allocatable :: targtags(:,:), targtags_ini(:,:)
real(kind=r8) :: factor
integer :: filter_type ! used for caas projection
#endif
!
! Local Variables
Expand Down Expand Up @@ -649,7 +650,8 @@ subroutine seq_map_map( mapper, av_s, av_d, fldlist, norm, avwts_s, avwtsfld_s,
call shr_sys_flush(logunit)
endif
#endif
ierr = iMOAB_ApplyScalarProjectionWeights ( mapper%intx_mbid, mapper%weight_identifier, fldlist_moab, fldlist_moab)
filter_type = 0 ! no
ierr = iMOAB_ApplyScalarProjectionWeights ( mapper%intx_mbid, filter_type, mapper%weight_identifier, fldlist_moab, fldlist_moab)
if (ierr .ne. 0) then
write(logunit,*) subname,' error in applying weights '
call shr_sys_abort(subname//' ERROR in applying weights')
Expand Down

0 comments on commit 5d44648

Please sign in to comment.