[petsc-users] change lib names

Sam Guo sam.guo at cd-adapco.com
Mon Oct 26 14:28:47 CDT 2020


Hi Zhang Hong,
   I know I can have different PETSC_ARCH but my application will
dynamically load either real or complex version on fly and I need different
lib names.

Thanks,
Sam

On Mon, Oct 26, 2020 at 12:25 PM Zhang, Hong <hzhang at mcs.anl.gov> wrote:

> 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/3e8cdbcc/attachment.html>


More information about the petsc-users mailing list