Skip to content

Commit

Permalink
A check failed error. Seems no longer need for the transpose/reshape …
Browse files Browse the repository at this point in the history
…as this has been fixed by changing the BulkGhostPenaltyAssembleRhsMap.
  • Loading branch information
amboschman committed Nov 8, 2024
1 parent 9f1b91e commit 39cb26c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion BulkGhostPenaltyAssembleMaps.jl
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ function Gridap.Fields.evaluate!(cache,m::BulkGhostPenaltyAssembleRhsMap,aggrega
Gridap.Arrays.setsize!(result,(size(contrib,1),max_local_dof_id))
else
@assert rank==1
Gridap.Arrays.setsize!(result,max_local_dof_id)
Gridap.Arrays.setsize!(result,(max_local_dof_id,))
end
result.array .= 0.0
for (i,cell) in enumerate(aggregate_local_cells)
Expand Down
5 changes: 4 additions & 1 deletion bulk_ghost_penalty_canvas_towardsdiv.jl
Original file line number Diff line number Diff line change
Expand Up @@ -538,9 +538,12 @@ test_div_dv_l2_proj_bb_dofs=lazy_map(\,p_lhs,test_rhs)

# TODO: can be removed if we fix the BulkGhostPenaltyAssembleRhsMap.
# transposed_test_div_dv_l2_proj_bb_dofs= lazy_map(x->collect(reshape(x,(size(x,1)))),lazy_map(transpose,test_div_dv_l2_proj_bb_dofs))
# test_div_dv_l2_proj_bb_array=lazy_map(Gridap.Fields.linear_combination,
# transposed_test_div_dv_l2_proj_bb_dofs,
# Gridap.CellData.get_data(qbb))

test_div_dv_l2_proj_bb_array=lazy_map(Gridap.Fields.linear_combination,
transposed_test_div_dv_l2_proj_bb_dofs,
test_div_dv_l2_proj_bb_dofs,
Gridap.CellData.get_data(qbb))
test_div_dv_l2_proj_bb_array_agg_cells=lazy_map(Broadcasting(),
lazy_map(Reindex(test_div_dv_l2_proj_bb_array),agg_cells_to_aggregate),
Expand Down

0 comments on commit 39cb26c

Please sign in to comment.