Link to the source code for this example:

Open systems_of_equations_ex5 in new tab.


The console output of the program:

***************************************************************
* Running Example systems_of_equations_ex5:
*   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" } "lambda" 
    Finite Element Types="LAGRANGE", "JACOBI_20_00" "SCALAR", "JACOBI_20_00" 
    Infinite Element Mapping="CARTESIAN" "CARTESIAN" 
    Approximation Orders="SECOND", "THIRD" "FIRST", "THIRD" 
    n_dofs()=4243
    n_local_dofs()=4243
    n_constrained_dofs()=42
    n_local_constrained_dofs()=42
    n_vectors()=1
    n_matrices()=1
    DofMap Sparsity
      Average  On-Processor Bandwidth <= 32.6206
      Average Off-Processor Bandwidth <= 0
      Maximum  On-Processor Bandwidth <= 4243
      Maximum Off-Processor Bandwidth <= 0
    DofMap Constraints
      Number of DoF Constraints = 42
      Average DoF Constraint Length= 0


 -------------------------------------------------------------------------------------------------------------------
| Time:           Wed Apr 13 09:58:54 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.103645, Active time=0.094485                                                  |
 -----------------------------------------------------------------------------------------------------------------
| 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                                                                                                          |
|   SCALAR_dof_indices()             2500       0.0003      0.000000    0.0003      0.000000    0.33     0.33     |
|   add_neighbors_to_send_list()     1          0.0004      0.000354    0.0004      0.000428    0.37     0.45     |
|   build_constraint_matrix()        500        0.0002      0.000000    0.0002      0.000000    0.19     0.19     |
|   build_sparsity()                 1          0.0051      0.005109    0.0061      0.006111    5.41     6.47     |
|   cnstrn_elem_mat_vec()            500        0.0001      0.000000    0.0001      0.000000    0.14     0.14     |
|   create_dof_constraints()         1          0.0014      0.001370    0.0019      0.001910    1.45     2.02     |
|   distribute_dofs()                1          0.0002      0.000189    0.0011      0.001150    0.20     1.22     |
|   dof_indices()                    5000       0.0022      0.000000    0.0027      0.000001    2.33     2.82     |
|   prepare_send_list()              2          0.0000      0.000000    0.0000      0.000000    0.00     0.00     |
|   reinit()                         1          0.0010      0.000961    0.0010      0.000961    1.02     1.02     |
|                                                                                                                 |
| EquationSystems                                                                                                 |
|   build_solution_vector()          1          0.0011      0.001127    0.0017      0.001681    1.19     1.78     |
|                                                                                                                 |
| ExodusII_IO                                                                                                     |
|   write_nodal_data()               1          0.0018      0.001805    0.0018      0.001805    1.91     1.91     |
|                                                                                                                 |
| 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.03     0.03     |
|   inverse_map()                    420        0.0003      0.000001    0.0003      0.000001    0.36     0.36     |
|                                                                                                                 |
| FEMap                                                                                                           |
|   compute_affine_map()             640        0.0005      0.000001    0.0005      0.000001    0.52     0.52     |
|   compute_face_map()               140        0.0002      0.000002    0.0006      0.000004    0.25     0.64     |
|   init_face_shape_functions()      21         0.0000      0.000001    0.0000      0.000001    0.01     0.01     |
|   init_reference_to_physical_map() 141        0.0003      0.000002    0.0003      0.000002    0.34     0.34     |
|                                                                                                                 |
| Mesh                                                                                                            |
|   find_neighbors()                 1          0.0007      0.000736    0.0007      0.000736    0.78     0.78     |
|   renumber_nodes_and_elem()        2          0.0000      0.000016    0.0000      0.000016    0.03     0.03     |
|                                                                                                                 |
| MeshOutput                                                                                                      |
|   write_equation_systems()         1          0.0000      0.000019    0.0035      0.003505    0.02     3.71     |
|                                                                                                                 |
| MeshTools::Generation                                                                                           |
|   build_cube()                     1          0.0003      0.000337    0.0003      0.000337    0.36     0.36     |
|                                                                                                                 |
| Parallel                                                                                                        |
|   allgather()                      1          0.0000      0.000000    0.0000      0.000000    0.00     0.00     |
|                                                                                                                 |
| Partitioner                                                                                                     |
|   single_partition()               1          0.0000      0.000033    0.0000      0.000033    0.03     0.03     |
|                                                                                                                 |
| PetscLinearSolver                                                                                               |
|   solve()                          1          0.0683      0.068270    0.0683      0.068270    72.25    72.25    |
|                                                                                                                 |
| System                                                                                                          |
|   assemble()                       1          0.0095      0.009529    0.0129      0.012871    10.09    13.62    |
 -----------------------------------------------------------------------------------------------------------------
| Totals:                            10661      0.0945                                          100.00            |
 -----------------------------------------------------------------------------------------------------------------

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