[petsc-users] change lib names

Zhang, Hong hzhang at mcs.anl.gov
Mon Oct 26 14:25:14 CDT 2020


Sam,
You can build petsc with different PETSC_ARCH under same PETSC_DIR, e.g., define PETSC_ARCH = arch_real or arch_complex to build different petsc libraries. Simply switch to different PETSC_ARCH when you use them. See https://www.mcs.anl.gov/petsc/documentation/installation.html#compilers

Hong

________________________________
From: petsc-users <petsc-users-bounces at mcs.anl.gov> on behalf of Sam Guo <sam.guo at cd-adapco.com>
Sent: Monday, October 26, 2020 2:12 PM
To: PETSc <petsc-users at mcs.anl.gov>
Subject: [petsc-users] change lib names

Dear PETSc team,
  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.

Thanks,
Sam
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20201026/1dbacbeb/attachment.html>


More information about the petsc-users mailing list