# Play around with these variables # 0 for SNESVI, 1 for TAO SOLVER_TYPE = 0 # Choose either vinewtonrsls or vinewtonssls SNES_TYPE = 'vinewtonrsls' # Choose either ssils, ssfls, asils, or asfls TAO_TYPE = 'ssils' # da_refine and number of procs DA_REFINE = 0 NPROCS = 1 # For other flags like -pc_type, -log_view, etc OTHER_FLAGS= include ${PETSC_DIR}/lib/petsc/conf/variables include ${PETSC_DIR}/lib/petsc/conf/rules ex9_TAO: ex9_TAO.o chkopts -${CLINKER} -o ex9_TAO ex9_TAO.o ${PETSC_SNES_LIB} ${RM} ex9_TAO.o runex9_TAO: -@${MPIEXEC} -n ${NPROCS} ./ex9_TAO -solver_type ${SOLVER_TYPE} -da_refine ${DA_REFINE} -snes_type ${SNES_TYPE} -snes_monitor -tao_type ${TAO_TYPE} -tao_monitor ${OTHER_FLAGS}