petsc-3.12.5 2020-03-29
Report Typos and Errors

KSP solving a linear system

  • ex30.c Reads a PETSc matrix and vector from a file and solves a linear system.
    It is copied and intended to move dirty codes from ksp/examples/tutorials/ex10.c and simplify ex10.c.
    Input parameters include
    -f0 <input_file> : first file to load (small system)
    -f1 <input_file> : second file to load (larger system)
    -trans : solve transpose system instead