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

KSP

  • ex1.c This example demonstrates the use of DMNetwork interface for solving a simple electric circuit.
    The example can be found in p.150 of 'Strang, Gilbert. Computational Science and Engineering. Wellesley, MA'.
  • ex1_nest.c This example is based on ex1 using MATNEST.
  • ex2.c This example is based on ex1.c, but generates a random network of chosen sizes and parameters.
    Usage: -n determines number of nodes. The nonnegative seed can be specified with the flag -seed, otherwise the program generates a random seed.