<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;"><div><br></div> You must have forgotten the --download-metis in your latest configure command line. <div><br><div><br><blockquote type="cite"><div>On May 28, 2023, at 9:26 PM, s.pradeep kumar <spradeepmahadeek@gmail.com> wrote:</div><br class="Apple-interchange-newline"><div><div dir="ltr">Thanks! I tried adding the flag but it throws in the following error:<div><br></div><div>=============================================================================================<br> Configuring PETSc to compile on your system<br>=============================================================================================<br>TESTING: configureExternalPackagesDir from config.framework(config/BuildSystem/config/framework.py:1070)<br>*********************************************************************************************<br> UNABLE to CONFIGURE with GIVEN OPTIONS (see configure.log for details):<br>---------------------------------------------------------------------------------------------<br> Package parmetis requested but dependency metis not requested.<br> Perhaps you want --download-metis or --with-metis-dir=directory or<br> --with-metis-lib=libraries and --with-metis-include=directory<br>*********************************************************************************************<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, May 28, 2023 at 8:12 PM Barry Smith <<a href="mailto:bsmith@petsc.dev">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> It looks you are calling Metis routines directly. In that case, you can do one of two things<div><br></div><div> 1) use the additional PETSc ./configure option -download-metis-use-doubleprecision=1</div><div><br></div><div>or </div><div> </div><div> 2) ensure that the arguments such as tpwgts that you pass in are not PetscScalar but instead float. This would require changing your code slightly.</div><div><br></div><div> Barry</div><div><br></div><div><div><br><blockquote type="cite"><div>On May 28, 2023, at 8:34 PM, s.pradeep kumar <<a href="mailto:spradeepmahadeek@gmail.com" target="_blank">spradeepmahadeek@gmail.com</a>> wrote:</div><br><div><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 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 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 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 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 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 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>
</div></blockquote></div><br></div></div></blockquote></div>
</div></blockquote></div><br></div></body></html>