Re: [petsc-users] Mat/Vec with empty ranks

2017-10-04 Thread Florian Lindner
Am 04.10.2017 um 18:08 schrieb Matthew Knepley: > I don't know if that is right. However, the sequential and parallel > algorithms agree on both the initial residual (so > that parallel > matrix and rhs appear correct) and the first iterate. Divergence of the > second iterate could still be a

Re: [petsc-users] How to interface with PETSc from another application?

2017-10-04 Thread Jed Brown
Matthew Knepley writes: > On Wed, Oct 4, 2017 at 6:52 PM, Klaus Burkart wrote: > >> Thank you for the hint, the problem becomes clearer, it's looking for >> libpetsc.so.3.7 which is not found but is located in the same directory >> as libpetsc.so but

Re: [petsc-users] How to interface with PETSc from another application?

2017-10-04 Thread Matthew Knepley
On Wed, Oct 4, 2017 at 6:52 PM, Klaus Burkart wrote: > Thank you for the hint, the problem becomes clearer, it's looking for > libpetsc.so.3.7 which is not found but is located in the same directory > as libpetsc.so but doesn't come with the .so ending > > ldd > >

Re: [petsc-users] How to interface with PETSc from another application?

2017-10-04 Thread Jed Brown
Klaus Burkart writes: > Adding the path to LD_LIBRARY_PATH doesn't help, the problems remain the > same, it has no effect You're having a problem linking correctly from the plugin, and maybe some error messages are being swallowed, but this is not a PETSc issue. You can

Re: [petsc-users] How to interface with PETSc from another application?

2017-10-04 Thread Jed Brown
Klaus Burkart writes: > When I link the petsc library, the application side code is not properly > compiled and the solver is not available for selection > > --> FOAM FATAL IO ERROR: > Unknown asymmetric matrix solver petGMRES There must be some earlier error message. >

Re: [petsc-users] How to interface with PETSc from another application?

2017-10-04 Thread Jed Brown
Klaus Burkart writes: > My setup: > > .bashrc > export PETSC_DIR=/home/klaus/OpenFOAM/klaus-5.0/petsc-3.7.6 > export PETSC_ARCH=arch-linux2-c-debug > export PETSC_CONFIGDIR=${PETSC_DIR}/lib/petsc > > > make options >     -I$(PETSC_CONFIGDIR)/conf \ The above should not be

Re: [petsc-users] How to interface with PETSc from another application?

2017-10-04 Thread Jed Brown
Klaus Burkart writes: > What's the concept to interface with PETSc from another application to solve > a linear system with PETSc? > > The standard procedure of the job: > > 1: The application provides a matrix which needs to be converted and be > loaded into PETSc > > 2:

Re: [petsc-users] Mat/Vec with empty ranks

2017-10-04 Thread Matthew Knepley
On Tue, Oct 3, 2017 at 10:27 PM, Florian Lindner wrote: > Am 03.10.2017 um 16:05 schrieb Matthew Knepley: > > On Mon, Oct 2, 2017 at 10:11 PM, Florian Lindner > wrote: > > > > > > > > Am 02.10.2017 um 21:04 schrieb