allow to parse extra options to PETSc in case of debugging

This commit is contained in:
Martin Diehl 2020-11-28 11:47:20 +01:00
parent 80c8c9e51e
commit b7ae2c72f5
1 changed files with 5 additions and 1 deletions

View File

@ -50,7 +50,11 @@ subroutine parallelization_init
if (threadLevel<MPI_THREAD_FUNNELED) error stop 'MPI library does not support OpenMP'
#endif
call PetscInitializeNoArguments(petsc_err) ! first line in the code according to PETSc manual
#if defined(DEBUG)
call PetscInitialize(PETSC_NULL_CHARACTER,petsc_err)
#else
call PetscInitializeNoArguments(petsc_err)
#endif
CHKERRQ(petsc_err)
#if defined(DEBUG) && defined(__INTEL_COMPILER)