<div dir="ltr"><div dir="ltr">On Fri, Dec 27, 2024 at 2:57 AM jun hu via petsc-users <<a href="mailto:petsc-users@mcs.anl.gov">petsc-users@mcs.anl.gov</a>> wrote:</div><div class="gmail_quote gmail_quote_container"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><p><span>Dear Developer:</span></p><p><span>    I am a PETSc user and I have the following error when calculating 1 million grids using PETSc in my windows computer. It came up after calculating it for a while,</span></p></div></blockquote><div>This is an out-of-memory error. Perhaps you are holding onto memory? You can run a small run using -malloc_debug and</div><div>it will show unfreed memory at the end.</div><div><br></div><div>  Thanks,</div><div><br></div><div>    Matt</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><p><span><span>and before it could calculate many time steps.</span></span><span>I wanted to know what caused it. The following is the error message:</span><span> </span><span> </span></p><p>[1]PETSC ERROR: --------------------- Error Message --------------------------------------------------------------</p><p>[1]PETSC ERROR: MatSeqAIJSetPreallocation_SeqAIJ</p><p>[1]PETSC ERROR: See <a href="https://urldefense.us/v3/__https://petsc.org/release/faq/__;!!G_uCfscf7eWS!Yvk0IyBSNujv074PP5zehMZgi-UMJ2Gdw8YLIpjym2HIIXPdlZgEriAuhW47O-G879gHiHUPPkFysUrShi1LkTl9ZYck$" target="_blank">https://petsc.org/release/faq/</a> for trouble shooting.</p><p>[1]PETSC ERROR: Petsc Release Version 3.18.6, unknown</p><p>[1]PETSC ERROR: Unknown Name on a arch-mswin-c-opt named DESKTOP-B75P775 by Administrator Wed Dec 25 15:56:22 2024</p><p>[1]PETSC ERROR: Configure options --with-cc="win32fe cl" --with-cxx="win32fe cl" --with-fc=0 --with-debugging=0 --with-shared-libraries=0 --with-x=0 --with-quad-precision=0 --with-blaslapack-include=/cygdrive/c/PROGRA~2/Intel/oneAPI/mkl/latest/include --with-blaslapack-lib="-L/cygdrive/c/PROGRA~2/Intel/oneAPI/mkl/latest/lib/intel64 -L/cygdrive/c/PROGRA~2/Intel/oneAPI/compiler/latest/windows/compiler/lib/intel64_win mkl_core.lib mkl_intel_thread.lib</p><p>mkl_intel_lp64.lib libiomp5md.lib" --with-mpi-include=/cygdrive/c/PROGRA~2/Intel/oneAPI/mpi/latest/include --with-mpi-lib="-L/cygdrive/c/PROGRA~2/Intel/oneAPI/mpi/latest/lib/release impi.lib" --with-mpiexec=/cygdrive/c/PROGRA~2/Intel/oneAPI/mpi/latest/bin/mpiexec --with-metis-include=/cygdrive/d/PETSc/petsc-v3.18.6-pkgconfig//packages/pkg-metis/install/include --with-metis-lib="-L/cygdrive/d/PETSc/petsc-v3.18.6-pkgconfig//packages/pkg-metis/install/lib metis.lib" --with-parmetis-include=/cygdrive/d/PETSc/petsc-v3.18.6-pkgconfig//packages/pkg-parmetis/install/include --with-parmetis-lib="-L/cygdrive/d/PETSc/petsc-v3.18.6-pkgconfig//packages/pkg-parmetis/install/lib parmetis.lib" --with-hdf5-include=/cygdrive/d/PETSc/petsc-v3.18.6-pkgconfig//packages/pkg-hdf5/install/include --with-hdf5-lib="-L/cygdrive/d/PETSc/petsc-v3.18.6-pkgconfig//packages/pkg-hdf5/install/lib libhdf5.lib" --ignore-cygwin-link</p><p>[5]PETSC ERROR: --------------------- Error Message --------------------------------------------------------------</p><p>[5]PETSC ERROR: MatSeqAIJSetPreallocation_SeqAIJ</p><p>[5]PETSC ERROR: See <a href="https://urldefense.us/v3/__https://petsc.org/release/faq/__;!!G_uCfscf7eWS!Yvk0IyBSNujv074PP5zehMZgi-UMJ2Gdw8YLIpjym2HIIXPdlZgEriAuhW47O-G879gHiHUPPkFysUrShi1LkTl9ZYck$" target="_blank">https://petsc.org/release/faq/</a> for trouble shooting.</p><p>[5]PETSC ERROR: Petsc Release Version 3.18.6, unknown</p><p>[5]PETSC ERROR: Unknown Name on a arch-mswin-c-opt named DESKTOP-B75P775 by Administrator Wed Dec 25 15:56:22 2024</p><p>[5]PETSC ERROR: Configure options --with-cc="win32fe cl" --with-cxx="win32fe cl" --with-fc=0 --with-debugging=0 --with-shared-libraries=0 --with-x=0 --with-quad-precision=0 --with-blaslapack-include=/cygdrive/c/PROGRA~2/Intel/oneAPI/mkl/latest/include --with-blaslapack-lib="-L/cygdrive/c/PROGRA~2/Intel/oneAPI/mkl/latest/lib/intel64 -L/cygdrive/c/PROGRA~2/Intel/oneAPI/compiler/latest/windows/compiler/lib/intel64_win mkl_core.lib mkl_intel_thread.lib</p><p>mkl_intel_lp64.lib libiomp5md.lib" --with-mpi-include=/cygdrive/c/PROGRA~2/Intel/oneAPI/mpi/latest/include --with-mpi-lib="-L/cygdrive/c/PROGRA~2/Intel/oneAPI/mpi/latest/lib/release impi.lib" --with-mpiexec=/cygdrive/c/PROGRA~2/Intel/oneAPI/mpi/latest/bin/mpiexec --with-metis-include=/cygdrive/d/PETSc/petsc-v3.18.6-pkgconfig//packages/pkg-metis/install/include --with-metis-lib="-L/cygdrive/d/PETSc/petsc-v3.18.6-pkgconfig//packages/pkg-metis/install/lib metis.lib" --with-parmetis-include=/cygdrive/d/PETSc/petsc-v3.18.6-pkgconfig//packages/pkg-parmetis/install/include --with-parmetis-lib="-L/cygdrive/d/PETSc/petsc-v3.18.6-pkgconfig//packages/pkg-parmetis/install/lib parmetis.lib" --with-hdf5-include=/cygdrive/d/PETSc/petsc-v3.18.6-pkgconfig//packages/pkg-hdf5/install/include --with-hdf5-lib="-L/cygdrive/d/PETSc/petsc-v3.18.6-pkgconfig//packages/pkg-hdf5/install/lib libhdf5.lib" --ignore-cygwin-link</p><p>[4]PETSC ERROR: --------------------- Error Message --------------------------------------------------------------</p><p>[4]PETSC ERROR: MatSeqAIJSetPreallocation_SeqAIJ</p><p>[4]PETSC ERROR: See <a href="https://urldefense.us/v3/__https://petsc.org/release/faq/__;!!G_uCfscf7eWS!Yvk0IyBSNujv074PP5zehMZgi-UMJ2Gdw8YLIpjym2HIIXPdlZgEriAuhW47O-G879gHiHUPPkFysUrShi1LkTl9ZYck$" target="_blank">https://petsc.org/release/faq/</a> for trouble shooting.</p><p>[4]PETSC ERROR: Petsc Release Version 3.18.6, unknown</p><p>[4]PETSC ERROR: Unknown Name on a arch-mswin-c-opt named DESKTOP-B75P775 by Administrator Wed Dec 25 15:56:22 2024</p><p>[4]PETSC ERROR: Configure options --with-cc="win32fe cl" --with-cxx="win32fe cl" --with-fc=0 --with-debugging=0 --with-shared-libraries=0 --with-x=0 --with-quad-precision=0 --with-blaslapack-include=/cygdrive/c/PROGRA~2/Intel/oneAPI/mkl/latest/include --with-blaslapack-lib="-L/cygdrive/c/PROGRA~2/Intel/oneAPI/mkl/latest/lib/intel64 -L/cygdrive/c/PROGRA~2/Intel/oneAPI/compiler/latest/windows/compiler/lib/intel64_win mkl_core.lib mkl_intel_thread.lib</p><p>mkl_intel_lp64.lib libiomp5md.lib" --with-mpi-include=/cygdrive/c/PROGRA~2/Intel/oneAPI/mpi/latest/include --with-mpi-lib="-L/cygdrive/c/PROGRA~2/Intel/oneAPI/mpi/latest/lib/release impi.lib" --with-mpiexec=/cygdrive/c/PROGRA~2/Intel/oneAPI/mpi/latest/bin/mpiexec --with-metis-include=/cygdrive/d/PETSc/petsc-v3.18.6-pkgconfig//packages/pkg-metis/install/include --with-metis-lib="-L/cygdrive/d/PETSc/petsc-v3.18.6-pkgconfig//packages/pkg-metis/install/lib metis.lib" --with-parmetis-include=/cygdrive/d/PETSc/petsc-v3.18.6-pkgconfig//packages/pkg-parmetis/install/include --with-parmetis-lib="-L/cygdrive/d/PETSc/petsc-v3.18.6-pkgconfig//packages/pkg-parmetis/install/lib parmetis.lib" --with-hdf5-include=/cygdrive/d/PETSc/petsc-v3.18.6-pkgconfig//packages/pkg-hdf5/install/include --with-hdf5-lib="-L/cygdrive/d/PETSc/petsc-v3.18.6-pkgconfig//packages/pkg-hdf5/install/lib libhdf5.lib" --ignore-cygwin-link</p><p>[1]PETSC ERROR: #1 PetscMallocAlign() at D:\PETSc\petsc-v3.18.6-pkgconfig\src\sys\memory\mal.c:68</p><p>[1]PETSC ERROR: #2 PetscMallocA() at D:\PETSc\petsc-v3.18.6-pkgconfig\src\sys\memory\mal.c:410</p><p>[1]PETSC ERROR: #3 MatSeqAIJSetPreallocation_SeqAIJ() at D:\PETSc\petsc-v3.18.6-pkgconfig\src\mat\impls\aij\seq\aij.c:4008</p><p>[1]PETSC ERROR: #4 MatCreateSubMatrix_SeqAIJ() at D:\PETSc\petsc-v3.18.6-pkgconfig\src\mat\impls\aij\seq\aij.c:2588</p><p>[1]PETSC ERROR: #5 MatCreateSubMatrix_MPIAIJ_SameRowColDist() at D:\PETSc\petsc-v3.18.6-pkgconfig\src\mat\impls\aij\mpi\mpiaij.c:3283</p><p>[1]PETSC ERROR: #6 MatCreateSubMatrix_MPIAIJ() at D:\PETSc\petsc-v3.18.6-pkgconfig\src\mat\impls\aij\mpi\mpiaij.c:3390</p><p>[1]PETSC ERROR: #7 MatCreateSubMatrix() at D:\PETSc\petsc-v3.18.6-pkgconfig\src\mat\interface\matrix.c:8382</p><p>[1]PETSC ERROR: #8 SNESSolve_VINEWTONRSLS() at D:\PETSc\petsc-v3.18.6-pkgconfig\src\snes\impls\vi\rs\virs.c:392</p><p>[1]PETSC ERROR: [5]PETSC ERROR: #1 PetscMallocAlign() at D:\PETSc\petsc-v3.18.6-pkgconfig\src\sys\memory\mal.c:68</p><p>[5]PETSC ERROR: #2 PetscMallocA() at D:\PETSc\petsc-v3.18.6-pkgconfig\src\sys\memory\mal.c:410</p><p>[5]PETSC ERROR: #3 MatSeqAIJSetPreallocation_SeqAIJ() at D:\PETSc\petsc-v3.18.6-pkgconfig\src\mat\impls\aij\seq\aij.c:4008</p><p>[5]PETSC ERROR: #4 MatCreateSubMatrix_SeqAIJ() at D:\PETSc\petsc-v3.18.6-pkgconfig\src\mat\impls\aij\seq\aij.c:2588</p><p>[5]PETSC ERROR: #5 MatCreateSubMatrix_MPIAIJ_SameRowColDist() at D:\PETSc\petsc-v3.18.6-pkgconfig\src\mat\impls\aij\mpi\mpiaij.c:3283</p><p>[5]PETSC ERROR: #6 MatCreateSubMatrix_MPIAIJ() at D:\PETSc\petsc-v3.18.6-pkgconfig\src\mat\impls\aij\mpi\mpiaij.c:3390</p><p>[5]PETSC ERROR: #7 MatCreateSubMatrix() at D:\PETSc\petsc-v3.18.6-pkgconfig\src\mat\interface\matrix.c:8382</p><p>[5]PETSC ERROR: #8 SNESSolve_VINEWTONRSLS() at D:\PETSc\petsc-v3.18.6-pkgconfig\src\snes\impls\vi\rs\virs.c:392</p><p>[5]PETSC ERROR: [4]PETSC ERROR: #1 PetscMallocAlign() at D:\PETSc\petsc-v3.18.6-pkgconfig\src\sys\memory\mal.c:68</p><p>[4]PETSC ERROR: #2 PetscMallocA() at D:\PETSc\petsc-v3.18.6-pkgconfig\src\sys\memory\mal.c:410</p><p>[4]PETSC ERROR: #3 MatSeqAIJSetPreallocation_SeqAIJ() at D:\PETSc\petsc-v3.18.6-pkgconfig\src\mat\impls\aij\seq\aij.c:4008</p><p>[4]PETSC ERROR: #4 MatCreateSubMatrix_SeqAIJ() at D:\PETSc\petsc-v3.18.6-pkgconfig\src\mat\impls\aij\seq\aij.c:2588</p><p>[4]PETSC ERROR: #5 MatCreateSubMatrix_MPIAIJ_SameRowColDist() at D:\PETSc\petsc-v3.18.6-pkgconfig\src\mat\impls\aij\mpi\mpiaij.c:3283</p><p>[4]PETSC ERROR: #6 MatCreateSubMatrix_MPIAIJ() at D:\PETSc\petsc-v3.18.6-pkgconfig\src\mat\impls\aij\mpi\mpiaij.c:3390</p><p>#9 SNESSolve() at D:\PETSc\petsc-v3.18.6-pkgconfig\src\snes\interface\snes.c:4692</p><p>[4]PETSC ERROR: #7 MatCreateSubMatrix() at D:\PETSc\petsc-v3.18.6-pkgconfig\src\mat\interface\matrix.c:8382</p><p>[4]PETSC ERROR: #8 SNESSolve_VINEWTONRSLS() at D:\PETSc\petsc-v3.18.6-pkgconfig\src\snes\impls\vi\rs\virs.c:392</p><p>[4]PETSC ERROR: #9 SNESSolve() at D:\PETSc\petsc-v3.18.6-pkgconfig\src\snes\interface\snes.c:4692</p><p>#9 SNESSolve() at D:\PETSc\petsc-v3.18.6-pkgconfig\src\snes\interface\snes.c:4692</p><p><br></p></div></blockquote></div><div><br clear="all"></div><div><br></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>-- Norbert Wiener</div><div><br></div><div><a href="https://urldefense.us/v3/__http://www.cse.buffalo.edu/*knepley/__;fg!!G_uCfscf7eWS!eAD-KairPbYZWQ-aKVerz_lz1iMg9eDKuiDquFFftoE6orMSZ_p0mceQ-3CXYflKBORJAbSjb6b5vZAJvHCJ$" target="_blank">https://www.cse.buffalo.edu/~knepley/</a><br></div></div></div></div></div></div></div></div>