petsc-3.8.4 2018-03-24
Report Typos and Errors


  • 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.