[petsc-users] change lib names

Sam Guo sam.guo at cd-adapco.com
Tue Oct 27 12:41:02 CDT 2020


Hi Jed,
   On windows, changing those lines allows me to link petsc with my
application but failed at loading the library. I can only load the petsc
lib by using libpetsc.dll and petsc.lib (instead of libpetsc_real.dll and
petsc_real.lib).

Thanks,
Sam

On Mon, Oct 26, 2020 at 12:29 PM Sam Guo <sam.guo at cd-adapco.com> wrote:

> Thanks, Jed. I'll give it a try/
>
> On Mon, Oct 26, 2020 at 12:20 PM Jed Brown <jed at jedbrown.org> wrote:
>
>> See libpetsc_shared and the following 2-3 lines in gmakefile.
>>
>> Sam Guo <sam.guo at cd-adapco.com> writes:
>>
>> > 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/20201027/5a5ff501/attachment.html>


More information about the petsc-users mailing list