[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Compiler Optimization Override



Hi Tim,


Ideally I would prefer a solution which doesn't involve rebuilding PETSc each time I want to switch the optimization level. I tried to add the switch to the petscrules file but it always defaulted to the first (lower?) optimization switch that appeared in the application compile command line which seems to be built into PETSc.

I do this by having a different PETSC_ARCH setting for each different configuration. Then you only have to change this variable and rebuild your application.


Berend.