Link to the source code for this example:

Open fem_system_ex2 in new tab.


The console output of the program:

***************************************************************
* Running Example fem_system_ex2:
*   example-opt
***************************************************************

*** Warning, This code is untested, experimental, or likely to see future API changes: ../../../include/libmesh/diff_physics.h, line 525, compiled Apr 13 2016 at 18:30:41 ***
*** Warning, This code is untested, experimental, or likely to see future API changes: ../src/mesh/vtk_io.C, line 367, compiled Apr 13 2016 at 18:30:48 ***
===== Time Step    0 (  0.00%), time =    0.00 =====
Solving Solid
Assembling the System
Nonlinear Residual: 3691.41
Linear solve starting, tolerance 0.00
Linear solve finished, step 6, residual 0.00
Trying full Newton step
  Current Residual: 0.09
  Nonlinear solver current_residual 0.09 > 0.00
  Nonlinear solver relative residual 0.00 > 0.00
  Nonlinear solver converged, step 0, relative step size 0.00 < 0.00
Doing a reinit of the equation systems
Advancing to next step
===== Time Step    1 ( 20.00%), time =    0.00 =====
Solving Solid
Assembling the System
Nonlinear Residual: 738516.58
Linear solve starting, tolerance 0.00
Linear solve finished, step 6, residual 0.00
Trying full Newton step
  Current Residual: 38.63
  Nonlinear step: |du|/|u| = 0.06, |du| = 1.04
Assembling the System
Nonlinear Residual: 38.63
Linear solve starting, tolerance 0.00
Linear solve finished, step 7, residual 0.00
Trying full Newton step
  Current Residual: 1.49
  Nonlinear solver current_residual 1.49 > 0.00
  Nonlinear solver relative residual 0.00 > 0.00
  Nonlinear solver converged, step 1, relative step size 0.00 < 0.00
Doing a reinit of the equation systems
Advancing to next step
===== Time Step    2 ( 40.00%), time =    0.00 =====
Solving Solid
Assembling the System
Nonlinear Residual: 788389.85
Linear solve starting, tolerance 0.00
Linear solve finished, step 6, residual 0.00
Trying full Newton step
  Current Residual: 63.02
  Nonlinear step: |du|/|u| = 0.06, |du| = 1.05
Assembling the System
Nonlinear Residual: 63.02
Linear solve starting, tolerance 0.00
Linear solve finished, step 8, residual 0.00
Trying full Newton step
  Current Residual: 3.80
  Nonlinear solver current_residual 3.80 > 0.00
  Nonlinear solver relative residual 0.00 > 0.00
  Nonlinear solver converged, step 1, relative step size 0.00 < 0.00
Doing a reinit of the equation systems
Advancing to next step
===== Time Step    3 ( 60.00%), time =    0.00 =====
Solving Solid
Assembling the System
Nonlinear Residual: 844777.39
Linear solve starting, tolerance 0.00
Linear solve finished, step 7, residual 0.00
Trying full Newton step
  Current Residual: 92.68
  Nonlinear step: |du|/|u| = 0.06, |du| = 1.06
Assembling the System
Nonlinear Residual: 92.68
Linear solve starting, tolerance 0.00
Linear solve finished, step 8, residual 0.00
Trying full Newton step
  Current Residual: 8.47
  Nonlinear solver current_residual 8.47 > 0.00
  Nonlinear solver relative residual 0.00 > 0.00
  Nonlinear solver converged, step 1, relative step size 0.00 < 0.00
Doing a reinit of the equation systems
Advancing to next step
===== Time Step    4 ( 80.00%), time =    0.00 =====
Solving Solid
Assembling the System
Nonlinear Residual: 909710.92
Linear solve starting, tolerance 0.00
Linear solve finished, step 8, residual 0.00
Trying full Newton step
  Current Residual: 137.99
  Nonlinear step: |du|/|u| = 0.07, |du| = 1.07
Assembling the System
Nonlinear Residual: 137.99
Linear solve starting, tolerance 0.00
Linear solve finished, step 8, residual 0.00
Trying full Newton step
  Current Residual: 19.82
  Nonlinear step: |du|/|u| = 0.00, |du| = 0.02
Assembling the System
Nonlinear Residual: 19.82
Linear solve starting, tolerance 0.00
Linear solve finished, step 10, residual 0.00
Trying full Newton step
  Current Residual: 0.12
  Nonlinear solver current_residual 0.12 > 0.00
  Nonlinear solver relative residual 0.00 > 0.00
  Nonlinear solver converged, step 2, relative step size 0.00 < 0.00
Doing a reinit of the equation systems
Advancing to next step
Finished calculations

 -------------------------------------------------------------------------------------------------------------------
| Time:           Wed Apr 13 12:35:58 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-tecio'                                                                                                 |
|  '--enable-unique-ptr'                                                                                            |
|  '--enable-ifem'                                                                                                  |
|  '--disable-strict-lgpl'                                                                                          |
|  '--with-vtk-include=/opt/moose/vtk-6.3/include/vtk-6.3'                                                          |
|  '--with-vtk-lib=/opt/moose/vtk-6.3/lib'                                                                          |
|  'CXX=mpicxx'                                                                                                     |
|  'CC=mpicc'                                                                                                       |
|  'FC=mpif90'                                                                                                      |
|  'F77=mpif77'                                                                                                     |
|  'PETSC_DIR=/opt/moose/petsc/mpich_petsc-3.6.1/clang-opt-superlu'                                                 |
|  'SLEPC_DIR=/opt/petejw/slepc/3.6.1'                                                                              |
 -------------------------------------------------------------------------------------------------------------------
 -----------------------------------------------------------------------------------------------------------------
| libMesh Performance: Alive time=0.270574, Active time=0.252498                                                  |
 -----------------------------------------------------------------------------------------------------------------
| 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()     12         0.0004      0.000032    0.0004      0.000032    0.15     0.15     |
|   build_sparsity()                 6          0.0034      0.000566    0.0037      0.000608    1.35     1.45     |
|   create_dof_constraints()         12         0.0002      0.000014    0.0002      0.000014    0.07     0.07     |
|   distribute_dofs()                12         0.0004      0.000031    0.0014      0.000116    0.15     0.55     |
|   dof_indices()                    56960      0.0151      0.000000    0.0151      0.000000    5.99     5.99     |
|   old_dof_indices()                6400       0.0025      0.000000    0.0025      0.000000    0.97     0.97     |
|   prepare_send_list()              14         0.0000      0.000000    0.0000      0.000000    0.00     0.00     |
|   reinit()                         12         0.0010      0.000085    0.0010      0.000085    0.40     0.40     |
|                                                                                                                 |
| EquationSystems                                                                                                 |
|   build_solution_vector()          5          0.0020      0.000391    0.0032      0.000636    0.77     1.26     |
|                                                                                                                 |
| FE                                                                                                              |
|   compute_shape_functions()        3200       0.0049      0.000002    0.0049      0.000002    1.93     1.93     |
|   init_shape_functions()           1940       0.0005      0.000000    0.0005      0.000000    0.20     0.20     |
|                                                                                                                 |
| FEMSystem                                                                                                       |
|   assembly()                       10         0.1562      0.015617    0.1747      0.017466    61.85    69.17    |
|   assembly(get_residual)           10         0.0230      0.002303    0.0413      0.004134    9.12     16.37    |
|                                                                                                                 |
| FEMap                                                                                                           |
|   compute_affine_map()             160        0.0001      0.000001    0.0001      0.000001    0.06     0.06     |
|   compute_face_map()               1920       0.0010      0.000001    0.0010      0.000001    0.38     0.38     |
|   compute_map()                    3040       0.0053      0.000002    0.0053      0.000002    2.11     2.11     |
|   init_face_shape_functions()      20         0.0001      0.000004    0.0001      0.000004    0.03     0.03     |
|   init_reference_to_physical_map() 1940       0.0085      0.000004    0.0085      0.000004    3.36     3.36     |
|                                                                                                                 |
| GenericProjector                                                                                                |
|   copy_dofs                        3840       0.0018      0.000000    0.0085      0.000002    0.70     3.38     |
|   operator()                       20         0.0022      0.000112    0.0134      0.000669    0.89     5.30     |
|                                                                                                                 |
| Mesh                                                                                                            |
|   contract()                       5          0.0000      0.000003    0.0000      0.000005    0.01     0.01     |
|   find_neighbors()                 1          0.0002      0.000179    0.0002      0.000179    0.07     0.07     |
|   renumber_nodes_and_elem()        7          0.0000      0.000003    0.0000      0.000003    0.01     0.01     |
|                                                                                                                 |
| MeshOutput                                                                                                      |
|   write_equation_systems()         5          0.0094      0.001875    0.0126      0.002511    3.71     4.97     |
|                                                                                                                 |
| MeshRefinement                                                                                                  |
|   _coarsen_elements()              5          0.0000      0.000001    0.0000      0.000001    0.00     0.00     |
|   _refine_elements()               5          0.0000      0.000004    0.0000      0.000004    0.01     0.01     |
|   make_coarsening_compatible()     5          0.0000      0.000004    0.0000      0.000004    0.01     0.01     |
|   make_flags_parallel_consistent() 10         0.0001      0.000008    0.0001      0.000008    0.03     0.03     |
|   make_refinement_compatible()     5          0.0000      0.000004    0.0000      0.000004    0.01     0.01     |
|                                                                                                                 |
| MeshTools::Generation                                                                                           |
|   build_cube()                     1          0.0001      0.000064    0.0001      0.000064    0.03     0.03     |
|                                                                                                                 |
| NewtonSolver                                                                                                    |
|   solve()                          5          0.0026      0.000516    0.2267      0.045338    1.02     89.78    |
|                                                                                                                 |
| OldSolutionValue                                                                                                |
|   check_old_context(c)             3840       0.0021      0.000001    0.0045      0.000001    0.83     1.80     |
|   eval_old_dofs()                  3840       0.0013      0.000000    0.0063      0.000002    0.50     2.48     |
|                                                                                                                 |
| Parallel                                                                                                        |
|   allgather()                      12         0.0000      0.000000    0.0000      0.000000    0.00     0.00     |
|                                                                                                                 |
| Partitioner                                                                                                     |
|   single_partition()               1          0.0000      0.000008    0.0000      0.000008    0.00     0.00     |
|                                                                                                                 |
| PetscLinearSolver                                                                                               |
|   solve()                          10         0.0065      0.000651    0.0065      0.000651    2.58     2.58     |
|                                                                                                                 |
| System                                                                                                          |
|   project_vector(old,new)          20         0.0018      0.000089    0.0160      0.000799    0.70     6.33     |
|                                                                                                                 |
| TopologyMap                                                                                                     |
|   init()                           5          0.0000      0.000003    0.0000      0.000003    0.01     0.01     |
 -----------------------------------------------------------------------------------------------------------------
| Totals:                            87315      0.2525                                          100.00            |
 -----------------------------------------------------------------------------------------------------------------


***************************************************************
* Done Running Example fem_system_ex2:
*   example-opt
***************************************************************