<head><!-- BaNnErBlUrFlE-HeAdEr-start -->
<style>
  #pfptBannern25xe8q { all: revert !important; display: block !important; 
    visibility: visible !important; opacity: 1 !important; 
    background-color: #D0D8DC !important; 
    max-width: none !important; max-height: none !important }
  .pfptPrimaryButtonn25xe8q:hover, .pfptPrimaryButtonn25xe8q:focus {
    background-color: #b4c1c7 !important; }
  .pfptPrimaryButtonn25xe8q:active {
    background-color: #90a4ae !important; }
</style>

<!-- BaNnErBlUrFlE-HeAdEr-end -->
</head><!-- BaNnErBlUrFlE-BoDy-start -->
<!-- Preheader Text : BEGIN -->
<div style="display:none !important;display:none;visibility:hidden;mso-hide:all;font-size:1px;color:#ffffff;line-height:1px;height:0px;max-height:0px;opacity:0;overflow:hidden;">
 Thanks, Stefano, I am trying to modify the code as follows, MatCreate(PETSC_COMM_WORLD, &A); MatSetSizes(A, PETSC_DECIDE, PETSC_DECIDE, numberDof_global, numberDof_global); MatSetType(A, MATIS); MatSetUp(A); MatZeroEntries(A); VecCreate(PETSC_COMM_WORLD,
</div>
<!-- Preheader Text : END -->

<!-- Email Banner : BEGIN -->
<div style="display:none !important;display:none;visibility:hidden;mso-hide:all;font-size:1px;color:#ffffff;line-height:1px;height:0px;max-height:0px;opacity:0;overflow:hidden;">ZjQcmQRYFpfptBannerStart</div>

<!--[if ((ie)|(mso))]>
  <table border="0" cellspacing="0" cellpadding="0" width="100%" style="padding: 16px 0px 16px 0px; direction: ltr" ><tr><td>
    <table border="0" cellspacing="0" cellpadding="0" style="padding: 0px 10px 5px 6px; width: 100%; border-radius:4px; border-top:4px solid #90a4ae;background-color:#D0D8DC;"><tr><td valign="top">
      <table align="left" border="0" cellspacing="0" cellpadding="0" style="padding: 4px 8px 4px 8px">
        <tr><td style="color:#000000; font-family: 'Arial', sans-serif; font-weight:bold; font-size:14px; direction: ltr">
          This Message Is From an External Sender
        </td></tr>
        <tr><td style="color:#000000; font-weight:normal; font-family: 'Arial', sans-serif; font-size:12px; direction: ltr">
          This message came from outside your organization.
        </td></tr>

      </table>

    </td></tr></table>
  </td></tr></table>
<![endif]-->

<![if !((ie)|(mso))]>
  <div dir="ltr"  id="pfptBannern25xe8q" style="all: revert !important; display:block !important; text-align: left !important; margin:16px 0px 16px 0px !important; padding:8px 16px 8px 16px !important; border-radius: 4px !important; min-width: 200px !important; background-color: #D0D8DC !important; background-color: #D0D8DC; border-top: 4px solid #90a4ae !important; border-top: 4px solid #90a4ae;">
    <div id="pfptBannern25xe8q" style="all: unset !important; float:left !important; display:block !important; margin: 0px 0px 1px 0px !important; max-width: 600px !important;">
      <div id="pfptBannern25xe8q" style="all: unset !important; display:block !important; visibility: visible !important; background-color: #D0D8DC !important; color:#000000 !important; color:#000000; font-family: 'Arial', sans-serif !important; font-family: 'Arial', sans-serif; font-weight:bold !important; font-weight:bold; font-size:14px !important; line-height:18px !important; line-height:18px">
        This Message Is From an External Sender
      </div>
      <div id="pfptBannern25xe8q" style="all: unset !important; display:block !important; visibility: visible !important; background-color: #D0D8DC !important; color:#000000 !important; color:#000000; font-weight:normal; font-family: 'Arial', sans-serif !important; font-family: 'Arial', sans-serif; font-size:12px !important; line-height:18px !important; line-height:18px; margin-top:2px !important;">
This message came from outside your organization.
      </div>

    </div>

    <div style="clear: both !important; display: block !important; visibility: hidden !important; line-height: 0 !important; font-size: 0.01px !important; height: 0px"> </div>
  </div>
<![endif]>

<div style="display:none !important;display:none;visibility:hidden;mso-hide:all;font-size:1px;color:#ffffff;line-height:1px;height:0px;max-height:0px;opacity:0;overflow:hidden;">ZjQcmQRYFpfptBannerEnd</div>
<!-- Email Banner : END -->

<!-- BaNnErBlUrFlE-BoDy-end -->
<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">Thanks,  Stefano, <div><br></div><div>I am trying to modify the code as follows, </div><div><div style="color:rgb(212,212,212);background-color:rgb(30,30,30);font-family:"Droid Sans Mono","monospace",monospace;font-size:14px;line-height:19px"><div><div><span style="color:rgb(220,220,170)">MatCreate</span>(PETSC_COMM_WORLD, &A);</div><div>  <span style="color:rgb(220,220,170)">MatSetSizes</span>(A, PETSC_DECIDE, PETSC_DECIDE, numberDof_global, numberDof_global);</div><div>  <span style="color:rgb(220,220,170)">MatSetType</span>(A, MATIS);</div><div>  <span style="color:rgb(220,220,170)">MatSetUp</span>(A);</div><div>  <span style="color:rgb(220,220,170)">MatZeroEntries</span>(A);</div><div>  <span style="color:rgb(220,220,170)">VecCreate</span>(PETSC_COMM_WORLD, &b);</div><div>  <span style="color:rgb(220,220,170)">VecSetSizes</span>(b, PETSC_DECIDE,  numberDof_global);</div><div>  <span style="color:rgb(220,220,170)">VecSetUp</span>(b);</div><div>  <span style="color:rgb(220,220,170)">VecSet</span>(b,<span style="color:rgb(181,206,168)">0.0</span>);</div><div>  <span style="color:rgb(220,220,170)">VecDuplicate</span>(b, &x);</div></div><div><br></div><div><span style="color:rgb(86,156,214)">const</span> PetscInt        *g_idx;</div><div>ISLocalToGlobalMapping ltogm;</div><div><span style="color:rgb(220,220,170)">DMGetLocalToGlobalMapping</span>(dm, &ltogm);</div><div><span style="color:rgb(220,220,170)">ISLocalToGlobalMappingGetIndices</span>(ltogm, &g_idx);<br></div><div><br></div><div>//Build idxm_global and Set LHS</div><div><div><span style="color:rgb(156,220,254)">idxm_Global</span>[ idxDofLocal ] = <span style="color:rgb(156,220,254)">g_idx</span>[  numdofPerFace*<span style="color:rgb(156,220,254)">idxm</span>[idxDofLocal]];</div><div><div style="line-height:19px"><div><span style="color:rgb(220,220,170)">MatSetValues</span>(A, numberDof_local, <span style="color:rgb(156,220,254)">idxm_Global</span>.<span style="color:rgb(220,220,170)">data</span>(), numberDof_local, <span style="color:rgb(156,220,254)">idxm_Global</span>.<span style="color:rgb(220,220,170)">data</span>(), <span style="color:rgb(156,220,254)">MatrixLocal</span>.<span style="color:rgb(220,220,170)">data</span>(), ADD_VALUES);</div><div></div></div></div></div><div><br></div><div>//Set RHS</div><div><div style="white-space-collapse: preserve;">PetscScalar valueDiag = <span style="color:rgb(181,206,168)">1.0</span> ;</div><div style="white-space-collapse: preserve;">  <span style="color:rgb(220,220,170)">MatZeroRows</span>(A, <span style="color:rgb(156,220,254)">objGeometryInfo</span>.<span style="color:rgb(156,220,254)">numberDof_Dirichlet</span>, (<span style="color:rgb(156,220,254)">objGeometryInfo</span>.<span style="color:rgb(156,220,254)">arrayDofSeqGlobal_Dirichlet</span>).<span style="color:rgb(220,220,170)">data</span>(), valueDiag, <span style="color:rgb(181,206,168)">0</span>, <span style="color:rgb(181,206,168)">0</span>);</div><br style="white-space-collapse: preserve;"><div style="white-space-collapse: preserve;">  <span style="color:rgb(220,220,170)">VecSetValues</span>(b, <span style="color:rgb(156,220,254)">objGeometryInfo</span>.<span style="color:rgb(156,220,254)">numberDof_Dirichlet</span>, (<span style="color:rgb(156,220,254)">objGeometryInfo</span>.<span style="color:rgb(156,220,254)">arrayDofSeqGlobal_Dirichlet</span>).<span style="color:rgb(220,220,170)">data</span>(), (<span style="color:rgb(156,220,254)">objGeometryInfo</span>.<span style="color:rgb(156,220,254)">dof_Dirichlet</span>).<span style="color:rgb(220,220,170)">data</span>(), INSERT_VALUES);</div><div style="white-space-collapse: preserve;">  <span style="color:rgb(220,220,170)">VecSetValues</span>(x, <span style="color:rgb(156,220,254)">objGeometryInfo</span>.<span style="color:rgb(156,220,254)">numberDof_Dirichlet</span>, (<span style="color:rgb(156,220,254)">objGeometryInfo</span>.<span style="color:rgb(156,220,254)">arrayDofSeqGlobal_Dirichlet</span>).<span style="color:rgb(220,220,170)">data</span>(), (<span style="color:rgb(156,220,254)">objGeometryInfo</span>.<span style="color:rgb(156,220,254)">dof_Dirichlet</span>).<span style="color:rgb(220,220,170)">data</span>(), INSERT_VALUES);</div><div style="white-space-collapse: preserve;">  <span style="color:rgb(220,220,170)">ISLocalToGlobalMappingRestoreIndices</span>(ltogm, &g_idx);</div><div style="white-space-collapse: preserve;">  <span style="color:rgb(220,220,170)">VecAssemblyBegin</span>(b);</div><div style="white-space-collapse: preserve;">  <span style="color:rgb(220,220,170)">VecAssemblyEnd</span>(b);</div><div style="white-space-collapse: preserve;">  <span style="color:rgb(220,220,170)">VecAssemblyBegin</span>(x);</div><div style="white-space-collapse: preserve;">  <span style="color:rgb(220,220,170)">VecAssemblyEnd</span>(x);</div></div></div></div><div>It shows the attached error when I run the code. It seems something wrong is with setting RHS.</div><div>Could you please help me double check my above code to setup the RHS? </div><div>Thanks,</div></div></div></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Jul 30, 2024 at 11:56 AM Stefano Zampini <<a href="mailto:stefano.zampini@gmail.com" target="_blank">stefano.zampini@gmail.com</a>> wrote:<br></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">BDDC needs the matrix in MATIS format. Using MatConvert will give you back the right format, but the subdomain matrices are wrong. You need to assemble directly in MATIS format, something like<div><br></div><div>MatCreate(comm,&A)</div><div>MatSetType(A,MATIS)</div><div>MatSetLocalToGlobalMapping(A,l2gmap, l2gmap)</div><div>for e in local_elements:</div><div>   E = compute_element_matrix(e)</div><div>   MatSetValues(A,local_element_dofs,local_element_dofs,....)</div><div><br></div><div>l2gmap is an ISLocalToGlobalMapping that stores the global dof number of the dofs that are local to the mesh</div><div><br></div><div>See e.g.  <a href="https://urldefense.us/v3/__https://gitlab.com/petsc/petsc/-/blob/main/src/ksp/ksp/tutorials/ex59.c?ref_type=heads__;!!G_uCfscf7eWS!cDRkl4iAuyMeT5FvByDeeIBRUN6lrFt7MnusMnOcqch-xF5D2nGsgMCZN6-FBjxF1G_dSiPtnq7Yj-RlBHZiiQ$" target="_blank">https://gitlab.com/petsc/petsc/-/blob/main/src/ksp/ksp/tutorials/ex59.c?ref_type=heads</a> or <a href="https://urldefense.us/v3/__https://gitlab.com/petsc/petsc/-/blob/main/src/ksp/ksp/tutorials/ex71.c?ref_type=heads__;!!G_uCfscf7eWS!cDRkl4iAuyMeT5FvByDeeIBRUN6lrFt7MnusMnOcqch-xF5D2nGsgMCZN6-FBjxF1G_dSiPtnq7Yj-REAmdXuA$" target="_blank">https://gitlab.com/petsc/petsc/-/blob/main/src/ksp/ksp/tutorials/ex71.c?ref_type=heads</a></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Il giorno mar 30 lug 2024 alle ore 17:50 neil liu <<a href="mailto:liufield@gmail.com" target="_blank">liufield@gmail.com</a>> ha scritto:<br></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"><div dir="ltr"><div dir="ltr"><div dir="ltr">Hi, <div>I am trying to use PCBDDC for the vector based FEM. (Complex system, double precision )</div><div>My code can work well with <b>asm</b>, </div><div><div>petsc-3.21.1/petsc/arch-linux-c-opt/bin/mpirun -n 8 ./app -pc_type asm -pc_asm_overlap 6  -ksp_converged_reason -ksp_view -ksp_gmres_modifiedgramschmidt  -ksp_gmres_restart 1500 -ksp_rtol 1e-8 -ksp_monitor -ksp_max_it 100000</div></div><div><br></div><div>When I tried BDDC, it was stuck for solving the linear system (it can not print anything for ksp_monitor). I did the conversion for matrix, </div><div><br></div><div><div><b>   Mat J;</b></div><div><b>   MatConvert(A, MATIS, MAT_INITIAL_MATRIX, &J);</b></div><div><b>   KSPSetOperators(ksp, A, J);</b></div><div><b>   MatDestroy(&J);</b></div><div><b>   KSPSetInitialGuessNonzero(ksp, PETSC_TRUE);</b></div><div><b>   KSPSetFromOptions(ksp);</b></div></div><div><br></div><div>petsc-3.21.1/petsc/arch-linux-c-debug/bin/mpirun -n 2 ./app -ksp_type cg -pc_type bddc -ksp_monitor  -mat_type is </div><div><br></div><div>Do you have any suggestions? </div><div><br></div><div>Thanks ,</div><div>Xiaodong </div><div><br></div></div></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Jul 29, 2024 at 6:19 PM neil liu <<a href="mailto:liufield@gmail.com" target="_blank">liufield@gmail.com</a>> wrote:<br></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">When I compile with real data, <div>it shows the attached error.</div><div><br></div><div>The data file is in binary format, right? </div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Jul 29, 2024 at 5:36 PM Stefano Zampini <<a href="mailto:stefano.zampini@gmail.com" target="_blank">stefano.zampini@gmail.com</a>> wrote:<br></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="auto">Your PETSc installation is for complex,  data is for real</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Jul 29, 2024, 23:14 neil liu <<a href="mailto:liufield@gmail.com" target="_blank">liufield@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">





<div style="font-size:1px;color:rgb(255,255,255);line-height:1px;height:0px;max-height:0px;opacity:0;overflow:hidden;display:none">
 I compiled Petsc with single precision. However, it is not converged with the data. Please see the attached file. On Mon, Jul 29, 2024 at 4: 25 PM Barry Smith <bsmith@ petsc. dev> wrote: This can happen if the data was stored in single precision
</div>



<div style="font-size:1px;color:rgb(255,255,255);line-height:1px;height:0px;max-height:0px;opacity:0;overflow:hidden;display:none">ZjQcmQRYFpfptBannerStart</div>



<u></u>
  <div dir="ltr" id="m_-4396857026391268921m_6884232443723312085m_-6590455808610094212m_7732474076351893m_-5300983367603411026m_-4830749107460118727m_7814453640049424406pfptBannerjh3984n" style="display:block;text-align:left;margin:16px 0px;padding:8px 16px;border-radius:4px;min-width:200px;background-color:rgb(208,216,220);border-top:4px solid rgb(144,164,174)">
    <div id="m_-4396857026391268921m_6884232443723312085m_-6590455808610094212m_7732474076351893m_-5300983367603411026m_-4830749107460118727m_7814453640049424406pfptBannerjh3984n" style="float:left;display:block;margin:0px 0px 1px;max-width:600px">
      <div id="m_-4396857026391268921m_6884232443723312085m_-6590455808610094212m_7732474076351893m_-5300983367603411026m_-4830749107460118727m_7814453640049424406pfptBannerjh3984n" style="display:block;background-color:rgb(208,216,220);color:rgb(0,0,0);font-family:Arial,sans-serif;font-weight:bold;font-size:14px;line-height:18px">
        This Message Is From an External Sender
      </div>
      <div id="m_-4396857026391268921m_6884232443723312085m_-6590455808610094212m_7732474076351893m_-5300983367603411026m_-4830749107460118727m_7814453640049424406pfptBannerjh3984n" style="font-weight:normal;display:block;background-color:rgb(208,216,220);color:rgb(0,0,0);font-family:Arial,sans-serif;font-size:12px;line-height:18px;margin-top:2px">
This message came from outside your organization.
      </div>

    </div>

    <div style="height:0px;clear:both;display:block;line-height:0;font-size:0.01px"> </div>
  </div>
<u></u>

<div style="font-size:1px;color:rgb(255,255,255);line-height:1px;height:0px;max-height:0px;opacity:0;overflow:hidden;display:none">ZjQcmQRYFpfptBannerEnd</div>



<div dir="ltr">I compiled Petsc with single precision. However, it is not converged with the data. <div><br></div><div>Please see the attached file. </div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Jul 29, 2024 at 4:25 PM Barry Smith <<a href="mailto:bsmith@petsc.dev" rel="noreferrer" target="_blank">bsmith@petsc.dev</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div><br></div>   This can happen if the data was stored in single precision and PETSc was built for double.<div><br id="m_-4396857026391268921m_6884232443723312085m_-6590455808610094212m_7732474076351893m_-5300983367603411026m_-4830749107460118727m_7814453640049424406m_1119809984899598126lineBreakAtBeginningOfMessage"><div><br><blockquote type="cite"><div>On Jul 29, 2024, at 3:55 PM, neil liu <<a href="mailto:liufield@gmail.com" rel="noreferrer" target="_blank">liufield@gmail.com</a>> wrote:</div><br><div><div dir="ltr" id="m_-4396857026391268921m_6884232443723312085m_-6590455808610094212m_7732474076351893m_-5300983367603411026m_-4830749107460118727m_7814453640049424406m_1119809984899598126pfptBanner977okag" style="writing-mode:revert;color:revert;font-family:revert;font-feature-settings:revert;font-kerning:revert;font-size:revert;font-stretch:revert;font-variant-alternates:revert;font-variant-caps:revert;font-variant-east-asian:revert;font-variant-ligatures:revert;font-variant-numeric:revert;font-weight:revert;text-orientation:revert;zoom:revert;letter-spacing:revert;background-blend-mode:revert;background-image:revert;background-position:revert;background-repeat:revert;background-size:revert;border-collapse:revert;box-sizing:revert;break-after:revert;break-before:revert;break-inside:revert;caption-side:revert;clear:revert;columns:revert;column-fill:revert;column-gap:revert;column-rule:revert;column-span:revert;empty-cells:revert;float:revert;image-orientation:revert;isolation:revert;line-break:revert;line-height:revert;list-style:revert;mix-blend-mode:revert;object-fit:revert;object-position:revert;outline:revert;overflow:revert;quotes:revert;table-layout:revert;text-align:left;text-align-last:revert;text-decoration:revert;text-emphasis:revert;text-indent:revert;text-overflow:revert;text-transform:revert;text-underline-position:revert;vertical-align:revert;white-space:revert;word-break:revert;border-spacing:revert;word-spacing:revert;background-clip:revert;background-origin:revert;text-combine-upright:revert;display:block;opacity:revert;background-color:rgb(208,216,220);border-bottom:revert;border-left:revert;border-right:revert;height:revert;max-height:revert;max-width:revert;min-height:revert;width:revert;margin:16px 0px;padding:8px 16px;border-radius:4px;min-width:200px;border-top:4px solid rgb(144,164,174)"><div id="m_-4396857026391268921m_6884232443723312085m_-6590455808610094212m_7732474076351893m_-5300983367603411026m_-4830749107460118727m_7814453640049424406m_1119809984899598126pfptBanner977okag" style="writing-mode:unset;color:unset;font-family:unset;font-feature-settings:unset;font-kerning:unset;font-size:unset;font-stretch:unset;font-variant-alternates:unset;font-variant-caps:unset;font-variant-east-asian:unset;font-variant-ligatures:unset;font-variant-numeric:unset;font-weight:unset;text-orientation:unset;zoom:unset;letter-spacing:unset;background:unset;background-blend-mode:unset;border-collapse:unset;border:unset;box-sizing:unset;break-after:unset;break-before:unset;break-inside:unset;caption-side:unset;clear:unset;columns:unset;column-fill:unset;column-gap:unset;column-rule:unset;column-span:unset;empty-cells:unset;float:left;image-orientation:unset;isolation:unset;line-break:unset;line-height:unset;list-style:unset;mix-blend-mode:unset;object-fit:unset;object-position:unset;outline:unset;overflow:unset;quotes:unset;table-layout:unset;text-align:unset;text-align-last:unset;text-decoration:unset;text-emphasis:unset;text-indent:unset;text-overflow:unset;text-transform:unset;text-underline-position:unset;vertical-align:unset;white-space:unset;word-break:unset;border-spacing:unset;word-spacing:unset;text-combine-upright:unset;display:block;opacity:unset;border-radius:unset;height:unset;max-height:unset;min-height:unset;min-width:unset;padding:unset;width:unset;margin:0px 0px 1px;max-width:600px"><div id="m_-4396857026391268921m_6884232443723312085m_-6590455808610094212m_7732474076351893m_-5300983367603411026m_-4830749107460118727m_7814453640049424406m_1119809984899598126pfptBanner977okag" style="writing-mode:unset;font-family:Arial,sans-serif;font-feature-settings:unset;font-kerning:unset;font-size:14px;font-stretch:unset;font-variant-alternates:unset;font-variant-caps:unset;font-variant-east-asian:unset;font-variant-ligatures:unset;font-variant-numeric:unset;font-weight:bold;text-orientation:unset;zoom:unset;letter-spacing:unset;background-blend-mode:unset;background-image:unset;background-position:unset;background-repeat:unset;background-size:unset;border-collapse:unset;border:unset;box-sizing:unset;break-after:unset;break-before:unset;break-inside:unset;caption-side:unset;clear:unset;columns:unset;column-fill:unset;column-gap:unset;column-rule:unset;column-span:unset;empty-cells:unset;float:unset;image-orientation:unset;isolation:unset;line-break:unset;line-height:18px;list-style:unset;mix-blend-mode:unset;object-fit:unset;object-position:unset;outline:unset;overflow:unset;quotes:unset;table-layout:unset;text-align:unset;text-align-last:unset;text-decoration:unset;text-emphasis:unset;text-indent:unset;text-overflow:unset;text-transform:unset;text-underline-position:unset;vertical-align:unset;white-space:unset;word-break:unset;border-spacing:unset;word-spacing:unset;background-clip:unset;background-origin:unset;text-combine-upright:unset;display:block;opacity:unset;background-color:rgb(208,216,220);border-radius:unset;height:unset;margin:unset;max-height:unset;max-width:unset;min-height:unset;min-width:unset;padding:unset;width:unset">This Message Is From an External Sender</div><div id="m_-4396857026391268921m_6884232443723312085m_-6590455808610094212m_7732474076351893m_-5300983367603411026m_-4830749107460118727m_7814453640049424406m_1119809984899598126pfptBanner977okag" style="writing-mode:unset;font-family:Arial,sans-serif;font-feature-settings:unset;font-kerning:unset;font-size:12px;font-stretch:unset;font-variant-alternates:unset;font-variant-caps:unset;font-variant-east-asian:unset;font-variant-ligatures:unset;font-variant-numeric:unset;font-weight:unset;text-orientation:unset;zoom:unset;letter-spacing:unset;background-blend-mode:unset;background-image:unset;background-position:unset;background-repeat:unset;background-size:unset;border-collapse:unset;border:unset;box-sizing:unset;break-after:unset;break-before:unset;break-inside:unset;caption-side:unset;clear:unset;columns:unset;column-fill:unset;column-gap:unset;column-rule:unset;column-span:unset;empty-cells:unset;float:unset;image-orientation:unset;isolation:unset;line-break:unset;line-height:18px;list-style:unset;mix-blend-mode:unset;object-fit:unset;object-position:unset;outline:unset;overflow:unset;quotes:unset;table-layout:unset;text-align:unset;text-align-last:unset;text-decoration:unset;text-emphasis:unset;text-indent:unset;text-overflow:unset;text-transform:unset;text-underline-position:unset;vertical-align:unset;white-space:unset;word-break:unset;border-spacing:unset;word-spacing:unset;background-clip:unset;background-origin:unset;text-combine-upright:unset;display:block;opacity:unset;background-color:rgb(208,216,220);border-radius:unset;height:unset;margin-bottom:unset;margin-left:unset;margin-right:unset;max-height:unset;max-width:unset;min-height:unset;min-width:unset;padding:unset;width:unset;margin-top:2px">This message came from outside your organization.</div></div><div style="height:0px;clear:both;display:block;line-height:0;font-size:0.01px"></div></div><div dir="ltr" style="font-family:Helvetica;font-size:18px;font-style:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">Dear Petsc developers,,<br><div><br></div><div>I am trying to run </div><div><a href="https://urldefense.us/v3/__https://petsc.org/release/src/ksp/ksp/tutorials/ex72.c.html__;!!G_uCfscf7eWS!ZG4gvmS6hQD8ymbvCUDfAatzRUJHzmWO-hOgp9m0xXuAXgIB-fxe_xspYs3WEPi_Ed0UFLMHKanYuYWrTlQGrA$" rel="noreferrer" target="_blank">https://petsc.org/release/src/ksp/ksp/tutorials/ex72.c.html</a><br></div><div>with </div><div><br></div><div><div>petsc-3.21.1/petsc/arch-linux-c-opt/bin/mpirun -n 2 ./ex72  -f /Documents/PetscData/poisson_DMPLEX_32x32_16.dat -pc_type bddc -ksp_type cg -ksp_norm_type natural -ksp_error_if_not_converged -mat_type is</div></div><div><br></div><div>The file was downloaded and put in the directory PetscData. </div><div><br></div><div>The error is shown as follows,</div><div><br></div><div><div>0]PETSC ERROR: --------------------- Error Message --------------------------------------------------------------</div><div>[0]PETSC ERROR: Read from file failed</div><div>[0]PETSC ERROR: Read past end of file</div><div>[0]PETSC ERROR: WARNING! There are unused option(s) set! Could be the program crashed before usage or a spelling mistake, etc!</div><div>[0]PETSC ERROR:   Option left: name:-ksp_error_if_not_converged (no value) source: command line</div><div>[0]PETSC ERROR:   Option left: name:-ksp_norm_type value: natural source: command line</div><div>[0]PETSC ERROR:   Option left: name:-ksp_type value: cg source: command line</div><div>[0]PETSC ERROR:   Option left: name:-pc_type value: bddc source: command line</div><div>[0]PETSC ERROR: See<span> </span><a href="https://urldefense.us/v3/__https://petsc.org/release/faq/__;!!G_uCfscf7eWS!ZG4gvmS6hQD8ymbvCUDfAatzRUJHzmWO-hOgp9m0xXuAXgIB-fxe_xspYs3WEPi_Ed0UFLMHKanYuYVR0x14Xg$" rel="noreferrer" target="_blank">https://petsc.org/release/faq/</a><span> </span>for trouble shooting.</div><div>[0]PETSC ERROR: Petsc Release Version 3.21.1, unknown </div><div>[0]PETSC ERROR: ./ex72 on a arch-linux-c-opt named</div><div> Mon Jul 29 15:50:04 2024</div><div>[0]PETSC ERROR: Configure options --with-cc=gcc --with-fc=gfortran --with-cxx=g++ --download-fblaslapack --download-mpich --with-scalar-type=complex --download-triangle --with-debugging=no</div><div>[0]PETSC ERROR: #1 PetscBinaryRead() at /home/xxxxxx/Documents/petsc-3.21.1/petsc/src/sys/fileio/sysio.c:327</div><div>[0]PETSC ERROR: #2 PetscViewerBinaryWriteReadAll() at /home/xiaodong.liu/Documents/petsc-3.21.1/petsc/src/sys/classes/viewer/impls/binary/binv.c:1077</div><div>[0]PETSC ERROR: #3 PetscViewerBinaryReadAll() at /home/xiaodong.liu/Documents/petsc-3.21.1/petsc/src/sys/classes/viewer/impls/binary/binv.c:1119</div><div>[0]PETSC ERROR: #4 MatLoad_MPIAIJ_Binary() at Documents/petsc-3.21.1/petsc/src/mat/impls/aij/mpi/mpiaij.c:3093</div><div>[0]PETSC ERROR: #5 MatLoad_MPIAIJ() at /Documents/petsc-3.21.1/petsc/src/mat/impls/aij/mpi/mpiaij.c:3035</div><div>[0]PETSC ERROR: #6 MatLoad() at /Documents/petsc-3.21.1/petsc/src/mat/interface/matrix.c:1344</div><div>[0]PETSC ERROR: #7 MatLoad_IS() at /Documents/petsc-3.21.1/petsc/src/mat/impls/is/matis.c:2575</div><div>[0]PETSC ERROR: #8 MatLoad() at /home/Documents/petsc-3.21.1/petsc/src/mat/interface/matrix.c:1344</div><div>[0]PETSC ERROR: #9 main() at ex72.c:105</div><div>[0]PETSC ERROR: PETSc Option Table entries:</div><div>[0]PETSC ERROR: -f </div><div>/Documents/PetscData/poisson_DMPLEX_32x32_16.dat (source: command line)</div><div>[0]PETSC ERROR: -ksp_error_if_not_converged (source: command line)</div><div>[0]PETSC ERROR: -ksp_norm_type natural (source: command line)</div><div>[0]PETSC ERROR: -ksp_type cg (source: command line)</div><div>[0]PETSC ERROR: -mat_type is (source: command line)</div><div>[0]PETSC ERROR: -pc_type bddc (source: command line)</div><div>[0]PETSC ERROR: ----------------End of Error Message -------send entire error message to<span> </span><a href="mailto:petsc-maint@mcs.anl.gov" rel="noreferrer" target="_blank">petsc-maint@mcs.anl.gov</a>----------</div><div>application called MPI_Abort(MPI_COMM_SELF, 66) - process 0</div></div></div></div></div></div></div></div></blockquote></div><br></div></div></blockquote></div>
</blockquote></div>
</blockquote></div>
</blockquote></div>
</blockquote></div><br clear="all"><div><br></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature">Stefano</div>
</blockquote></div>