petsc-master 2016-09-30
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'.
  • 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.