<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Sam,</div>
<div style="color: rgb(0, 0, 0);"><span style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt;">You can build petsc with different PETSC_ARCH under same PETSC_DIR, e.g., define <span style="background-color:rgb(255, 255, 255);display:inline !important">PETSC_ARCH<span> = </span></span>arch_real
or arch_complex to build different petsc libraries. Simply switch to different <span style="background-color:rgb(255, 255, 255);display:inline !important">PETSC_ARCH when you use them. See <a href="https://www.mcs.anl.gov/petsc/documentation/installation.html#compilers" id="LPlnk457942">https://www.mcs.anl.gov/petsc/documentation/installation.html#compilers</a></span></span></div>
<div style="color: rgb(0, 0, 0);"><span style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt;"><br>
</span></div>
<div style="color: rgb(0, 0, 0);"><span style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt;">Hong</span></div>
<div id="appendonsend"></div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> petsc-users <petsc-users-bounces@mcs.anl.gov> on behalf of Sam Guo <sam.guo@cd-adapco.com><br>
<b>Sent:</b> Monday, October 26, 2020 2:12 PM<br>
<b>To:</b> PETSc <petsc-users@mcs.anl.gov><br>
<b>Subject:</b> [petsc-users] change lib names</font>
<div> </div>
</div>
<div>
<div dir="ltr">Dear PETSc team,
<div> I like to change petsc lib name to petsc_real or petsc_complex to distinguish real vs complex version. Simply copy of libpetsc to libpetsc_real does not help. I need to update PETSc makefile to recompile but I have troubles to figure out where PETSc
makefile decides the lib name. </div>
<div><br>
</div>
<div>Thanks,</div>
<div>Sam</div>
</div>
</div>
</body>
</html>