Skip to content
Snippets Groups Projects
Closed HYPRE Boomeramg produces error in tutorial
  • View options
  • HYPRE Boomeramg produces error in tutorial

  • View options
  • Closed Issue created

    I installed Hypre + PETSC with OpenFOAM-v2006 and tried to run the tutorials. The conjugate gradient based incompressible tutorial runs without any problems. However, when I change the preconditioner to boomeramg from hypre, I get the following run-time error without crash but faulty results:

    Time = 12
    
    PETSc-bicg:  Solving for Ux, Initial residual = 0.0424986, Final residual = 0.00211686, No Iterations 2
    PETSc-bicg:  Solving for Uy, Initial residual = 0.239484, Final residual = 0.0065804, No Iterations 3
    [0]PETSC ERROR: --------------------- Error Message --------------------------------------------------------------
    [0]PETSC ERROR: Null argument, when expecting valid pointer
    [0]PETSC ERROR: Trying to copy to a null pointer
    [0]PETSC ERROR: See https://www.mcs.anl.gov/petsc/documentation/faq.html for trouble shooting.
    [0]PETSC ERROR: Petsc Release Version 3.13.2, Jun 02, 2020 
    [0]PETSC ERROR: Unknown Name on a  named XXXXXXXXXXXXX Tue Sep  1 01:42:02 2020
    [0]PETSC ERROR: Configure options --prefix=/nfs/prg/OpenFOAM/ThirdParty-v2006/platforms/linux64GccDPInt32/petsc-3.13.2 --PETSC_DIR=/nfs/prg/OpenFOAM/ThirdParty-v2006/petsc-3.13.2 --with-petsc-arch=DPInt32 --with-clanguage=C --with-fc=0 --with-scalapack=0 --with-superlu_dist=0 --with-suitesparse=0 --with-x=0 --with-cc=/opt/ohpc/pub/mpi/openmpi-gnu/1.10.7/bin/mpicc --with-cxx=/opt/ohpc/pub/mpi/openmpi-gnu/1.10.7/bin/mpicxx --with-hypre-dir=/nfs/prg/OpenFOAM/ThirdParty-v2006/platforms/linux64GccDPInt32/hypre-2.19.0 --with-shared-libraries --with-64-bit-indices=0 --with-precision=double
    [0]PETSC ERROR: #199 PetscMemcpy() line 1623 in /nfs/prg/OpenFOAM/ThirdParty-v2006/petsc-3.13.2/include/petscsys.h
    [0]PETSC ERROR: #200 MatHYPRE_IJMatrixFastCopy_SeqAIJ() line 186 in /nfs/prg/OpenFOAM/ThirdParty-v2006/petsc-3.13.2/src/mat/impls/hypre/mhypre.c
    [0]PETSC ERROR: #201 MatHYPRE_IJMatrixCopy() line 146 in /nfs/prg/OpenFOAM/ThirdParty-v2006/petsc-3.13.2/src/mat/impls/hypre/mhypre.c
    [0]PETSC ERROR: #202 MatConvert_AIJ_HYPRE() line 399 in /nfs/prg/OpenFOAM/ThirdParty-v2006/petsc-3.13.2/src/mat/impls/hypre/mhypre.c
    [0]PETSC ERROR: #203 MatConvert() line 4220 in /nfs/prg/OpenFOAM/ThirdParty-v2006/petsc-3.13.2/src/mat/interface/matrix.c
    [0]PETSC ERROR: #204 PCSetUp_HYPRE() line 231 in /nfs/prg/OpenFOAM/ThirdParty-v2006/petsc-3.13.2/src/ksp/pc/impls/hypre/hypre.c
    [0]PETSC ERROR: #205 PCSetUp() line 894 in /nfs/prg/OpenFOAM/ThirdParty-v2006/petsc-3.13.2/src/ksp/pc/interface/precon.c
    [0]PETSC ERROR: #206 KSPSetUp() line 376 in /nfs/prg/OpenFOAM/ThirdParty-v2006/petsc-3.13.2/src/ksp/ksp/interface/itfunc.c
    [0]PETSC ERROR: --------------------- Error Message --------------------------------------------------------------
    [0]PETSC ERROR: Null argument, when expecting valid pointer
    [0]PETSC ERROR: Trying to copy to a null pointer
    [0]PETSC ERROR: See https://www.mcs.anl.gov/petsc/documentation/faq.html for trouble shooting.
    [0]PETSC ERROR: Petsc Release Version 3.13.2, Jun 02, 2020 
    [0]PETSC ERROR: Unknown Name on a  named XXXXXXXXXXXXX Tue Sep  1 01:42:02 2020
    [0]PETSC ERROR: Configure options --prefix=/nfs/prg/OpenFOAM/ThirdParty-v2006/platforms/linux64GccDPInt32/petsc-3.13.2 --PETSC_DIR=/nfs/prg/OpenFOAM/ThirdParty-v2006/petsc-3.13.2 --with-petsc-arch=DPInt32 --with-clanguage=C --with-fc=0 --with-scalapack=0 --with-superlu_dist=0 --with-suitesparse=0 --with-x=0 --with-cc=/opt/ohpc/pub/mpi/openmpi-gnu/1.10.7/bin/mpicc --with-cxx=/opt/ohpc/pub/mpi/openmpi-gnu/1.10.7/bin/mpicxx --with-hypre-dir=/nfs/prg/OpenFOAM/ThirdParty-v2006/platforms/linux64GccDPInt32/hypre-2.19.0 --with-shared-libraries --with-64-bit-indices=0 --with-precision=double
    [0]PETSC ERROR: #207 PetscMemcpy() line 1623 in /nfs/prg/OpenFOAM/ThirdParty-v2006/petsc-3.13.2/include/petscsys.h
    [0]PETSC ERROR: #208 MatHYPRE_IJMatrixFastCopy_SeqAIJ() line 186 in /nfs/prg/OpenFOAM/ThirdParty-v2006/petsc-3.13.2/src/mat/impls/hypre/mhypre.c
    [0]PETSC ERROR: #209 MatHYPRE_IJMatrixCopy() line 146 in /nfs/prg/OpenFOAM/ThirdParty-v2006/petsc-3.13.2/src/mat/impls/hypre/mhypre.c
    [0]PETSC ERROR: #210 MatConvert_AIJ_HYPRE() line 399 in /nfs/prg/OpenFOAM/ThirdParty-v2006/petsc-3.13.2/src/mat/impls/hypre/mhypre.c
    [0]PETSC ERROR: #211 MatConvert() line 4220 in /nfs/prg/OpenFOAM/ThirdParty-v2006/petsc-3.13.2/src/mat/interface/matrix.c
    [0]PETSC ERROR: #212 PCSetUp_HYPRE() line 231 in /nfs/prg/OpenFOAM/ThirdParty-v2006/petsc-3.13.2/src/ksp/pc/impls/hypre/hypre.c
    [0]PETSC ERROR: #213 PCSetUp() line 894 in /nfs/prg/OpenFOAM/ThirdParty-v2006/petsc-3.13.2/src/ksp/pc/interface/precon.c
    [0]PETSC ERROR: #214 KSPSetUp() line 376 in /nfs/prg/OpenFOAM/ThirdParty-v2006/petsc-3.13.2/src/ksp/ksp/interface/itfunc.c
    [0]PETSC ERROR: #215 KSPSolve_Private() line 633 in /nfs/prg/OpenFOAM/ThirdParty-v2006/petsc-3.13.2/src/ksp/ksp/interface/itfunc.c
    [0]PETSC ERROR: #216 KSPSolve() line 853 in /nfs/prg/OpenFOAM/ThirdParty-v2006/petsc-3.13.2/src/ksp/ksp/interface/itfunc.c
    PETSc-cg:  Solving for p, Initial residual = 0, Final residual = 0, No Iterations 0
    time step continuity errors : sum local = 20.1875, global = -17.4979, cumulative = -209.975
    PETSc-bicg:  Solving for epsilon, Initial residual = 0.110548, Final residual = 0.000659467, No Iterations 3
    PETSc-bicg:  Solving for k, Initial residual = 0.136465, Final residual = 0.0113479, No Iterations 2
    ExecutionTime = 1.46 s  ClockTime = 2 s
    
    Time = 13

    Any ideas what is the issue?

    -peksa

    Linked items ... 0

  • Activity

    • All activity
    • Comments only
    • History only
    • Newest first
    • Oldest first
    Loading Loading Loading Loading Loading Loading Loading Loading Loading Loading