[petsc-users] CMake error in PETSc

Jed Brown jed at jedbrown.org
Thu Dec 5 08:23:23 CST 2019


Yingjie Wu <yjwu16 at gmail.com> writes:

> I'm so sorry that I've ignored your previous advices.
>
> I added a global variable that seems works:
>
>
> export
> LD_LIBRARY_PATH=/home/lerui/petcs-3.12.2/arch-linux2-c-debug/lib:$LD_LIBRARY_PATH
>
>
> How should I make petsc in a standard position?This eliminates the need to
> set global variables.

You can configure PETSc with --prefix=/your/standard/path, then make install.

> It seems that some of the options before running fit become unavailable:
>
>
> mpiexec -n 1 ./example01cmke -snes_view
>
>
> Options-snes _ view are not used and how should I solve this problem?

I don't have your ex1.cpp, but presumably you didn't SNESSetFromOptions?


More information about the petsc-users mailing list