Re: [petsc-users] DOF projection after dmforest adaption

2025-03-14 Thread Preda Silvia via petsc-users
On Fri, Mar 14, 2025 at 12:15 PM Preda Silvia via petsc-users mailto:petsc-users@mcs.anl.gov>> wrote: Hi, We are having a hard time understanding how the degrees of freedom are projected after a dmforest adaption. Having used before the P4EST library directly, we recall that there, a

[petsc-users] DOF projection after dmforest adaption

2025-03-14 Thread Preda Silvia via petsc-users
Hi, We are having a hard time understanding how the degrees of freedom are projected after a dmforest adaption. Having used before the P4EST library directly, we recall that there, a index mapping from quadrants present in the grid before and after adaption (1 to 1, 1 to many, many to 1, for un

[petsc-users] grid adaptivity with dmforest

2025-02-19 Thread Preda Silvia via petsc-users
Hi, I'm using the toycode below to manage adaptivity using a DMForest, based on p4est. The code simply performs three adaptivity steps on a square grid [0,1]x[0,1], uniformly refined at level 2 at the beginning. The minimum and the maximum level of refinement are set to 1 and 5, respectively.