<head><!-- BaNnErBlUrFlE-HeAdEr-start -->
<style>
  #pfptBanner68uwaho { all: revert !important; display: block !important; 
    visibility: visible !important; opacity: 1 !important; 
    background-color: #D0D8DC !important; 
    max-width: none !important; max-height: none !important }
  .pfptPrimaryButton68uwaho:hover, .pfptPrimaryButton68uwaho:focus {
    background-color: #b4c1c7 !important; }
  .pfptPrimaryButton68uwaho: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 for your kind explanation! Runjian On Tue, May 14, 2024 at 9: 56 PM Satish Balay <balay@ mcs. anl. gov> wrote: On Tue, 14 May 2024, Runjian Wu wrote: 61;7601;1c > Yes, it is indeed cleaner. Thanks for your explanation! > >
</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="pfptBanner68uwaho" 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="pfptBanner68uwaho" style="all: unset !important; float:left !important; display:block !important; margin: 0px 0px 1px 0px !important; max-width: 600px !important;">
      <div id="pfptBanner68uwaho" 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="pfptBanner68uwaho" 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>Thanks for your kind explanation! </div><div><br></div><div>Runjian</div><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, May 14, 2024 at 9:56 PM Satish Balay <<a href="mailto:balay@mcs.anl.gov">balay@mcs.anl.gov</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">On Tue, 14 May 2024, Runjian Wu wrote:<br>
61;7601;1c<br>
> Yes, it is indeed cleaner. Thanks for your explanation!<br>
> <br>
> Now I have a question. If I stick to the old PETSc version (v3.16.2), I can<br>
> manually remove the duplicated libraries in PETSC_LIB and keep the order of<br>
> libraries at the same time, there should be no compiling errors, correct?<br>
<br>
Well - that's for you to verify - that it works for your setup. Some compilers have quirks.<br>
<br>
And its not clear to me if this trade-off is worth it. [esp - since<br>
the duplicates don't cause grief - and manually editing stuff - for<br>
each install/machine can be error prone, and makes pflotran makefile un-portable.]<br>
<br>
I think using LIBS [with the correct list] might be slightly better<br>
than manually modifying pflotran makefile.  But you can use whatever<br>
mode you are comfortable with [that works for you]<br>
<br>
Satish<br>
<br>
> <br>
> # From PFLOTRAN makefile<br>
> pflotran : $(pflotran_obj)<br>
> ${FLINKER} -o pflotran $(pflotran_obj) ${PETSC_LIB} ${LIBS}<br>
> <br>
> PETSC_LIB = -Wl,-rpath,/home/wurunjian/petsc/arch-linux2-c-opt/lib<br>
> -L/home/wurunjian/petsc/arch-linux2-c-opt/lib<br>
> -Wl,-rpath,/home/wurunjian/petsc/arch-linux2-c-opt/lib<br>
> -L/home/wurunjian/petsc/arch-linux2-c-opt/lib<br>
> -Wl,-rpath,/usr/lib/gcc/x86_64-linux-gnu/11<br>
> -L/usr/lib/gcc/x86_64-linux-gnu/11 -lpetsc -lflapack -lfblas<br>
> -lhdf5hl_fortran -lhdf5_fortran -lhdf5_hl -lhdf5 -lparmetis -lmetis -lm<br>
> -lstdc++ -ldl -lmpichfort -lmpich -lgfortran -lm -lgfortran -lm -lgcc_s<br>
> -lquadmath -lstdc++ -ldl<br>
> <br>
</blockquote></div></div>