# options for PETSC using MPI
# To use his file, set environment variable PETSC_OPTIONS to
#       '-options_file  /path/to/this/file'

# Currently using GMRES Krylov space method as the main solver
# and algebraic multigrid as the preconditioner

# For more about the options, see
#    https://petsc.org/release/manualpages/KSP/KSPSetFromOptions
#    https://petsc.org/release/manualpages/PC/PCSetFromOptions/

# set min numbers of matrix rows per MPI rank  (default is 10000)
-mpi_linear_solver_server_minimum_count_per_rank 5000
-mpi_linear_solver_server
-mpi_linear_solver_server_view
-mpi_linear_solver_server_use_shared_memory false

# Krylov linear solver:
-ksp_type gmres
-ksp_max_it 200
-ksp_reuse_preconditioner

# convergence criterion for linear solver (larger than PETSc default):
-ksp_rtol 1.e-9

# preconditioner:
-pc_type gamg
#-pc_type hypre  # requires installing hypre


# debug options:
#-fp_trap off
#-log_view
#-start_in_debugger -debugger_rank 0
#-ksp_monitor
#-ksp_view
#-info

# print options at end of run:
-options_view

# test if any options are not used:
#-options_left
