Topic: Problem with petsc on ubuntu

I am trying to compile the development version of oofem with petsc support on Ubuntu 18.4.
I compiled petsc-3.5.4 without problem.
oofem compiles as well.

However, when I try to run a input file with "lstype 3 smtype 7" I get a error message:
==========================================
[0]PETSC ERROR: Arguments are incompatible
[0]PETSC ERROR: Local size 12463 not compatible with block size 3
[0]PETSC ERROR: See http://www.mcs.anl.gov/petsc/documentation/faq.html for trouble shooting.
[0]PETSC ERROR: Petsc Release Version 3.5.4, May, 23, 2015
==========================================-

The input file wiorks with "lstype 0 smtype 1"

Does anybody know what the cause for this could be? Should I use a different version of petsc?

2

Re: Problem with petsc on ubuntu

Hi,
hard to say what went wrong, but looks like the problem is in the interface to PETSc. Have you used any specific PETSc options (-ksp_type. -pc_type, etc) ? Could you provide input file, so I can debug?

Borek

Re: Problem with petsc on ubuntu

I am not able to reproduce the error now.
Maybe there was a mistake in my model which caused this error message.