The PETSc error messages seem to be handled by the PetscDolfinErrorHandler()
within the SubSystemsManager
-class. The corresponding messages are only printed if log_level is set to TRACE
or smaller.
So finally I get the following output, which contains the desired log messages (but also lots of other messages).
Elapsed wall, usr, sys time: 6.92e-07, 0, 0 (Number distributed mesh entities)
Elapsed wall, usr, sys time: 0.000116175, 0, 0 (Init dofmap from UFC dofmap)
Computing mesh entities of dimension 1
Elapsed wall, usr, sys time: 9.0111e-05, 0, 0 (Compute entities dim = 1)
Requesting connectivity 1 - 2.
Requesting connectivity 2 - 1.
Computing mesh connectivity 1 - 2 from transpose.
Elapsed wall, usr, sys time: 3.2968e-05, 0, 0 (Compute connectivity 1-2)
Determining node ownership for parallel dof map
Finished determining dof ownership for parallel dof map
Elapsed wall, usr, sys time: 8.41e-07, 0, 0 (SCOTCH: call SCOTCH_graphBuild)
Elapsed wall, usr, sys time: 9.357e-06, 0, 0 (SCOTCH: call SCOTCH_graphOrder)
Elapsed wall, usr, sys time: 7.3177e-05, 0, 0 (Compute SCOTCH graph re-ordering)
Elapsed wall, usr, sys time: 0.000542679, 0, 0 (Init dofmap)
DEBUG: [at /usr/lib/python2.7/dist-packages/dolfin/functions/expression.py:879 in _auto_select_element_from_shape()]
DEBUG: Automatic selection of expression element: <CG2 on a None>
Initializing PETSc (ignoring command-line arguments).
Elapsed wall, usr, sys time: 4.5001e-05, 0, 0 (Init PETSc)
Elapsed wall, usr, sys time: 7.448e-06, 0, 0 (Apply (PETScVector))
Elapsed wall, usr, sys time: 1.45e-06, 0, 0 (Apply (PETScVector))
Elapsed wall, usr, sys time: 0.000198863, 0, 0 (Init dof vector)
Elapsed wall, usr, sys time: 2.012e-06, 0, 0 (Apply (PETScVector))
Elapsed wall, usr, sys time: 1.211e-06, 0, 0 (Apply (PETScVector))
PetscDolfinErrorHandler: line '723', function 'TSComputeIFunction', file '/build/petsc-16ivCo/petsc-3.6.2.dfsg1/src/ts/interface/ts.c',
: error code '83' ( ), message follows:
------------------------------------------------------------------------------
Must call TSSetRHSFunction() and / or TSSetIFunction()
------------------------------------------------------------------------------
PetscDolfinErrorHandler: line '810', function 'TSStep_ARKIMEX', file '/build/petsc-16ivCo/petsc-3.6.2.dfsg1/src/ts/impls/arkimex/arkimex.c',
: error code '83' ( ), message follows:
------------------------------------------------------------------------------
------------------------------------------------------------------------------
PetscDolfinErrorHandler: line '3101', function 'TSStep', file '/build/petsc-16ivCo/petsc-3.6.2.dfsg1/src/ts/interface/ts.c',
: error code '83' ( ), message follows:
------------------------------------------------------------------------------
------------------------------------------------------------------------------
PetscDolfinErrorHandler: line '3285', function 'TSSolve', file '/build/petsc-16ivCo/petsc-3.6.2.dfsg1/src/ts/interface/ts.c',
: error code '83' ( ), message follows:
------------------------------------------------------------------------------
------------------------------------------------------------------------------
Traceback (most recent call last):
File "test.py", line 23, in <module>
ts.solve(x)
File "PETSc/TS.pyx", line 542, in petsc4py.PETSc.TS.solve (src/petsc4py.PETSc.c:182480)
petsc4py.PETSc.Error: error code 83
Maybe it would be nice to same a petsc_log_level or something.
best wishes
Florian