Make test error when compiling with petsc

36 views
Skip to first unread message

Nihar Bhardwaj Darbhamulla

unread,
Jul 9, 2024, 2:29:17 PM7/9/24
to deal.II User Group
Hello,

I get the following error when running make test on compiling deal.II with petsc. 

step-petsc.debug: RUN failed. Output:


----------------------------------------------------
Exception on processing:

--------------------------------------------------------
An error occurred in line <162> of file </home/obashp19/Third_Party/dealII/dealii-9.4.2/tests/quick_tests/step-petsc.cc> in function
    void LaplaceProblem::solve()
The violated condition was:
    res.l2_norm() < 1e-3
Additional information:
    This exception -- which is used in many places in the library --
    usually indicates that some condition which the author of the code
    thought must be satisfied at a certain point in an algorithm, is not
    fulfilled. An example would be that the first part of an algorithm
    sorts elements of an array in ascending order, and a second part of
    the algorithm later encounters an element that is not larger than the
    previous one.

    There is usually not very much you can do if you encounter such an
    exception since it indicates an error in deal.II, not in your own
    program. Try to come up with the smallest possible program that still
    demonstrates the error and contact the deal.II mailing lists with it
    to obtain help.

Stacktrace:
-----------
#0  /home/obashp19/Third_Party/dealII/dealii-9.4.2/build/tests/quick_tests/step-petsc.debug: LaplaceProblem::solve()
#1  /home/obashp19/Third_Party/dealII/dealii-9.4.2/build/tests/quick_tests/step-petsc.debug: LaplaceProblem::run()
#2  /home/obashp19/Third_Party/dealII/dealii-9.4.2/build/tests/quick_tests/step-petsc.debug: main
--------------------------------------------------------

Aborting!
----------------------------------------------------
^[[0m
^[[0m^[[0m
^[[0mstep-petsc.debug: ******    RUN failed    *******^[[0m
^[[0m^[[0m
^[[0m===============================    OUTPUT END   ===============================^[[0m
^[[0mExpected stage PASSED - aborting^[[0m
^[[31mCMake Error at /home/obashp19/Third_Party/dealII/dealii-9.4.2/cmake/scripts/run_test.cmake:144 (MESSAGE):
  *** abort

I'm looking for suggestions on where the compilation might have been wrong. I used the following command to run my Cmake based configuration.

cmake -DCMAKE_INSTALL_PREFIX=$HOME/Third_Party/dealII/dealii-9.4.2/dealII -DDEAL_II_WITH_MPI=ON -DDEAL_II_WITH_LAPACK=ON -DLAPACK_DIR=$HOME/Third_Party/dealII/lapack/lapack-3.11.0 -DMETIS_DIR=$HOME/Third_Party/dealII/metis/metis-5.1.0/ -DDEAL_II_WITH_PETSC=ON -DPETSC_DIR=$HOME/Third_Party/dealII/petsc/petsc-3.16.6 -DPETSC_ARCH=$PETSC_ARCH -DZLIB_DIR=$HOME/Third_Party/dealII/zlib/zlib-1.3.1 ../

Regards,
Nihar

Wolfgang Bangerth

unread,
Jul 17, 2024, 6:34:38 PM7/17/24
to dea...@googlegroups.com

On 7/9/24 12:29, Nihar Bhardwaj Darbhamulla wrote:
>
>
> I get the following error when running make test on compiling deal.II
> with petsc.

Nihar:
I'm not sure why the test would fail on your platform, but since the
version you use is already a couple of years old, would you mind trying
with the latest 9.5.x release? Does that also fail?

Best
W.
Reply all
Reply to author
Forward
0 new messages