[petsc-users] PetscFECreateDefault in Fortran

2017-05-30 Thread Justin Pogacnik
Hello, I'm developing a finite element code in fortran 90. I recently updated my PETSc and am now getting the following error during compile/linking on an existing application: Undefined symbols for architecture x86_64: "_petscfecreatedefault_", referenced from: _MAIN__ in fe_test.o

Re: [petsc-users] How to VecView with a formatted precision (%10.8f) ?

2017-05-30 Thread Barry Smith
When I want "full precision" for debugging purposes I use PetscViewerPushFormat(viewer,PETSC_VIEWER_ASCII_MATLAB); > On May 30, 2017, at 2:14 AM, Franck Houssen wrote: > > Mainly for debugging purposes: controlling format/precision could be > convenient ! > > Franck > > ~> mpirun -n 5 .

Re: [petsc-users] Must I destroy the local matrix I have (created and) set with MatISSetLocalMat ?

2017-05-30 Thread Jed Brown
Franck Houssen writes: > Must I destroy the local matrix I have (created and) set with > MatISSetLocalMat ? The implementation references the local matrix so you need to destroy your copy. This pattern is always used when setting sub-objects like this. static PetscErrorCode MatISSetLocalMat_

Re: [petsc-users] Must I destroy the local matrix I have (created and) set with MatISSetLocalMat ?

2017-05-30 Thread Matthew Knepley
On Tue, May 30, 2017 at 2:21 AM, Franck Houssen wrote: > Must I destroy the local matrix I have (created and) set with > MatISSetLocalMat ? > Yes. Matt > Franck > -- What most experimenters take for granted before they begin their experiments is infinitely more interesting than any res

[petsc-users] Must I destroy the local matrix I have (created and) set with MatISSetLocalMat ?

2017-05-30 Thread Franck Houssen
Must I destroy the local matrix I have (created and) set with MatISSetLocalMat ? Franck

Re: [petsc-users] How to VecView with a formatted precision (%10.8f) ?

2017-05-30 Thread Franck Houssen
Mainly for debugging purposes: controlling format/precision could be convenient ! Franck ~> mpirun -n 5 ./vecViewPrecision.exe Vec Object: 5 MPI processes type: mpi Process [0] 0. 0. Process [1] 1.23457e+06 -8.1e-07 Process [2] 2.46914e-06 -1.62e+06 Process [3] 3.7037e+06 -2.43e-06 Process [