[petsc-users] [petsc-maint] Petsc install with complex number failed

Tu, Jiannan Jiannan_Tu at uml.edu
Thu Jul 7 06:26:14 CDT 2022


Barry,
Thank you very much for identifying the problem. There is a folder "petsc" in which a real number build is hold. For some unknown reason the build process entangled the folder "petsc" with the folder "petsc1". The problem is resolved by moving "petsc" to another place.

Jiannan

-----Original Message-----
From: Satish Balay <balay at mcs.anl.gov> 
Sent: Wednesday, July 6, 2022 4:15 PM
To: Tu, Jiannan <Jiannan_Tu at uml.edu>
Cc: PETSc <petsc-maint at mcs.anl.gov>; petsc-users at mcs.anl.gov
Subject: Re: [petsc-maint] Petsc install with complex number failed

> Using PETSC_DIR=/home/jiannantu/petsc1 and PETSC_ARCH=

> [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

These are 2 different installs of PETSc - I'm not sure why they are getting mixed up here.

Suggest doing a clean rebuild - and retrying 'make check'. You could use in-place install - i.e without prefix option - but 2 different PETSC_ARCH values - and switching between these builds [for make check] should be easier. [by switching 'make PETSC_ARCH=val1' vs 'make PETSC_ARCH=val2'

BTW: Its best if you do not cross-post to both petsc-users and petsc-maint

Satish

On Wed, 6 Jul 2022, Tu, Jiannan wrote:

> 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://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fpets
> c.org%2Frelease%2Ffaq%2F&data=05%7C01%7CJiannan_Tu%40uml.edu%7Cbb1
> bff95bd3a4f4576e308da5f8c38e1%7C4c25b8a617f746f983f054734ab81fb1%7C0%7
> C0%7C637927353862702620%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLC
> JQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000%7C%7C%7C&sdata
> =gmTzvak5acqvG9Oftxd6tyPrqnNrEyJTo4dpdyD0LHE%3D&reserved=0
> 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://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fpets
> c.org%2Frelease%2Ffaq%2F%23valgrind&data=05%7C01%7CJiannan_Tu%40um
> l.edu%7Cbb1bff95bd3a4f4576e308da5f8c38e1%7C4c25b8a617f746f983f054734ab
> 81fb1%7C0%7C0%7C637927353862702620%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4
> wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000%7C%7C%7
> C&sdata=mNwubprR0ZLL5Clme%2BKbENOaqrkVUGHzsElJ5KlcW90%3D&reser
> ved=0
> [0]PETSC ERROR: Corrupted memory
> [0]PETSC ERROR: See https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fpetsc.org%2Frelease%2Ffaq%2F&data=05%7C01%7CJiannan_Tu%40uml.edu%7Cbb1bff95bd3a4f4576e308da5f8c38e1%7C4c25b8a617f746f983f054734ab81fb1%7C0%7C0%7C637927353862702620%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000%7C%7C%7C&sdata=gmTzvak5acqvG9Oftxd6tyPrqnNrEyJTo4dpdyD0LHE%3D&reserved=0 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----------
> 
> 



More information about the petsc-users mailing list