[petsc-users] different periodicity per dof in DMDA?

Matteo Semplice matteo.semplice at uninsubria.it
Mon May 2 10:25:25 CDT 2022


I know that when I create a DMDA I can select periodic b.c. per grid 

I am facing a PDE with 2 dofs per node in which one dof has periodic 
b.c. in the x direction and the other one periodic b.c. in the y 
direction. Is there a (possibly quick-and-dirty) solution to represent 
this in a DM (not necessarily a DMDA)?

I understand the request it's strange, but I should add that we are 
experimenting numerically with this toy model, so in fact the b.c. may 
change in the future... just to stress once more that I am not after a 
perfect solution, but anything that would at least allow parallel runs 
with few processors would do for now.

Thanks in advance


More information about the petsc-users mailing list