[petsc-users] get a DOF component of DMDA and save it to file

Oleksandr Koshkarov olk548 at mail.usask.ca
Tue Apr 17 13:06:33 CDT 2018


Hello All,

I have a 3d DMDA with big DOF number. I want to save one component of 
DOF to the file, however I see only a solution where I create 3D DMDA 
with DOF=1, then copy a slice and then save the resulting vector with 
VecView. There should be a simpler way. I hope you can help me with this :)

Thank you,

Oleksandr Koshkarov.



More information about the petsc-users mailing list