Link to the source code for this example:

Open systems_of_equations_ex4 in new tab.


The console output of the program:

***************************************************************
* Running Example systems_of_equations_ex4:
*   example-opt -ksp_type cg 
***************************************************************
 
 Mesh Information:
  elem_dimensions()={2}
  spatial_dimension()=2
  n_nodes()=2121
    n_local_nodes()=2121
  n_elem()=500
    n_local_elem()=500
    n_active_elem()=500
  n_subdomains()=1
  n_partitions()=1
  n_processors()=1
  n_threads()=1
  processor_id()=0

 EquationSystems
  n_systems()=1
   System #0, "Elasticity"
    Type "LinearImplicit"
    Variables={ "u" "v" } 
    Finite Element Types="LAGRANGE", "JACOBI_20_00" 
    Infinite Element Mapping="CARTESIAN" 
    Approximation Orders="SECOND", "THIRD" 
    n_dofs()=4242
    n_local_dofs()=4242
    n_constrained_dofs()=42
    n_local_constrained_dofs()=42
    n_vectors()=1
    n_matrices()=1
    DofMap Sparsity
      Average  On-Processor Bandwidth <= 30.628
      Average Off-Processor Bandwidth <= 0
      Maximum  On-Processor Bandwidth <= 50
      Maximum Off-Processor Bandwidth <= 0
    DofMap Constraints
      Number of DoF Constraints = 42
      Average DoF Constraint Length= 0


 -------------------------------------------------------------------------------------------------------------------
| Time:           Wed Apr 13 09:57:51 2016                                                                          |
| OS:             Darwin                                                                                            |
| HostName:       peterson-laptop.local                                                                             |
| OS Release:     15.0.0                                                                                            |
| OS Version:     Darwin Kernel Version 15.0.0: Sat Sep 19 15:53:46 PDT 2015; root:xnu-3247.10.11~1/RELEASE_X86_64  |
| Machine:        x86_64                                                                                            |
| Username:       petejw                                                                                            |
| Configuration:  ../configure  'INSTALL=/usr/bin/install -C'                                                       |
|  '--with-methods=opt dbg'                                                                                         |
|  '--prefix=/Users/petejw/projects/libmesh_git/installed'                                                          |
|  '--enable-perflog'                                                                                               |
|  '--enable-tracefiles'                                                                                            |
|  '--disable-blocked-storage'                                                                                      |
|  '--enable-default-comm-world'                                                                                    |
|  '--enable-tecio'                                                                                                 |
|  '--enable-unique-ptr'                                                                                            |
|  '--enable-ifem'                                                                                                  |
|  'PETSC_DIR=/opt/moose/petsc/mpich_petsc-3.6.1/clang-opt-superlu'                                                 |
|  'SLEPC_DIR=/opt/petejw/slepc/3.6.1'                                                                              |
|  'CPPFLAGS= '                                                                                                     |
|  'LIBS= '                                                                                                         |
|  'CPPFLAGS=  '                                                                                                    |
|  'LIBS=  '                                                                                                        |
|  '--disable-netcdf-4'                                                                                             |
|  '--disable-testsets'                                                                                             |
|  'CXX=mpicxx'                                                                                                     |
|  'CC=mpicc'                                                                                                       |
|  'F77=mpif77'                                                                                                     |
|  'FC=mpif90'                                                                                                      |
|  'CPPFLAGS=   '                                                                                                   |
|  'LIBS=   '                                                                                                       |
 -------------------------------------------------------------------------------------------------------------------
 -----------------------------------------------------------------------------------------------------------------
| libMesh Performance: Alive time=0.102448, Active time=0.093921                                                  |
 -----------------------------------------------------------------------------------------------------------------
| Event                              nCalls     Total Time  Avg Time    Total Time  Avg Time    % of Active Time  |
|                                               w/o Sub     w/o Sub     With Sub    With Sub    w/o S    With S   |
|-----------------------------------------------------------------------------------------------------------------|
|                                                                                                                 |
|                                                                                                                 |
| DofMap                                                                                                          |
|   add_neighbors_to_send_list()     1          0.0002      0.000199    0.0002      0.000199    0.21     0.21     |
|   build_constraint_matrix()        500        0.0002      0.000000    0.0002      0.000000    0.23     0.23     |
|   build_sparsity()                 1          0.0028      0.002784    0.0030      0.003010    2.96     3.20     |
|   cnstrn_elem_mat_vec()            500        0.0001      0.000000    0.0001      0.000000    0.16     0.16     |
|   create_dof_constraints()         1          0.0014      0.001399    0.0020      0.001959    1.49     2.09     |
|   distribute_dofs()                1          0.0002      0.000208    0.0011      0.001141    0.22     1.21     |
|   dof_indices()                    4000       0.0012      0.000000    0.0012      0.000000    1.33     1.33     |
|   prepare_send_list()              2          0.0000      0.000000    0.0000      0.000000    0.00     0.00     |
|   reinit()                         1          0.0009      0.000932    0.0009      0.000932    0.99     0.99     |
|                                                                                                                 |
| EquationSystems                                                                                                 |
|   build_solution_vector()          1          0.0008      0.000790    0.0011      0.001087    0.84     1.16     |
|                                                                                                                 |
| ExodusII_IO                                                                                                     |
|   write_nodal_data()               1          0.0019      0.001871    0.0019      0.001871    1.99     1.99     |
|                                                                                                                 |
| FE                                                                                                              |
|   compute_shape_functions()        640        0.0004      0.000001    0.0004      0.000001    0.39     0.39     |
|   init_shape_functions()           141        0.0000      0.000000    0.0000      0.000000    0.04     0.04     |
|   inverse_map()                    420        0.0003      0.000001    0.0003      0.000001    0.34     0.34     |
|                                                                                                                 |
| FEMap                                                                                                           |
|   compute_affine_map()             640        0.0006      0.000001    0.0006      0.000001    0.60     0.60     |
|   compute_face_map()               140        0.0002      0.000002    0.0006      0.000004    0.24     0.62     |
|   init_face_shape_functions()      21         0.0000      0.000001    0.0000      0.000001    0.02     0.02     |
|   init_reference_to_physical_map() 141        0.0003      0.000002    0.0003      0.000002    0.35     0.35     |
|                                                                                                                 |
| Mesh                                                                                                            |
|   find_neighbors()                 1          0.0010      0.000998    0.0010      0.000998    1.06     1.06     |
|   renumber_nodes_and_elem()        2          0.0000      0.000021    0.0000      0.000021    0.04     0.04     |
|                                                                                                                 |
| MeshOutput                                                                                                      |
|   write_equation_systems()         1          0.0000      0.000019    0.0030      0.002977    0.02     3.17     |
|                                                                                                                 |
| MeshTools::Generation                                                                                           |
|   build_cube()                     1          0.0004      0.000445    0.0004      0.000445    0.47     0.47     |
|                                                                                                                 |
| Parallel                                                                                                        |
|   allgather()                      1          0.0000      0.000001    0.0000      0.000001    0.00     0.00     |
|                                                                                                                 |
| Partitioner                                                                                                     |
|   single_partition()               1          0.0000      0.000043    0.0000      0.000043    0.05     0.05     |
|                                                                                                                 |
| PetscLinearSolver                                                                                               |
|   solve()                          1          0.0712      0.071200    0.0712      0.071200    75.81    75.81    |
|                                                                                                                 |
| System                                                                                                          |
|   assemble()                       1          0.0095      0.009525    0.0125      0.012493    10.14    13.30    |
 -----------------------------------------------------------------------------------------------------------------
| Totals:                            7161       0.0939                                          100.00            |
 -----------------------------------------------------------------------------------------------------------------

 
***************************************************************
* Done Running Example systems_of_equations_ex4:
*   example-opt -ksp_type cg 
***************************************************************