<div dir="ltr">Dear All,<div><br></div><div>       <i> I recently tried to install Metis along with PETSC 3.19.1, using following command,</i></div><div><br></div><font color="#ff0000">./configure  --with-scalar-type=real --with-precision=double --download-metis  --download-parmetis  --with-cmake=1  --with-mpi-dir=/opt/cray/pe/mpich/8.1.9/ofi/gnu/9.1 --download-fblaslapack=1 --with-debugging=0 COPTFLAGS=-O2 FOPTFLAGS=-O2</font><div><span class="gmail-NormalTextRun gmail-SCXW109444551 gmail-BCX9" style="margin:0px;padding:0px;color:rgb(36,36,36);font-family:"Segoe UI","Segoe UI_EmbeddedFont","Segoe UI_MSFontService",sans-serif;font-size:14px;font-variant-ligatures:none;white-space:pre-wrap"><br></span></div><div><span class="gmail-NormalTextRun gmail-SCXW109444551 gmail-BCX9" style="margin:0px;padding:0px;color:rgb(36,36,36);font-family:"Segoe UI","Segoe UI_EmbeddedFont","Segoe UI_MSFontService",sans-serif;font-size:14px;font-variant-ligatures:none;white-space:pre-wrap"><i>While compiling my code, I get this warning sign,  </i></span></div><div><span class="gmail-NormalTextRun gmail-SCXW109444551 gmail-BCX9" style="margin:0px;padding:0px;color:rgb(36,36,36);font-family:"Segoe UI","Segoe UI_EmbeddedFont","Segoe UI_MSFontService",sans-serif;font-size:14px;font-variant-ligatures:none;white-space:pre-wrap"><br></span></div><div><span class="gmail-NormalTextRun gmail-SCXW109444551 gmail-BCX9" style="margin:0px;padding:0px;font-family:"Segoe UI","Segoe UI_EmbeddedFont","Segoe UI_MSFontService",sans-serif;font-size:14px;font-variant-ligatures:none;white-space:pre-wrap"><font color="#ff0000">34: warning: passing argument 10 of 'ParMETIS_V3_PartKway' from incompatible pointer type [-Wincompatible-pointer-types]<br>   79 |                     nparts,tpwgts,ubvec,options,<br> </font><font color="#0000ff">     |                                  ^~~~~~<br>      |                                  |<br>      |                                  PetscScalar * {aka double *}</font><font color="#ff0000"><br>In file included from /v2_petsc_check/ParmetisWrappers.c:5:<br>NumericalLibraries/petsc-3.19.1/gnu-opt/include/parmetis.h:70:22: </font><font color="#0000ff">note: expected 'real_t *' {aka 'float *'} but argument is of type 'PetscScalar *' {aka 'double *'}</font><font color="#ff0000"><br>   70 |              real_t *tpwgts, real_t *ubvec, idx_t *options, idx_t *edgecut, idx_t *part,<br>    </font><font color="#0000ff">  |              ~~~~~~~~^~~~~~</font><font color="#ff0000"><br>/v2_petsc_check/ParmetisWrappers.c:79:41: warning: passing argument 11 of 'ParMETIS_V3_PartKway' from incompatible pointer type [-Wincompatible-pointer-types]<br>   79 |                           nparts,tpwgts,ubvec,options,<br></font><font color="#0000ff">      |                                         ^~~~~<br>      |                                         |<br>      |                                         PetscScalar * {aka double *}</font><font color="#242424"><br></font></span></div><div><span class="gmail-NormalTextRun gmail-SCXW109444551 gmail-BCX9" style="margin:0px;padding:0px;color:rgb(36,36,36);font-family:"Segoe UI","Segoe UI_EmbeddedFont","Segoe UI_MSFontService",sans-serif;font-size:14px;font-variant-ligatures:none;white-space:pre-wrap"><br></span></div><div><span class="gmail-NormalTextRun gmail-SCXW109444551 gmail-BCX9" style="margin:0px;padding:0px;color:rgb(36,36,36);font-family:"Segoe UI","Segoe UI_EmbeddedFont","Segoe UI_MSFontService",sans-serif;font-size:14px;font-variant-ligatures:none;white-space:pre-wrap"><i>Ignoring the warning sign leads to code crashing due to Parmetis Error,</i></span></div><div><br></div><div><font color="#ff0000">parmetis error: the sum of tpwgts for constraint #0 is not 1.0</font><br></div><div><br></div><div><i>How should I proceed further?</i></div><div><br></div><div>Regards,</div><div>Pradeep</div><div><br></div></div>