Link to the source code for this example:

Open systems_of_equations_ex1 in new tab.


The console output of the program:

***************************************************************
* Running Example systems_of_equations_ex1:
*   example-opt  
***************************************************************
 
 Mesh Information:
  elem_dimensions()={2}
  spatial_dimension()=2
  n_nodes()=961
    n_local_nodes()=961
  n_elem()=225
    n_local_elem()=225
    n_active_elem()=225
  n_subdomains()=1
  n_partitions()=1
  n_processors()=1
  n_threads()=1
  processor_id()=0

 EquationSystems
  n_systems()=1
   System #0, "Stokes"
    Type "LinearImplicit"
    Variables={ "u" "v" } "p" 
    Finite Element Types="LAGRANGE", "JACOBI_20_00" "LAGRANGE", "JACOBI_20_00" 
    Infinite Element Mapping="CARTESIAN" "CARTESIAN" 
    Approximation Orders="SECOND", "THIRD" "FIRST", "THIRD" 
    n_dofs()=2178
    n_local_dofs()=2178
    n_constrained_dofs()=0
    n_local_constrained_dofs()=0
    n_vectors()=1
    n_matrices()=1
    DofMap Sparsity
      Average  On-Processor Bandwidth <= 38.4683
      Average Off-Processor Bandwidth <= 0
      Maximum  On-Processor Bandwidth <= 59
      Maximum Off-Processor Bandwidth <= 0
    DofMap Constraints
      Number of DoF Constraints = 0


 -------------------------------------------------------------------------------------------------------------------
| Time:           Wed Apr 13 09:57:17 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.02965, Active time=0.023228                                                   |
 -----------------------------------------------------------------------------------------------------------------
| 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.0001      0.000106    0.0001      0.000106    0.46     0.46     |
|   build_sparsity()                 1          0.0018      0.001763    0.0019      0.001885    7.59     8.12     |
|   create_dof_constraints()         1          0.0000      0.000031    0.0000      0.000031    0.13     0.13     |
|   distribute_dofs()                1          0.0002      0.000176    0.0007      0.000706    0.76     3.04     |
|   dof_indices()                    1800       0.0005      0.000000    0.0005      0.000000    2.20     2.20     |
|   prepare_send_list()              2          0.0000      0.000000    0.0000      0.000000    0.00     0.00     |
|   reinit()                         1          0.0005      0.000530    0.0005      0.000530    2.28     2.28     |
|                                                                                                                 |
| EquationSystems                                                                                                 |
|   build_solution_vector()          1          0.0006      0.000565    0.0008      0.000769    2.43     3.31     |
|                                                                                                                 |
| ExodusII_IO                                                                                                     |
|   write_nodal_data()               1          0.0018      0.001770    0.0018      0.001770    7.62     7.62     |
|                                                                                                                 |
| FE                                                                                                              |
|   compute_shape_functions()        450        0.0003      0.000001    0.0003      0.000001    1.24     1.24     |
|   init_shape_functions()           2          0.0000      0.000006    0.0000      0.000006    0.05     0.05     |
|                                                                                                                 |
| FEMap                                                                                                           |
|   compute_affine_map()             450        0.0003      0.000001    0.0003      0.000001    1.50     1.50     |
|   init_reference_to_physical_map() 2          0.0000      0.000013    0.0000      0.000013    0.11     0.11     |
|                                                                                                                 |
| Mesh                                                                                                            |
|   find_neighbors()                 1          0.0004      0.000384    0.0004      0.000384    1.65     1.65     |
|   renumber_nodes_and_elem()        2          0.0000      0.000008    0.0000      0.000008    0.07     0.07     |
|                                                                                                                 |
| MeshOutput                                                                                                      |
|   write_equation_systems()         1          0.0000      0.000017    0.0026      0.002557    0.07     11.01    |
|                                                                                                                 |
| MeshTools::Generation                                                                                           |
|   build_cube()                     1          0.0002      0.000178    0.0002      0.000178    0.77     0.77     |
|                                                                                                                 |
| Parallel                                                                                                        |
|   allgather()                      1          0.0000      0.000000    0.0000      0.000000    0.00     0.00     |
|                                                                                                                 |
| Partitioner                                                                                                     |
|   single_partition()               1          0.0000      0.000017    0.0000      0.000017    0.07     0.07     |
|                                                                                                                 |
| PetscLinearSolver                                                                                               |
|   solve()                          1          0.0135      0.013492    0.0135      0.013492    58.09    58.09    |
|                                                                                                                 |
| System                                                                                                          |
|   assemble()                       1          0.0030      0.002996    0.0041      0.004078    12.90    17.56    |
 -----------------------------------------------------------------------------------------------------------------
| Totals:                            2722       0.0232                                          100.00            |
 -----------------------------------------------------------------------------------------------------------------

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