<div dir="ltr"><div><div><div><div>Hi all,<br><br></div>So in my DMPlex FEM (serial) simulations, I want to output the solution U to a binary file. I have the following:<br><br></div>ierr = PetscViewerBinaryOpen(PETSC_COMM_WORLD,"sol.dat",FILE_MODE_WRITE,&viewer);CHKERRQ(ierr);<br>ierr = VecView(U,viewer);CHKERRQ(ierr);<br>ierr = PetscViewerDestroy(&viewer);CHKERRQ(ierr);<br><br></div>The mesh I am solving has 13368 nodes, and 404 of them are constrained using the DMPlexAddBoundary(...)  function. However, when I output the vector I only get 12964 values, which I believe is leaving out the 404 constrained ones. How do I get all dofs in the vector U (both free and constrained) printed?<br><br></div>Thanks,<br><br clear="all"><br>-- <br><div class="gmail_signature"><div dir="ltr"><div><div><div>Justin Chang<br></div>PhD Candidate, Civil Engineering - Computational Sciences<br></div>University of Houston, Department of Civil and Environmental Engineering<br></div>Houston, TX 77004<br>(512) 963-3262<br></div></div></div>