#include "petsctaolinesearch.h" PetscErrorCode TaoLineSearchSetOptionsPrefix(TaoLineSearch ls, const char p[])
Logically Collective on TaoLineSearch
ls | - the TaoLineSearch context | |
prefix | - the prefix string to prepend to all TAO option requests |
For example, to distinguish between the runtime options for two different line searches, one could call
TaoLineSearchSetOptionsPrefix(ls1,"sys1_") TaoLineSearchSetOptionsPrefix(ls2,"sys2_")
This would enable use of different options for each system, such as
-sys1_tao_ls_type mt -sys2_tao_ls_type armijo