Link to the source code for this example:
Open introduction_ex4 in new tab.
The console output of the program:
***************************************************************
* Running Example introduction_ex4:
* example-opt -d 1 -n 20
***************************************************************
Running /Users/petejw/projects/libmesh_git/build/examples/introduction/introduction_ex4/.libs/example-opt -d 1 -n 20
Mesh Information:
elem_dimensions()={1}
spatial_dimension()=1
n_nodes()=41
n_local_nodes()=41
n_elem()=20
n_local_elem()=20
n_active_elem()=20
n_subdomains()=1
n_partitions()=1
n_processors()=1
n_threads()=1
processor_id()=0
EquationSystems
n_systems()=1
System #0, "Poisson"
Type "LinearImplicit"
Variables="u"
Finite Element Types="LAGRANGE", "JACOBI_20_00"
Infinite Element Mapping="CARTESIAN"
Approximation Orders="SECOND", "THIRD"
n_dofs()=41
n_local_dofs()=41
n_constrained_dofs()=2
n_local_constrained_dofs()=2
n_vectors()=1
n_matrices()=1
DofMap Sparsity
Average On-Processor Bandwidth <= 3.92683
Average Off-Processor Bandwidth <= 0
Maximum On-Processor Bandwidth <= 5
Maximum Off-Processor Bandwidth <= 0
DofMap Constraints
Number of DoF Constraints = 2
Average DoF Constraint Length= 0
Mesh Information:
elem_dimensions()={1}
spatial_dimension()=1
n_nodes()=41
n_local_nodes()=41
n_elem()=20
n_local_elem()=20
n_active_elem()=20
n_subdomains()=1
n_partitions()=1
n_processors()=1
n_threads()=1
processor_id()=0
-------------------------------------------------------------------------------------------------------------------
| Time: Wed Apr 13 09:51:24 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= ' |
-------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------
| Matrix Assembly Performance: Alive time=0.000655, Active time=0.000101 |
------------------------------------------------------------------------------------------------------------
| 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 |
|------------------------------------------------------------------------------------------------------------|
| |
| Fe 20 0.0000 0.000001 0.0000 0.000001 11.88 11.88 |
| Ke 20 0.0000 0.000000 0.0000 0.000000 3.96 3.96 |
| elem init 20 0.0001 0.000004 0.0001 0.000004 72.28 72.28 |
| matrix insertion 20 0.0000 0.000001 0.0000 0.000001 11.88 11.88 |
------------------------------------------------------------------------------------------------------------
| Totals: 80 0.0001 100.00 |
------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------
| libMesh Performance: Alive time=0.009218, Active time=0.001618 |
---------------------------------------------------------------------------------------------------------------------
| 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.0000 0.000014 0.0000 0.000014 0.87 0.87 |
| build_constraint_matrix_and_vector() 20 0.0000 0.000000 0.0000 0.000000 0.25 0.25 |
| build_sparsity() 1 0.0000 0.000049 0.0001 0.000051 3.03 3.15 |
| create_dof_constraints() 1 0.0001 0.000076 0.0001 0.000082 4.70 5.07 |
| distribute_dofs() 1 0.0000 0.000036 0.0001 0.000087 2.22 5.38 |
| dof_indices() 80 0.0000 0.000000 0.0000 0.000000 1.11 1.11 |
| hetero_cnstrn_elem_mat_vec() 20 0.0000 0.000001 0.0000 0.000001 1.55 1.55 |
| prepare_send_list() 2 0.0000 0.000000 0.0000 0.000000 0.00 0.00 |
| reinit() 1 0.0001 0.000051 0.0001 0.000051 3.15 3.15 |
| |
| EquationSystems |
| build_solution_vector() 1 0.0001 0.000059 0.0001 0.000066 3.65 4.08 |
| |
| FE |
| compute_shape_functions() 20 0.0000 0.000001 0.0000 0.000001 0.62 0.62 |
| init_shape_functions() 1 0.0000 0.000007 0.0000 0.000007 0.43 0.43 |
| |
| FEMap |
| compute_affine_map() 20 0.0000 0.000000 0.0000 0.000000 0.43 0.43 |
| init_reference_to_physical_map() 1 0.0000 0.000006 0.0000 0.000006 0.37 0.37 |
| |
| GnuPlotIO |
| write_nodal_data() 1 0.0002 0.000236 0.0002 0.000236 14.59 14.59 |
| |
| Mesh |
| find_neighbors() 1 0.0001 0.000058 0.0001 0.000058 3.58 3.58 |
| renumber_nodes_and_elem() 2 0.0000 0.000001 0.0000 0.000001 0.12 0.12 |
| |
| MeshOutput |
| write_equation_systems() 1 0.0000 0.000013 0.0003 0.000315 0.80 19.47 |
| |
| MeshTools::Generation |
| build_cube() 1 0.0000 0.000038 0.0000 0.000038 2.35 2.35 |
| |
| Parallel |
| allgather() 1 0.0000 0.000000 0.0000 0.000000 0.00 0.00 |
| |
| Partitioner |
| single_partition() 1 0.0000 0.000004 0.0000 0.000004 0.25 0.25 |
| |
| PetscLinearSolver |
| solve() 1 0.0003 0.000265 0.0003 0.000265 16.38 16.38 |
| |
| System |
| assemble() 1 0.0006 0.000640 0.0007 0.000715 39.56 44.19 |
---------------------------------------------------------------------------------------------------------------------
| Totals: 180 0.0016 100.00 |
---------------------------------------------------------------------------------------------------------------------
***************************************************************
* Done Running Example introduction_ex4:
* example-opt -d 1 -n 20
***************************************************************
***************************************************************
* Running Example introduction_ex4:
* example-opt -d 2 -n 15
***************************************************************
Running /Users/petejw/projects/libmesh_git/build/examples/introduction/introduction_ex4/.libs/example-opt -d 2 -n 15
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, "Poisson"
Type "LinearImplicit"
Variables="u"
Finite Element Types="LAGRANGE", "JACOBI_20_00"
Infinite Element Mapping="CARTESIAN"
Approximation Orders="SECOND", "THIRD"
n_dofs()=961
n_local_dofs()=961
n_constrained_dofs()=120
n_local_constrained_dofs()=120
n_vectors()=1
n_matrices()=1
DofMap Sparsity
Average On-Processor Bandwidth <= 15.2352
Average Off-Processor Bandwidth <= 0
Maximum On-Processor Bandwidth <= 25
Maximum Off-Processor Bandwidth <= 0
DofMap Constraints
Number of DoF Constraints = 120
Number of Heterogenous Constraints= 118
Average DoF Constraint Length= 0
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
-------------------------------------------------------------------------------------------------------------------
| Time: Wed Apr 13 09:51:24 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= ' |
-------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------
| Matrix Assembly Performance: Alive time=0.003831, Active time=0.002201 |
------------------------------------------------------------------------------------------------------------
| 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 |
|------------------------------------------------------------------------------------------------------------|
| |
| Fe 225 0.0005 0.000002 0.0005 0.000002 22.67 22.67 |
| Ke 225 0.0003 0.000002 0.0003 0.000002 15.40 15.40 |
| elem init 225 0.0011 0.000005 0.0011 0.000005 49.25 49.25 |
| matrix insertion 225 0.0003 0.000001 0.0003 0.000001 12.68 12.68 |
------------------------------------------------------------------------------------------------------------
| Totals: 900 0.0022 100.00 |
------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------
| libMesh Performance: Alive time=0.017531, Active time=0.011637 |
---------------------------------------------------------------------------------------------------------------------
| 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.000062 0.0001 0.000062 0.53 0.53 |
| build_constraint_matrix_and_vector() 225 0.0001 0.000001 0.0001 0.000001 1.25 1.25 |
| build_sparsity() 1 0.0005 0.000540 0.0006 0.000615 4.64 5.28 |
| create_dof_constraints() 1 0.0006 0.000583 0.0011 0.001125 5.01 9.67 |
| distribute_dofs() 1 0.0001 0.000092 0.0005 0.000465 0.79 4.00 |
| dof_indices() 900 0.0002 0.000000 0.0002 0.000000 1.99 1.99 |
| hetero_cnstrn_elem_mat_vec() 225 0.0002 0.000001 0.0002 0.000001 1.57 1.57 |
| prepare_send_list() 2 0.0000 0.000000 0.0000 0.000000 0.01 0.01 |
| reinit() 1 0.0004 0.000373 0.0004 0.000373 3.21 3.21 |
| |
| EquationSystems |
| build_solution_vector() 1 0.0002 0.000246 0.0003 0.000327 2.11 2.81 |
| |
| ExodusII_IO |
| write_nodal_data() 1 0.0014 0.001370 0.0014 0.001370 11.77 11.77 |
| |
| FE |
| compute_shape_functions() 285 0.0005 0.000002 0.0005 0.000002 4.65 4.65 |
| init_shape_functions() 61 0.0000 0.000000 0.0000 0.000000 0.17 0.17 |
| inverse_map() 180 0.0001 0.000001 0.0001 0.000001 1.09 1.09 |
| |
| FEMap |
| compute_affine_map() 285 0.0002 0.000001 0.0002 0.000001 2.00 2.00 |
| compute_face_map() 60 0.0001 0.000001 0.0002 0.000004 0.70 1.89 |
| init_face_shape_functions() 60 0.0000 0.000000 0.0000 0.000000 0.18 0.18 |
| init_reference_to_physical_map() 61 0.0001 0.000002 0.0001 0.000002 1.13 1.13 |
| |
| Mesh |
| find_neighbors() 1 0.0004 0.000370 0.0004 0.000370 3.18 3.18 |
| renumber_nodes_and_elem() 2 0.0000 0.000008 0.0000 0.000008 0.15 0.15 |
| |
| MeshOutput |
| write_equation_systems() 1 0.0000 0.000021 0.0017 0.001719 0.18 14.77 |
| |
| MeshTools::Generation |
| build_cube() 1 0.0002 0.000179 0.0002 0.000179 1.54 1.54 |
| |
| Parallel |
| allgather() 1 0.0000 0.000000 0.0000 0.000000 0.00 0.00 |
| |
| Partitioner |
| single_partition() 1 0.0000 0.000016 0.0000 0.000016 0.14 0.14 |
| |
| PetscLinearSolver |
| solve() 1 0.0033 0.003337 0.0033 0.003337 28.68 28.68 |
| |
| System |
| assemble() 1 0.0027 0.002715 0.0039 0.003937 23.33 33.83 |
---------------------------------------------------------------------------------------------------------------------
| Totals: 2360 0.0116 100.00 |
---------------------------------------------------------------------------------------------------------------------
***************************************************************
* Done Running Example introduction_ex4:
* example-opt -d 2 -n 15
***************************************************************
***************************************************************
* Running Example introduction_ex4:
* example-opt -d 3 -n 6
***************************************************************
Running /Users/petejw/projects/libmesh_git/build/examples/introduction/introduction_ex4/.libs/example-opt -d 3 -n 6
Mesh Information:
elem_dimensions()={3}
spatial_dimension()=3
n_nodes()=2197
n_local_nodes()=2197
n_elem()=216
n_local_elem()=216
n_active_elem()=216
n_subdomains()=1
n_partitions()=1
n_processors()=1
n_threads()=1
processor_id()=0
EquationSystems
n_systems()=1
System #0, "Poisson"
Type "LinearImplicit"
Variables="u"
Finite Element Types="LAGRANGE", "JACOBI_20_00"
Infinite Element Mapping="CARTESIAN"
Approximation Orders="SECOND", "THIRD"
n_dofs()=2197
n_local_dofs()=2197
n_constrained_dofs()=866
n_local_constrained_dofs()=866
n_vectors()=1
n_matrices()=1
DofMap Sparsity
Average On-Processor Bandwidth <= 53.5498
Average Off-Processor Bandwidth <= 0
Maximum On-Processor Bandwidth <= 125
Maximum Off-Processor Bandwidth <= 0
DofMap Constraints
Number of DoF Constraints = 866
Number of Heterogenous Constraints= 818
Average DoF Constraint Length= 0
Mesh Information:
elem_dimensions()={3}
spatial_dimension()=3
n_nodes()=2197
n_local_nodes()=2197
n_elem()=216
n_local_elem()=216
n_active_elem()=216
n_subdomains()=1
n_partitions()=1
n_processors()=1
n_threads()=1
processor_id()=0
-------------------------------------------------------------------------------------------------------------------
| Time: Wed Apr 13 09:51:24 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= ' |
-------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------
| Matrix Assembly Performance: Alive time=0.021352, Active time=0.016841 |
------------------------------------------------------------------------------------------------------------
| 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 |
|------------------------------------------------------------------------------------------------------------|
| |
| Fe 216 0.0017 0.000008 0.0017 0.000008 10.14 10.14 |
| Ke 216 0.0069 0.000032 0.0069 0.000032 40.71 40.71 |
| elem init 216 0.0056 0.000026 0.0056 0.000026 33.54 33.54 |
| matrix insertion 216 0.0026 0.000012 0.0026 0.000012 15.61 15.61 |
------------------------------------------------------------------------------------------------------------
| Totals: 864 0.0168 100.00 |
------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------
| libMesh Performance: Alive time=0.078802, Active time=0.071735 |
---------------------------------------------------------------------------------------------------------------------
| 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.000136 0.0001 0.000136 0.19 0.19 |
| build_constraint_matrix_and_vector() 216 0.0008 0.000004 0.0008 0.000004 1.11 1.11 |
| build_sparsity() 1 0.0027 0.002655 0.0028 0.002758 3.70 3.84 |
| create_dof_constraints() 1 0.0049 0.004929 0.0357 0.035658 6.87 49.71 |
| distribute_dofs() 1 0.0002 0.000171 0.0009 0.000947 0.24 1.32 |
| dof_indices() 864 0.0005 0.000001 0.0005 0.000001 0.63 0.63 |
| hetero_cnstrn_elem_mat_vec() 216 0.0025 0.000012 0.0025 0.000012 3.53 3.53 |
| prepare_send_list() 2 0.0000 0.000000 0.0000 0.000000 0.00 0.00 |
| reinit() 1 0.0008 0.000776 0.0008 0.000776 1.08 1.08 |
| |
| EquationSystems |
| build_solution_vector() 1 0.0005 0.000461 0.0006 0.000611 0.64 0.85 |
| |
| ExodusII_IO |
| write_nodal_data() 1 0.0023 0.002268 0.0023 0.002268 3.16 3.16 |
| |
| FE |
| compute_shape_functions() 1224 0.0069 0.000006 0.0069 0.000006 9.58 9.58 |
| init_shape_functions() 1009 0.0003 0.000000 0.0003 0.000000 0.40 0.40 |
| inverse_map() 2376 0.0070 0.000003 0.0070 0.000003 9.77 9.77 |
| |
| FEMap |
| compute_affine_map() 1224 0.0025 0.000002 0.0025 0.000002 3.53 3.53 |
| compute_edge_map() 792 0.0002 0.000000 0.0002 0.000000 0.32 0.32 |
| compute_face_map() 216 0.0003 0.000002 0.0003 0.000002 0.47 0.47 |
| init_edge_shape_functions() 792 0.0004 0.000000 0.0004 0.000000 0.54 0.54 |
| init_face_shape_functions() 216 0.0012 0.000006 0.0012 0.000006 1.72 1.72 |
| init_reference_to_physical_map() 1009 0.0162 0.000016 0.0162 0.000016 22.63 22.63 |
| |
| Mesh |
| find_neighbors() 1 0.0005 0.000509 0.0005 0.000509 0.71 0.71 |
| renumber_nodes_and_elem() 2 0.0000 0.000021 0.0000 0.000021 0.06 0.06 |
| |
| MeshOutput |
| write_equation_systems() 1 0.0000 0.000021 0.0029 0.002900 0.03 4.04 |
| |
| MeshTools::Generation |
| build_cube() 1 0.0004 0.000381 0.0004 0.000381 0.53 0.53 |
| |
| Parallel |
| allgather() 1 0.0000 0.000000 0.0000 0.000000 0.00 0.00 |
| |
| Partitioner |
| single_partition() 1 0.0000 0.000041 0.0000 0.000041 0.06 0.06 |
| |
| PetscLinearSolver |
| solve() 1 0.0078 0.007762 0.0078 0.007762 10.82 10.82 |
| |
| System |
| assemble() 1 0.0127 0.012692 0.0214 0.021406 17.69 29.84 |
---------------------------------------------------------------------------------------------------------------------
| Totals: 10172 0.0717 100.00 |
---------------------------------------------------------------------------------------------------------------------
***************************************************************
* Done Running Example introduction_ex4:
* example-opt -d 3 -n 6
***************************************************************