Skip to content

Commit

Permalink
Uncommenting reset
Browse files Browse the repository at this point in the history
Commenting 2D update flags
  • Loading branch information
amartinhuertas committed Mar 11, 2024
1 parent d1bf565 commit 065d08a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/OctreeDistributedDiscreteModels.jl
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,8 @@ function p6est_horizontally_adapt_update_flags!(ptr_pXest_old, ptr_pXest_new)
flags=unsafe_wrap(Array,
Ptr{Cint}(pXest_old.user_pointer),
pXest_old.columns[].local_num_quadrants)
pXest_update_flags!(P4estType(), flags, ptr_p4est_old, ptr_p4est_new)
println("XXX: $(flags)")
#pXest_update_flags!(P4estType(), flags, ptr_p4est_old, ptr_p4est_new)
end

function p6est_vertically_adapt_update_flags!(ptr_pXest_old, ptr_pXest_new)
Expand Down
2 changes: 1 addition & 1 deletion src/PXestTypeMethods.jl
Original file line number Diff line number Diff line change
Expand Up @@ -498,7 +498,7 @@ function p6est_horizontally_adapt_reset_callbacks()
q2_ptr=p2est_quadrant_array_index(forest.layers[], f)
@assert p2est_quadrant_is_equal(q2_ptr,layer_ptr)

#unsafe_store!(Ptr{Cint}(q2_ptr[].p.user_data), user_data, 1)
unsafe_store!(Ptr{Cint}(q2_ptr[].p.user_data), user_data, 1)
end

current_layer_within_column=current_layer_within_column+1
Expand Down

0 comments on commit 065d08a

Please sign in to comment.