[petsc-dev] DM RefineLevel and CoarsenLevel

2012-05-06 Thread Jed Brown
Should the refinement level be copied over by DMCoarsen (and the coarsen level be copied by DMRefine)? It's useful for diagnostics to be able to define a universal level. If I use PCMG and -snes_grid_sequence, there is effectively a sequence like DMCreate(,dm0); // r=0,c=0 DMRefine(dm0,dmf); //

[petsc-dev] DM RefineLevel and CoarsenLevel

2012-05-06 Thread Matthew Knepley
That sounds fine to me. Matt On Sun, May 6, 2012 at 3:44 PM, Jed Brown jedbrown at mcs.anl.gov wrote: Should the refinement level be copied over by DMCoarsen (and the coarsen level be copied by DMRefine)? It's useful for diagnostics to be able to define a universal level. If I use PCMG

[petsc-dev] DM RefineLevel and CoarsenLevel

2012-05-06 Thread Barry Smith
Fine On May 6, 2012, at 2:44 PM, Jed Brown wrote: Should the refinement level be copied over by DMCoarsen (and the coarsen level be copied by DMRefine)? It's useful for diagnostics to be able to define a universal level. If I use PCMG and -snes_grid_sequence, there is effectively a

[petsc-dev] DM RefineLevel and CoarsenLevel

2012-05-06 Thread Jed Brown
Now the next round: For semi-coarsening, we used to have stuff like -da_refine_hierarchy_x 1,1,3 -da_refine_hierarchy_y 2,2,1 -da_refine_hierarchy_z 2,2,1. Two changes make this harder now: 1. You essentially got rid of DMRefineHierarchy (it's not called any more), so each call to DMRefine and

[petsc-dev] DM RefineLevel and CoarsenLevel

2012-05-06 Thread Matthew Knepley
On Sun, May 6, 2012 at 5:57 PM, Jed Brown jedbrown at mcs.anl.gov wrote: Now the next round: For semi-coarsening, we used to have stuff like -da_refine_hierarchy_x 1,1,3 -da_refine_hierarchy_y 2,2,1 -da_refine_hierarchy_z 2,2,1. Two changes make this harder now: 1. You essentially got rid

[petsc-dev] DM RefineLevel and CoarsenLevel

2012-05-06 Thread Jed Brown
http://petsc.cs.iit.edu/petsc/petsc-dev/rev/aa929236ce51 On Sun, May 6, 2012 at 1:57 PM, Barry Smith bsmith at mcs.anl.gov wrote: Fine On May 6, 2012, at 2:44 PM, Jed Brown wrote: Should the refinement level be copied over by DMCoarsen (and the coarsen level be copied by DMRefine)?

[petsc-dev] DM RefineLevel and CoarsenLevel

2012-05-06 Thread Jed Brown
The associated ugly hackery is here. I'd welcome suggestions for a better way to do this. http://petsc.cs.iit.edu/petsc/petsc-dev/rev/9943253a5ac2 On Sun, May 6, 2012 at 3:57 PM, Jed Brown jedbrown at mcs.anl.gov wrote: Now the next round: For semi-coarsening, we used to have stuff like