[petsc-users] Petsc install with complex number failed

Tu, Jiannan Jiannan_Tu at uml.edu
Wed Jul 6 14:54:14 CDT 2022


I want to use PETSC with scalar as complex number. Configuration, make and install went well, but check failed with following error messages. Using built petsc to compile and run an existing code failed too with the error messages similar to what shown below. The configure options are

--download-f2cblaslapack=yes --with-mpi-dir=/usr/local --with-fc=0 --prefix=/home/jiannantu/petsc1 --with-scalar-type=complex

Could you please help me to identify what is doing wrong here?

Thank you,
Jiannan

-----------------------------------------------------------------------------
Running check examples to verify correct installation
Using PETSC_DIR=/home/jiannantu/petsc1 and PETSC_ARCH=
Possible error running C/C++ src/snes/tutorials/ex19 with 1 MPI process
See https://petsc.org/release/faq/
lid velocity = 0.0016, prandtl # = 1., grashof # = 1.
Number of SNES iterations = 0
[0]PETSC ERROR: PetscTrFreeDefault() called from VecDestroy_Seq() at /home/jiannantu/Downloads/petsc3.17/src/vec/vec/impls/seq/bvec2.c:694
[0]PETSC ERROR: Block [id=1423(20000)] at address 0x561c4240f7e0 is corrupted (probably write past end of array)
[0]PETSC ERROR: Block allocated in VecCreate_Seq() at /home/jiannantu/Downloads/petsc3.17/src/vec/vec/impls/seq/bvec3.c:34
[0]PETSC ERROR: --------------------- Error Message --------------------------------------------------------------
[0]PETSC ERROR: Memory corruption: https://petsc.org/release/faq/#valgrind
[0]PETSC ERROR: Corrupted memory
[0]PETSC ERROR: See https://petsc.org/release/faq/ for trouble shooting.
[0]PETSC ERROR: Petsc Release Version 3.17.3, unknown
[0]PETSC ERROR: ./ex19 on a named REXNET-WS4 by jiannantu Wed Jul  6 15:40:42 2022
[0]PETSC ERROR: Configure options --download-f2cblaslapack=yes --with-mpi-dir=/usr/local --with-openmp --with-fc=0 --prefix=/home/jiannantu/petsc --with-64-bit-indices=1
[0]PETSC ERROR: #1 PetscTrFreeDefault() at /home/jiannantu/Downloads/petsc3.17/src/sys/memory/mtr.c:306
[0]PETSC ERROR: #2 VecDestroy_Seq() at /home/jiannantu/Downloads/petsc3.17/src/vec/vec/impls/seq/bvec2.c:694
[0]PETSC ERROR: #3 VecDestroy() at /home/jiannantu/Downloads/petsc3.17/src/vec/vec/interface/vector.c:381
[0]PETSC ERROR: #4 SNESReset() at /home/jiannantu/Downloads/petsc3.17/src/snes/interface/snes.c:3340
[0]PETSC ERROR: #5 SNESDestroy() at /home/jiannantu/Downloads/petsc3.17/src/snes/interface/snes.c:3403
[0]PETSC ERROR: #6 main() at ex19.c:169
[0]PETSC ERROR: Reached the main program with an out-of-range error code 1. This should never happen
[0]PETSC ERROR: PETSc Option Table entries:
[0]PETSC ERROR: -da_refine 3
[0]PETSC ERROR: -ksp_type fgmres
[0]PETSC ERROR: -pc_type mg
[0]PETSC ERROR: -use_gpu_aware_mpi 0
[0]PETSC ERROR: ----------------End of Error Message -------send entire error message to petsc-maint at mcs.anl.gov----------

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20220706/0d2e61e9/attachment.html>


More information about the petsc-users mailing list