Link to the source code for this example:
Open subdomains_ex2 in new tab.
The console output of the program:
CXX example_dbg-subdomains_ex2.o
CXXLD example-dbg
***************************************************************
* Running Example subdomains_ex2:
* example-opt -d 1 -n 20
***************************************************************
Running /Users/petejw/projects/libmesh_git/build/examples/subdomains/subdomains_ex2/.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()=2
n_partitions()=1
n_processors()=1
n_threads()=1
processor_id()=0
EquationSystems
n_systems()=1
System #0, "Poisson"
Type "LinearImplicit"
Variables="u" "v"
Finite Element Types="LAGRANGE", "JACOBI_20_00" "LAGRANGE", "JACOBI_20_00"
Infinite Element Mapping="CARTESIAN" "CARTESIAN"
Approximation Orders="SECOND", "THIRD" "SECOND", "THIRD"
n_dofs()=42
n_local_dofs()=42
n_constrained_dofs()=0
n_local_constrained_dofs()=0
n_vectors()=1
n_matrices()=1
DofMap Sparsity
Average On-Processor Bandwidth <= 3.85714
Average Off-Processor Bandwidth <= 0
Maximum On-Processor Bandwidth <= 5
Maximum Off-Processor Bandwidth <= 0
DofMap Constraints
Number of DoF Constraints = 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()=2
n_partitions()=1
n_processors()=1
n_threads()=1
processor_id()=0
-------------------------------------------------------------------------------------------------------------------
| Time: Wed Apr 13 10:46:15 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.000703, Active time=0.00018 |
------------------------------------------------------------------------------------------------------------
| 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 |
|------------------------------------------------------------------------------------------------------------|
| |
| BCs 20 0.0000 0.000002 0.0000 0.000002 23.89 23.89 |
| Fe 20 0.0000 0.000001 0.0000 0.000001 11.11 11.11 |
| Ke 20 0.0000 0.000000 0.0000 0.000000 1.11 1.11 |
| elem init 20 0.0001 0.000005 0.0001 0.000005 53.33 53.33 |
| matrix insertion 20 0.0000 0.000001 0.0000 0.000001 10.56 10.56 |
------------------------------------------------------------------------------------------------------------
| Totals: 100 0.0002 100.00 |
------------------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------------------------
| libMesh Performance: Alive time=0.00908, Active time=0.00172 |
-----------------------------------------------------------------------------------------------------------------
| 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.000018 0.0000 0.000018 1.05 1.05 |
| build_sparsity() 1 0.0001 0.000069 0.0001 0.000078 4.01 4.53 |
| create_dof_constraints() 1 0.0000 0.000002 0.0000 0.000002 0.12 0.12 |
| distribute_dofs() 1 0.0001 0.000061 0.0001 0.000137 3.55 7.97 |
| dof_indices() 80 0.0000 0.000000 0.0000 0.000000 1.45 1.45 |
| prepare_send_list() 2 0.0000 0.000000 0.0000 0.000000 0.06 0.06 |
| reinit() 1 0.0001 0.000075 0.0001 0.000075 4.36 4.36 |
| |
| EquationSystems |
| build_solution_vector() 1 0.0001 0.000072 0.0001 0.000082 4.19 4.77 |
| |
| FE |
| compute_shape_functions() 24 0.0000 0.000001 0.0000 0.000001 1.05 1.05 |
| init_shape_functions() 5 0.0000 0.000002 0.0000 0.000002 0.64 0.64 |
| |
| FEMap |
| compute_affine_map() 24 0.0000 0.000001 0.0000 0.000001 0.81 0.81 |
| compute_face_map() 4 0.0000 0.000001 0.0000 0.000001 0.23 0.23 |
| init_face_shape_functions() 1 0.0000 0.000001 0.0000 0.000001 0.06 0.06 |
| init_reference_to_physical_map() 5 0.0000 0.000002 0.0000 0.000002 0.52 0.52 |
| |
| GnuPlotIO |
| write_nodal_data() 1 0.0003 0.000278 0.0003 0.000278 16.16 16.16 |
| |
| Mesh |
| find_neighbors() 1 0.0001 0.000069 0.0001 0.000069 4.01 4.01 |
| 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.000014 0.0004 0.000376 0.81 21.86 |
| |
| MeshTools::Generation |
| build_cube() 1 0.0000 0.000041 0.0000 0.000041 2.38 2.38 |
| |
| 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.23 0.23 |
| |
| PetscLinearSolver |
| solve() 1 0.0002 0.000239 0.0002 0.000239 13.90 13.90 |
| |
| System |
| assemble() 1 0.0007 0.000693 0.0008 0.000771 40.29 44.83 |
-----------------------------------------------------------------------------------------------------------------
| Totals: 161 0.0017 100.00 |
-----------------------------------------------------------------------------------------------------------------
***************************************************************
* Done Running Example subdomains_ex2:
* example-opt -d 1 -n 20
***************************************************************
***************************************************************
* Running Example subdomains_ex2:
* example-opt -d 2 -n 15
***************************************************************
Running /Users/petejw/projects/libmesh_git/build/examples/subdomains/subdomains_ex2/.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()=2
n_partitions()=1
n_processors()=1
n_threads()=1
processor_id()=0
EquationSystems
n_systems()=1
System #0, "Poisson"
Type "LinearImplicit"
Variables="u" "v"
Finite Element Types="LAGRANGE", "JACOBI_20_00" "LAGRANGE", "JACOBI_20_00"
Infinite Element Mapping="CARTESIAN" "CARTESIAN"
Approximation Orders="SECOND", "THIRD" "SECOND", "THIRD"
n_dofs()=1022
n_local_dofs()=1022
n_constrained_dofs()=0
n_local_constrained_dofs()=0
n_vectors()=1
n_matrices()=1
DofMap Sparsity
Average On-Processor Bandwidth <= 14.5616
Average Off-Processor Bandwidth <= 0
Maximum On-Processor Bandwidth <= 25
Maximum Off-Processor Bandwidth <= 0
DofMap Constraints
Number of DoF Constraints = 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()=2
n_partitions()=1
n_processors()=1
n_threads()=1
processor_id()=0
-------------------------------------------------------------------------------------------------------------------
| Time: Wed Apr 13 10:46:15 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.003968, Active time=0.003235 |
------------------------------------------------------------------------------------------------------------
| 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 |
|------------------------------------------------------------------------------------------------------------|
| |
| BCs 225 0.0012 0.000005 0.0012 0.000005 37.50 37.50 |
| Fe 225 0.0004 0.000002 0.0004 0.000002 13.38 13.38 |
| Ke 225 0.0003 0.000001 0.0003 0.000001 9.64 9.64 |
| elem init 225 0.0010 0.000005 0.0010 0.000005 32.33 32.33 |
| matrix insertion 225 0.0002 0.000001 0.0002 0.000001 7.14 7.14 |
------------------------------------------------------------------------------------------------------------
| Totals: 1125 0.0032 100.00 |
------------------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------------------------
| libMesh Performance: Alive time=0.015482, Active time=0.00985 |
-----------------------------------------------------------------------------------------------------------------
| 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.000079 0.0001 0.000079 0.80 0.80 |
| build_sparsity() 1 0.0005 0.000524 0.0006 0.000595 5.32 6.04 |
| create_dof_constraints() 1 0.0000 0.000023 0.0000 0.000023 0.23 0.23 |
| distribute_dofs() 1 0.0001 0.000144 0.0006 0.000594 1.46 6.03 |
| dof_indices() 900 0.0002 0.000000 0.0002 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.0004 0.000450 0.0004 0.000450 4.57 4.57 |
| |
| EquationSystems |
| build_solution_vector() 1 0.0003 0.000272 0.0004 0.000367 2.76 3.73 |
| |
| ExodusII_IO |
| write_nodal_data() 1 0.0014 0.001386 0.0014 0.001386 14.07 14.07 |
| |
| FE |
| compute_shape_functions() 345 0.0006 0.000002 0.0006 0.000002 5.70 5.70 |
| init_shape_functions() 121 0.0000 0.000000 0.0000 0.000000 0.22 0.22 |
| inverse_map() 360 0.0002 0.000001 0.0002 0.000001 2.27 2.27 |
| |
| FEMap |
| compute_affine_map() 345 0.0002 0.000001 0.0002 0.000001 2.46 2.46 |
| compute_face_map() 120 0.0002 0.000002 0.0004 0.000004 1.84 4.48 |
| init_face_shape_functions() 1 0.0000 0.000003 0.0000 0.000003 0.03 0.03 |
| init_reference_to_physical_map() 121 0.0002 0.000002 0.0002 0.000002 2.50 2.50 |
| |
| Mesh |
| find_neighbors() 1 0.0004 0.000357 0.0004 0.000357 3.62 3.62 |
| renumber_nodes_and_elem() 2 0.0000 0.000008 0.0000 0.000008 0.17 0.17 |
| |
| MeshOutput |
| write_equation_systems() 1 0.0000 0.000015 0.0018 0.001768 0.15 17.95 |
| |
| MeshTools::Generation |
| build_cube() 1 0.0002 0.000166 0.0002 0.000166 1.69 1.69 |
| |
| 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.16 0.16 |
| |
| PetscLinearSolver |
| solve() 1 0.0024 0.002388 0.0024 0.002388 24.24 24.24 |
| |
| System |
| assemble() 1 0.0023 0.002317 0.0040 0.004025 23.52 40.86 |
-----------------------------------------------------------------------------------------------------------------
| Totals: 2331 0.0098 100.00 |
-----------------------------------------------------------------------------------------------------------------
***************************************************************
* Done Running Example subdomains_ex2:
* example-opt -d 2 -n 15
***************************************************************
***************************************************************
* Running Example subdomains_ex2:
* example-opt -d 3 -n 6
***************************************************************
Running /Users/petejw/projects/libmesh_git/build/examples/subdomains/subdomains_ex2/.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()=2
n_partitions()=1
n_processors()=1
n_threads()=1
processor_id()=0
EquationSystems
n_systems()=1
System #0, "Poisson"
Type "LinearImplicit"
Variables="u" "v"
Finite Element Types="LAGRANGE", "JACOBI_20_00" "LAGRANGE", "JACOBI_20_00"
Infinite Element Mapping="CARTESIAN" "CARTESIAN"
Approximation Orders="SECOND", "THIRD" "SECOND", "THIRD"
n_dofs()=2522
n_local_dofs()=2522
n_constrained_dofs()=0
n_local_constrained_dofs()=0
n_vectors()=1
n_matrices()=1
DofMap Sparsity
Average On-Processor Bandwidth <= 48.5337
Average Off-Processor Bandwidth <= 0
Maximum On-Processor Bandwidth <= 125
Maximum Off-Processor Bandwidth <= 0
DofMap Constraints
Number of DoF Constraints = 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()=2
n_partitions()=1
n_processors()=1
n_threads()=1
processor_id()=0
-------------------------------------------------------------------------------------------------------------------
| Time: Wed Apr 13 10:46:15 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.043059, Active time=0.042053 |
------------------------------------------------------------------------------------------------------------
| 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 |
|------------------------------------------------------------------------------------------------------------|
| |
| BCs 216 0.0217 0.000101 0.0217 0.000101 51.71 51.71 |
| Fe 216 0.0020 0.000009 0.0020 0.000009 4.65 4.65 |
| Ke 216 0.0080 0.000037 0.0080 0.000037 19.14 19.14 |
| elem init 216 0.0070 0.000032 0.0070 0.000032 16.57 16.57 |
| matrix insertion 216 0.0033 0.000015 0.0033 0.000015 7.94 7.94 |
------------------------------------------------------------------------------------------------------------
| Totals: 1080 0.0421 100.00 |
------------------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------------------------
| libMesh Performance: Alive time=0.066728, Active time=0.060205 |
-----------------------------------------------------------------------------------------------------------------
| 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.000213 0.0002 0.000213 0.35 0.35 |
| build_sparsity() 1 0.0039 0.003859 0.0040 0.004029 6.41 6.69 |
| create_dof_constraints() 1 0.0000 0.000025 0.0000 0.000025 0.04 0.04 |
| distribute_dofs() 1 0.0003 0.000292 0.0013 0.001251 0.49 2.08 |
| dof_indices() 864 0.0006 0.000001 0.0006 0.000001 0.96 0.96 |
| prepare_send_list() 2 0.0000 0.000000 0.0000 0.000000 0.00 0.00 |
| reinit() 1 0.0010 0.000959 0.0010 0.000959 1.59 1.59 |
| |
| EquationSystems |
| build_solution_vector() 1 0.0007 0.000689 0.0008 0.000840 1.14 1.40 |
| |
| ExodusII_IO |
| write_nodal_data() 1 0.0025 0.002527 0.0025 0.002527 4.20 4.20 |
| |
| FE |
| compute_shape_functions() 576 0.0072 0.000012 0.0072 0.000012 11.93 11.93 |
| init_shape_functions() 361 0.0001 0.000000 0.0001 0.000000 0.24 0.24 |
| |
| FEMap |
| compute_affine_map() 576 0.0018 0.000003 0.0018 0.000003 2.94 2.94 |
| compute_face_map() 360 0.0006 0.000002 0.0006 0.000002 0.94 0.94 |
| init_face_shape_functions() 1 0.0000 0.000013 0.0000 0.000013 0.02 0.02 |
| init_reference_to_physical_map() 361 0.0135 0.000037 0.0135 0.000037 22.47 22.47 |
| |
| Mesh |
| find_neighbors() 1 0.0006 0.000595 0.0006 0.000595 0.99 0.99 |
| renumber_nodes_and_elem() 2 0.0000 0.000019 0.0000 0.000019 0.06 0.06 |
| |
| MeshOutput |
| write_equation_systems() 1 0.0000 0.000023 0.0034 0.003390 0.04 5.63 |
| |
| MeshTools::Generation |
| build_cube() 1 0.0004 0.000406 0.0004 0.000406 0.67 0.67 |
| |
| 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.07 0.07 |
| |
| PetscLinearSolver |
| solve() 1 0.0073 0.007349 0.0073 0.007349 12.21 12.21 |
| |
| System |
| assemble() 1 0.0194 0.019405 0.0431 0.043130 32.23 71.64 |
-----------------------------------------------------------------------------------------------------------------
| Totals: 3117 0.0602 100.00 |
-----------------------------------------------------------------------------------------------------------------
***************************************************************
* Done Running Example subdomains_ex2:
* example-opt -d 3 -n 6
***************************************************************