<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Aptos;
panose-1:2 11 0 4 2 2 2 2 2 4;}
@font-face
{font-family:Menlo;
panose-1:2 11 6 9 3 8 4 2 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
font-size:12.0pt;
font-family:"Aptos",sans-serif;
mso-ligatures:standardcontextual;
mso-fareast-language:EN-US;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Aptos",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
{page:WordSection1;}
--></style>
</head>
<body lang="EN-GB" link="#467886" vlink="#96607D" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt">Hello,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">I am unsure why the program crashes even while running the code serially<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> petscErr = MatCreate(mesh.comm().get(), &par_G);<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> petscErr = MatSetType(par_G, MATMPIAIJ);
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> petscErr = MatSetSizes(par_G, local_num_rows, local_num_cols, total_num_rows, total_num_cols);
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> PetscInt d_nz = 2;<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> PetscInt o_nz = 2;<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> petscErr = MatMPIAIJSetPreallocation(par_G, d_nz, NULL, o_nz, NULL);<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> petscErr = VecCreateMPI(mesh.comm().get(),local_num_cols,total_num_cols,&par_xcoord);<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> petscErr = VecDuplicate(par_xcoord,&par_xvec);<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal" style="line-height:13.5pt;background:white"><span style="font-size:9.0pt;font-family:Menlo;color:black;mso-ligatures:none;mso-fareast-language:EN-GB"></span><span style="font-size:9.0pt;font-family:Menlo;color:#001080;mso-ligatures:none;mso-fareast-language:EN-GB">petscErr</span><span style="font-size:9.0pt;font-family:Menlo;color:black;mso-ligatures:none;mso-fareast-language:EN-GB">
= </span><span style="font-size:9.0pt;font-family:Menlo;color:#795E26;mso-ligatures:none;mso-fareast-language:EN-GB">MatMult</span><span style="font-size:9.0pt;font-family:Menlo;color:black;mso-ligatures:none;mso-fareast-language:EN-GB">(</span><span style="font-size:9.0pt;font-family:Menlo;color:#001080;mso-ligatures:none;mso-fareast-language:EN-GB">par_G</span><span style="font-size:9.0pt;font-family:Menlo;color:black;mso-ligatures:none;mso-fareast-language:EN-GB">,
</span><span style="font-size:9.0pt;font-family:Menlo;color:#001080;mso-ligatures:none;mso-fareast-language:EN-GB">par_xcoord</span><span style="font-size:9.0pt;font-family:Menlo;color:black;mso-ligatures:none;mso-fareast-language:EN-GB">,
</span><span style="font-size:9.0pt;font-family:Menlo;color:#001080;mso-ligatures:none;mso-fareast-language:EN-GB">par_xvec</span><span style="font-size:9.0pt;font-family:Menlo;color:black;mso-ligatures:none;mso-fareast-language:EN-GB">);<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:13.5pt;background:white"><span style="font-size:9.0pt;font-family:Menlo;color:black;mso-ligatures:none;mso-fareast-language:EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal" style="line-height:13.5pt;background:white"><span style="font-size:9.0pt;font-family:Menlo;color:black;mso-ligatures:none;mso-fareast-language:EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal" style="line-height:13.5pt;background:white"><span style="font-size:9.0pt;font-family:Menlo;color:black;mso-ligatures:none;mso-fareast-language:EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal" style="line-height:13.5pt;background:white"><span style="font-size:9.0pt;font-family:Menlo;color:black;mso-ligatures:none;mso-fareast-language:EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal" style="line-height:13.5pt;background:white"><span style="font-size:9.0pt;font-family:Menlo;color:black;mso-ligatures:none;mso-fareast-language:EN-GB">[0]PETSC ERROR: --------------------- Error Message --------------------------------------------------------------<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:13.5pt;background:white"><span style="font-size:9.0pt;font-family:Menlo;color:black;mso-ligatures:none;mso-fareast-language:EN-GB">[0]PETSC ERROR: Nonconforming object sizes<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:13.5pt;background:white"><span style="font-size:9.0pt;font-family:Menlo;color:black;mso-ligatures:none;mso-fareast-language:EN-GB">[0]PETSC ERROR: Mat mat,Vec y: global dim 40 25<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:13.5pt;background:white"><span style="font-size:9.0pt;font-family:Menlo;color:black;mso-ligatures:none;mso-fareast-language:EN-GB">[0]PETSC ERROR: WARNING! There are unused option(s) set! Could be the program crashed
before usage or a spelling mistake, etc!<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:13.5pt;background:white"><span style="font-size:9.0pt;font-family:Menlo;color:black;mso-ligatures:none;mso-fareast-language:EN-GB">[0]PETSC ERROR: Option left: name:--keep-cout (no value) source: command line<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:13.5pt;background:white"><span style="font-size:9.0pt;font-family:Menlo;color:black;mso-ligatures:none;mso-fareast-language:EN-GB">[0]PETSC ERROR: See <a href="https://urldefense.us/v3/__https://petsc.org/release/faq/__;!!G_uCfscf7eWS!eNf_b1At1lAvdYeAlplIXxQN9WwVYKe1gkVUZRvNkdF0V6JCbVOG_mYTuCQrp2rs8FMod_waFjX0LLNuAvMcHmdf7Hrzm4s3JaQT$">https://petsc.org/release/faq/</a> for trouble shooting.<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:13.5pt;background:white"><span style="font-size:9.0pt;font-family:Menlo;color:black;mso-ligatures:none;mso-fareast-language:EN-GB">[0]PETSC ERROR: Petsc Release Version 3.20.3, unknown <o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:13.5pt;background:white"><span style="font-size:9.0pt;font-family:Menlo;color:black;mso-ligatures:none;mso-fareast-language:EN-GB">[0]PETSC ERROR: ./example-dbg on a arch-moose named HC20210312 by karthikeyan.chockalingam
Thu Sep 5 22:16:54 2024<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:13.5pt;background:white"><span style="font-size:9.0pt;font-family:Menlo;color:black;mso-ligatures:none;mso-fareast-language:EN-GB">[0]PETSC ERROR: Configure options --with-64-bit-indices --with-cxx-dialect=C++17 --with-debugging=no
--with-fortran-bindings=0 --with-mpi=1 --with-openmp=1 --with-shared-libraries=1 --with-sowing=0 --download-fblaslapack=1 --download-hypre=1 --download-metis=1 --download-mumps=1 --download-ptscotch=1 --download-parmetis=1 --download-scalapack=1 --download-slepc=1
--download-strumpack=1 --download-superlu_dist=1 --download-bison=1 --download-hdf5=1 --with-hdf5-fortran-bindings=0 --download-hdf5-configure-arguments="--with-zlib" --with-make-np=4 <o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:13.5pt;background:white"><span style="font-size:9.0pt;font-family:Menlo;color:black;mso-ligatures:none;mso-fareast-language:EN-GB">[0]PETSC ERROR: #1 MatMult() at /Users/karthikeyan.chockalingam/moose/petsc/src/mat/interface/matrix.c:2587<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:13.5pt;background:white"><span style="font-size:9.0pt;font-family:Menlo;color:black;mso-ligatures:none;mso-fareast-language:EN-GB">Vec Object: 1 MPI process<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:13.5pt;background:white"><span style="font-size:9.0pt;font-family:Menlo;color:black;mso-ligatures:none;mso-fareast-language:EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Many thanks for the help!<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Karthik.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;mso-ligatures:none;mso-fareast-language:EN-GB">-- <o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><b><span style="font-size:10.5pt;font-family:"Arial",sans-serif;color:#2D2D62;mso-ligatures:none;mso-fareast-language:EN-GB">Karthik Chockalingam, Ph.D.<o:p></o:p></span></b></p>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Arial",sans-serif;color:black;mso-ligatures:none;mso-fareast-language:EN-GB">Senior Research Software Engineer</span><span style="font-size:10.5pt;font-family:"Calibri",sans-serif;color:black;mso-ligatures:none;mso-fareast-language:EN-GB"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Arial",sans-serif;color:black;mso-ligatures:none;mso-fareast-language:EN-GB">High Performance Systems Engineering Group</span><span style="font-size:10.5pt;font-family:"Calibri",sans-serif;color:black;mso-ligatures:none;mso-fareast-language:EN-GB"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Arial",sans-serif;color:black;mso-ligatures:none;mso-fareast-language:EN-GB">Hartree Centre | Science and Technology Facilities Council</span><span style="font-size:10.5pt;font-family:"Calibri",sans-serif;color:black;mso-ligatures:none;mso-fareast-language:EN-GB"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Arial",sans-serif;color:#212121;mso-ligatures:none;mso-fareast-language:EN-GB"><a href="mailto:karthikeyan.chockalingam@stfc.ac.uk"><span style="color:#0563C1">karthikeyan.chockalingam@stfc.ac.uk</span></a></span><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#212121;mso-ligatures:none;mso-fareast-language:EN-GB"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Times New Roman",serif;color:black;mso-ligatures:none;mso-fareast-language:EN-GB"> </span><span style="font-size:10.5pt;font-family:"Arial",sans-serif;color:#414141;mso-ligatures:none;mso-fareast-language:EN-GB"> </span><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#212121;mso-ligatures:none;mso-fareast-language:EN-GB"><o:p></o:p></span></p>
<p class="MsoNormal"><b><span style="font-size:10.5pt;font-family:"Arial",sans-serif;color:#414141;mso-ligatures:none;mso-fareast-language:EN-GB"> </span></b><span style="font-family:"Times New Roman",serif;color:#1F497D;mso-ligatures:none;mso-fareast-language:EN-GB"><img border="0" width="254" height="116" style="width:2.6458in;height:1.2083in" id="Picture_x0020_1" src="cid:image001.png@01DAFFE0.785F7550" alt="signature_3970890138"></span><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#212121;mso-ligatures:none;mso-fareast-language:EN-GB"><o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>