Skip to content

Commit

Permalink
index for aream
Browse files Browse the repository at this point in the history
  • Loading branch information
iulian787 committed Nov 7, 2024
1 parent 3742c43 commit 28f8501
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion driver-moab/main/component_mod.F90
Original file line number Diff line number Diff line change
Expand Up @@ -615,7 +615,8 @@ subroutine component_init_aream(infodata, rof_c2_ocn, samegrid_ao, samegrid_al,
tagname='aream'//C_NULL_CHAR
nloc = mct_avect_lsize(dom_s%data)
allocate(data1(nloc))
data1 = dom_s%data%rAttr(ka,:)
km = mct_aVect_indexRa(dom_s%data, "aream" )
data1 = dom_s%data%rAttr(km,:)
ent_type = 1 ! element dense double tags
allocate(gids(nloc))
gids = dom_s%data%iAttr(mct_aVect_indexIA(dom_s%data,"GlobGridNum"),:)
Expand All @@ -628,6 +629,14 @@ subroutine component_init_aream(infodata, rof_c2_ocn, samegrid_ao, samegrid_al,
endif
deallocate(gids)
deallocate(data1)
#ifdef MOABDEBUG
ierr = iMOAB_WriteMesh(mbrxid, trim('recRofWithAream.h5m'//C_NULL_CHAR), &
trim(';PARALLEL=WRITE_PART'//C_NULL_CHAR))
if (ierr .ne. 0) then
write(logunit,*) subname,' error in writing rof mesh coupler '
call shr_sys_abort(subname//' ERROR in writing rof mesh coupler ')
endif
#endif
endif
endif
end if
Expand Down

0 comments on commit 28f8501

Please sign in to comment.