Link to the source code for this example:
Open adaptivity_ex1 in new tab.
The console output of the program:
***************************************************************
* Running Example adaptivity_ex1:
* example-opt
***************************************************************
Error estimate
l2 norm = 6.92141
maximum = 3.48539
Error estimate
l2 norm = 4.26669
maximum = 2.13334
Error estimate
l2 norm = 1.4544
maximum = 0.727055
Error estimate
l2 norm = 0.308552
maximum = 0.152269
Error estimate
l2 norm = 0.0599993
maximum = 0.0230905
-------------------------------------------------------------------------------------------------------------------
| Time: Wed Apr 13 09:20:30 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.013423, Active time=0.007095 |
-----------------------------------------------------------------------------------------------------------------
| 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() 6 0.0001 0.000012 0.0001 0.000012 1.01 1.01 |
| build_sparsity() 6 0.0002 0.000033 0.0011 0.000187 2.78 15.84 |
| create_dof_constraints() 6 0.0000 0.000001 0.0000 0.000001 0.07 0.07 |
| distribute_dofs() 6 0.0001 0.000025 0.0004 0.000066 2.09 5.57 |
| dof_indices() 688 0.0010 0.000001 0.0010 0.000001 14.36 14.36 |
| old_dof_indices() 300 0.0001 0.000000 0.0001 0.000000 0.96 0.96 |
| prepare_send_list() 7 0.0000 0.000000 0.0000 0.000000 0.01 0.01 |
| reinit() 6 0.0002 0.000041 0.0002 0.000041 3.48 3.48 |
| |
| EquationSystems |
| build_solution_vector() 1 0.0001 0.000056 0.0001 0.000064 0.79 0.90 |
| |
| FE |
| compute_shape_functions() 408 0.0001 0.000000 0.0001 0.000000 1.66 1.66 |
| init_shape_functions() 310 0.0003 0.000001 0.0003 0.000001 4.82 4.82 |
| inverse_map() 133 0.0000 0.000000 0.0000 0.000000 0.39 0.39 |
| |
| FEMap |
| compute_affine_map() 408 0.0001 0.000000 0.0001 0.000000 1.99 1.99 |
| compute_face_map() 171 0.0000 0.000000 0.0000 0.000000 0.20 0.20 |
| init_face_shape_functions() 5 0.0000 0.000000 0.0000 0.000000 0.03 0.03 |
| init_reference_to_physical_map() 310 0.0001 0.000000 0.0001 0.000000 1.89 1.89 |
| |
| GenericProjector |
| copy_dofs 24 0.0000 0.000000 0.0001 0.000003 0.14 0.86 |
| operator() 5 0.0002 0.000042 0.0016 0.000327 2.97 23.07 |
| project_edges 76 0.0000 0.000000 0.0000 0.000000 0.11 0.11 |
| project_interior 76 0.0000 0.000000 0.0000 0.000000 0.10 0.10 |
| project_nodes 76 0.0001 0.000001 0.0013 0.000017 1.16 17.91 |
| project_sides 76 0.0000 0.000000 0.0000 0.000000 0.08 0.08 |
| |
| GnuPlotIO |
| write_nodal_data() 1 0.0003 0.000322 0.0003 0.000322 4.54 4.54 |
| |
| JumpErrorEstimator |
| estimate_error() 5 0.0007 0.000143 0.0011 0.000223 10.06 15.74 |
| |
| Mesh |
| contract() 5 0.0000 0.000003 0.0000 0.000003 0.18 0.23 |
| find_neighbors() 6 0.0003 0.000054 0.0003 0.000054 4.59 4.59 |
| renumber_nodes_and_elem() 17 0.0000 0.000001 0.0000 0.000001 0.13 0.13 |
| |
| MeshOutput |
| write_equation_systems() 1 0.0000 0.000013 0.0004 0.000399 0.18 5.62 |
| |
| MeshRefinement |
| _coarsen_elements() 10 0.0000 0.000001 0.0000 0.000001 0.21 0.21 |
| _refine_elements() 10 0.0002 0.000015 0.0002 0.000022 2.14 3.14 |
| add_node() 228 0.0001 0.000000 0.0001 0.000000 0.78 0.78 |
| make_coarsening_compatible() 11 0.0003 0.000027 0.0003 0.000027 4.19 4.19 |
| make_flags_parallel_consistent() 15 0.0001 0.000008 0.0001 0.000008 1.68 1.68 |
| make_refinement_compatible() 11 0.0000 0.000004 0.0000 0.000004 0.59 0.59 |
| |
| MeshTools::Generation |
| build_cube() 1 0.0000 0.000025 0.0000 0.000025 0.35 0.35 |
| |
| OldSolutionValue |
| Number eval_at_node() 228 0.0000 0.000000 0.0000 0.000000 0.20 0.20 |
| check_old_context(c) 24 0.0000 0.000001 0.0000 0.000001 0.24 0.47 |
| check_old_context(c,p) 76 0.0001 0.000001 0.0001 0.000001 0.85 1.34 |
| eval_at_point() 76 0.0006 0.000008 0.0012 0.000015 8.32 16.22 |
| eval_old_dofs() 24 0.0000 0.000001 0.0001 0.000002 0.21 0.70 |
| |
| Parallel |
| allgather() 6 0.0000 0.000000 0.0000 0.000000 0.00 0.00 |
| |
| Partitioner |
| single_partition() 6 0.0000 0.000003 0.0000 0.000003 0.25 0.25 |
| |
| PetscLinearSolver |
| solve() 6 0.0007 0.000117 0.0007 0.000117 9.92 9.92 |
| |
| StatisticsVector |
| maximum() 5 0.0000 0.000000 0.0000 0.000000 0.03 0.03 |
| |
| System |
| assemble() 6 0.0002 0.000034 0.0004 0.000060 2.88 5.09 |
| project_vector(old,new) 5 0.0003 0.000061 0.0020 0.000397 4.33 27.95 |
| |
| TopologyMap |
| init() 10 0.0001 0.000015 0.0001 0.000015 2.06 2.06 |
-----------------------------------------------------------------------------------------------------------------
| Totals: 3897 0.0071 100.00 |
-----------------------------------------------------------------------------------------------------------------
***************************************************************
* Done Running Example adaptivity_ex1:
* example-opt
***************************************************************