Luc Berger-Vergiat <[email protected]> writes: > Configure once with $PETSC_ARCH=arch-dbg, --with-debugging=1 and once > with $PETSC_ARCH=arch-opt, --with-debugging=0 > > Then you can switch environment variables approprately
Note: the environment variables have to influence the way your program is linked. You can't just change PETSC_ARCH at run-time. But we provide the same binary interface (ABI) in debug and optimized mode, so (if you know what you're doing) you can LD_PRELOAD the desired implementation at run-time.
signature.asc
Description: PGP signature
