Author Topic: Petsc Error: Caught signal number 11 SEGV  (Read 5356 times)

pbstone

  • New Member
  • *
  • Posts: 5
Petsc Error: Caught signal number 11 SEGV
« on: November 25, 2016, 12:40:07 AM »
Dear FEAP Users,

I have a problem running a parallel example. I am able to split the serial import file to
solve it with the installed petsc solvers running mpirun.

My problem is that there is an error message and I can not identify the reason.
Maybe someone had the same problem before or someone can figure out the reason.
I am using Feap8_4 and the petsc 3.7.4.

I will attach the used files and the produced error message.

I will be grateful for any hide.

Best regards

Thomas

Prof. R.L. Taylor

  • Administrator
  • FEAP Guru
  • *****
  • Posts: 2648
Re: Petsc Error: Caught signal number 11 SEGV
« Reply #1 on: November 25, 2016, 09:13:43 AM »
Do you have one or two domains?  You only posted the 0001 file there should be a 0002 file too?

Prof. S. Govindjee

  • Administrator
  • FEAP Guru
  • *****
  • Posts: 1160
Re: Petsc Error: Caught signal number 11 SEGV
« Reply #2 on: November 25, 2016, 09:19:29 AM »
In the 3.7.X release of PETSc, they changed the syntax for PetscGetOptionsString.  If you change line 312 in pdomain.F to:
Code: [Select]
      call PetscOptionsGetString(PETSC_NULL_OBJECT,PETSC_NULL_CHARACTER,
     &     '-pc_type',optstr,chk,ierr)
it should work.   But beware that they are other changes need to get parfeap to work with 3.7.4.  You get all the changes you will need to look through the Petsc release notes.  I have a working version with 3.7.3, I will try to grep the changes and post them.
« Last Edit: November 25, 2016, 09:35:47 AM by Prof. S. Govindjee »

Prof. S. Govindjee

  • Administrator
  • FEAP Guru
  • *****
  • Posts: 1160
Re: Petsc Error: Caught signal number 11 SEGV
« Reply #3 on: November 25, 2016, 09:34:48 AM »
Seems there were not too many changes.  Here is a list of the ones that I found commented in my code:
Code: [Select]
pdomain.F:!       6. update PetscOptionsXXX( ) for v3.7               16/05/2016
usolve.F:!      16. Update PetscOptionsXXX( ) for v3.7               16/05/2016
So this is just the one I mentioned already but also in usolve.F.  Then in lots of the files, you also need the change
Code: [Select]
filargs.F:!       4. finclude -> petsc/finclude                       12/05/2016
but you probably already have this if you got your code to compile.

pbstone

  • New Member
  • *
  • Posts: 5
Re: Petsc Error: Caught signal number 11 SEGV
« Reply #4 on: November 28, 2016, 11:55:42 PM »
Thank you Prof. Taylor and Prof. Govindjee,

I only posted the first file, because of the limitation to upload 4 files. The partition process seems to work quiet well.

To the answer of Prof. Govindjee:

Thanks a lot for this solution. I will add this changes to the files and will report the results.