Compiler Optimization Override

Berend van Wachem berend at chalmers.se
Thu Oct 4 11:02:44 CDT 2007


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.




More information about the petsc-users mailing list