Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0c0313d

Browse files
authored
Merge pull request #3883 from lindsayad/static-condensation
Static condensation
2 parents 69e327c + 6949cb4 commit 0c0313d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+6359
-2055
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,3 +232,6 @@ single
232232
trilinos_only
233233
xcode
234234
installed
235+
236+
# Allow developers to use .clang-format without dirtying git
237+
.clang-format

Makefile.in

Lines changed: 81 additions & 0 deletions
Large diffs are not rendered by default.

clang-format

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
BasedOnStyle: LLVM
2+
3+
TabWidth: 2
4+
ColumnLimit: 100
5+
UseTab: Never
6+
7+
CommentPragmas: '^/'
8+
ReflowComments: true
9+
AlignTrailingComments: true
10+
SpacesBeforeTrailingComments: 1
11+
12+
SpaceBeforeParens: ControlStatements
13+
SpacesInSquareBrackets: false
14+
PointerAlignment: Middle
15+
16+
BinPackParameters: false
17+
BinPackArguments: false
18+
ConstructorInitializerAllOnOneLineOrOnePerLine: true
19+
AllowShortBlocksOnASingleLine: false
20+
AllowShortFunctionsOnASingleLine: true
21+
AllowShortIfStatementsOnASingleLine: false
22+
AllowShortLoopsOnASingleLine: false
23+
24+
SortIncludes: false
25+
IndentCaseLabels: true
26+
ConstructorInitializerIndentWidth: 2
27+
AlwaysBreakAfterDefinitionReturnType: TopLevel
28+
AlwaysBreakTemplateDeclarations: true
29+
30+
FixNamespaceComments: false
31+
32+
BreakBeforeBraces: Custom
33+
BraceWrapping:
34+
AfterNamespace: true
35+
AfterFunction: true
36+
AfterControlStatement: true
37+
IndentBraces: true
38+
BeforeElse: true
39+
AfterStruct: true
40+
AfterClass: true

configure

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60318,7 +60318,7 @@ printf "%s\n" "#define BUILD_DATE __DATE__ \" \" __TIME__" >>confdefs.h
6031860318
if test "x$enableexamples" = "xyes"
6031960319
then :
6032060320

60321-
ac_config_files="$ac_config_files examples/introduction/introduction_ex1/Makefile examples/introduction/introduction_ex2/Makefile examples/introduction/introduction_ex3/Makefile examples/introduction/introduction_ex4/Makefile examples/introduction/introduction_ex5/Makefile examples/adaptivity/adaptivity_ex1/Makefile examples/adaptivity/adaptivity_ex2/Makefile examples/adaptivity/adaptivity_ex3/Makefile examples/adaptivity/adaptivity_ex4/Makefile examples/adaptivity/adaptivity_ex5/Makefile examples/adjoints/adjoints_ex1/Makefile examples/adjoints/adjoints_ex2/Makefile examples/adjoints/adjoints_ex3/Makefile examples/adjoints/adjoints_ex4/Makefile examples/adjoints/adjoints_ex5/Makefile examples/adjoints/adjoints_ex6/Makefile examples/adjoints/adjoints_ex7/Makefile examples/eigenproblems/eigenproblems_ex1/Makefile examples/eigenproblems/eigenproblems_ex2/Makefile examples/eigenproblems/eigenproblems_ex3/Makefile examples/eigenproblems/eigenproblems_ex4/Makefile examples/fem_system/fem_system_ex1/Makefile examples/fem_system/fem_system_ex2/Makefile examples/fem_system/fem_system_ex3/Makefile examples/fem_system/fem_system_ex4/Makefile examples/fem_system/fem_system_ex5/Makefile examples/solution_transfer/solution_transfer_ex1/Makefile examples/miscellaneous/miscellaneous_ex1/Makefile examples/miscellaneous/miscellaneous_ex2/Makefile examples/miscellaneous/miscellaneous_ex3/Makefile examples/miscellaneous/miscellaneous_ex4/Makefile examples/miscellaneous/miscellaneous_ex5/Makefile examples/miscellaneous/miscellaneous_ex6/Makefile examples/miscellaneous/miscellaneous_ex7/Makefile examples/miscellaneous/miscellaneous_ex8/Makefile examples/miscellaneous/miscellaneous_ex9/Makefile examples/miscellaneous/miscellaneous_ex10/Makefile examples/miscellaneous/miscellaneous_ex11/Makefile examples/miscellaneous/miscellaneous_ex12/Makefile examples/miscellaneous/miscellaneous_ex13/Makefile examples/miscellaneous/miscellaneous_ex14/Makefile examples/miscellaneous/miscellaneous_ex15/Makefile examples/optimization/optimization_ex1/Makefile examples/optimization/optimization_ex2/Makefile examples/subdomains/subdomains_ex1/Makefile examples/subdomains/subdomains_ex2/Makefile examples/subdomains/subdomains_ex3/Makefile examples/systems_of_equations/systems_of_equations_ex1/Makefile examples/systems_of_equations/systems_of_equations_ex2/Makefile examples/systems_of_equations/systems_of_equations_ex3/Makefile examples/systems_of_equations/systems_of_equations_ex4/Makefile examples/systems_of_equations/systems_of_equations_ex5/Makefile examples/systems_of_equations/systems_of_equations_ex6/Makefile examples/systems_of_equations/systems_of_equations_ex7/Makefile examples/systems_of_equations/systems_of_equations_ex8/Makefile examples/systems_of_equations/systems_of_equations_ex9/Makefile examples/reduced_basis/reduced_basis_ex1/Makefile examples/reduced_basis/reduced_basis_ex2/Makefile examples/reduced_basis/reduced_basis_ex3/Makefile examples/reduced_basis/reduced_basis_ex4/Makefile examples/reduced_basis/reduced_basis_ex5/Makefile examples/reduced_basis/reduced_basis_ex6/Makefile examples/reduced_basis/reduced_basis_ex7/Makefile examples/transient/transient_ex1/Makefile examples/transient/transient_ex2/Makefile examples/vector_fe/vector_fe_ex1/Makefile examples/vector_fe/vector_fe_ex2/Makefile examples/vector_fe/vector_fe_ex3/Makefile examples/vector_fe/vector_fe_ex4/Makefile examples/vector_fe/vector_fe_ex5/Makefile examples/vector_fe/vector_fe_ex6/Makefile examples/vector_fe/vector_fe_ex7/Makefile examples/vector_fe/vector_fe_ex8/Makefile examples/vector_fe/vector_fe_ex9/Makefile examples/Makefile"
60321+
ac_config_files="$ac_config_files examples/introduction/introduction_ex1/Makefile examples/introduction/introduction_ex2/Makefile examples/introduction/introduction_ex3/Makefile examples/introduction/introduction_ex4/Makefile examples/introduction/introduction_ex5/Makefile examples/adaptivity/adaptivity_ex1/Makefile examples/adaptivity/adaptivity_ex2/Makefile examples/adaptivity/adaptivity_ex3/Makefile examples/adaptivity/adaptivity_ex4/Makefile examples/adaptivity/adaptivity_ex5/Makefile examples/adjoints/adjoints_ex1/Makefile examples/adjoints/adjoints_ex2/Makefile examples/adjoints/adjoints_ex3/Makefile examples/adjoints/adjoints_ex4/Makefile examples/adjoints/adjoints_ex5/Makefile examples/adjoints/adjoints_ex6/Makefile examples/adjoints/adjoints_ex7/Makefile examples/eigenproblems/eigenproblems_ex1/Makefile examples/eigenproblems/eigenproblems_ex2/Makefile examples/eigenproblems/eigenproblems_ex3/Makefile examples/eigenproblems/eigenproblems_ex4/Makefile examples/fem_system/fem_system_ex1/Makefile examples/fem_system/fem_system_ex2/Makefile examples/fem_system/fem_system_ex3/Makefile examples/fem_system/fem_system_ex4/Makefile examples/fem_system/fem_system_ex5/Makefile examples/solution_transfer/solution_transfer_ex1/Makefile examples/miscellaneous/miscellaneous_ex1/Makefile examples/miscellaneous/miscellaneous_ex2/Makefile examples/miscellaneous/miscellaneous_ex3/Makefile examples/miscellaneous/miscellaneous_ex4/Makefile examples/miscellaneous/miscellaneous_ex5/Makefile examples/miscellaneous/miscellaneous_ex6/Makefile examples/miscellaneous/miscellaneous_ex7/Makefile examples/miscellaneous/miscellaneous_ex8/Makefile examples/miscellaneous/miscellaneous_ex9/Makefile examples/miscellaneous/miscellaneous_ex10/Makefile examples/miscellaneous/miscellaneous_ex11/Makefile examples/miscellaneous/miscellaneous_ex12/Makefile examples/miscellaneous/miscellaneous_ex13/Makefile examples/miscellaneous/miscellaneous_ex14/Makefile examples/miscellaneous/miscellaneous_ex15/Makefile examples/miscellaneous/miscellaneous_ex16/Makefile examples/optimization/optimization_ex1/Makefile examples/optimization/optimization_ex2/Makefile examples/subdomains/subdomains_ex1/Makefile examples/subdomains/subdomains_ex2/Makefile examples/subdomains/subdomains_ex3/Makefile examples/systems_of_equations/systems_of_equations_ex1/Makefile examples/systems_of_equations/systems_of_equations_ex2/Makefile examples/systems_of_equations/systems_of_equations_ex3/Makefile examples/systems_of_equations/systems_of_equations_ex4/Makefile examples/systems_of_equations/systems_of_equations_ex5/Makefile examples/systems_of_equations/systems_of_equations_ex6/Makefile examples/systems_of_equations/systems_of_equations_ex7/Makefile examples/systems_of_equations/systems_of_equations_ex8/Makefile examples/systems_of_equations/systems_of_equations_ex9/Makefile examples/reduced_basis/reduced_basis_ex1/Makefile examples/reduced_basis/reduced_basis_ex2/Makefile examples/reduced_basis/reduced_basis_ex3/Makefile examples/reduced_basis/reduced_basis_ex4/Makefile examples/reduced_basis/reduced_basis_ex5/Makefile examples/reduced_basis/reduced_basis_ex6/Makefile examples/reduced_basis/reduced_basis_ex7/Makefile examples/transient/transient_ex1/Makefile examples/transient/transient_ex2/Makefile examples/vector_fe/vector_fe_ex1/Makefile examples/vector_fe/vector_fe_ex2/Makefile examples/vector_fe/vector_fe_ex3/Makefile examples/vector_fe/vector_fe_ex4/Makefile examples/vector_fe/vector_fe_ex5/Makefile examples/vector_fe/vector_fe_ex6/Makefile examples/vector_fe/vector_fe_ex7/Makefile examples/vector_fe/vector_fe_ex8/Makefile examples/vector_fe/vector_fe_ex9/Makefile examples/Makefile"
6032260322

6032360323

6032460324
fi
@@ -62621,6 +62621,7 @@ do
6262162621
"examples/miscellaneous/miscellaneous_ex13/Makefile") CONFIG_FILES="$CONFIG_FILES examples/miscellaneous/miscellaneous_ex13/Makefile" ;;
6262262622
"examples/miscellaneous/miscellaneous_ex14/Makefile") CONFIG_FILES="$CONFIG_FILES examples/miscellaneous/miscellaneous_ex14/Makefile" ;;
6262362623
"examples/miscellaneous/miscellaneous_ex15/Makefile") CONFIG_FILES="$CONFIG_FILES examples/miscellaneous/miscellaneous_ex15/Makefile" ;;
62624+
"examples/miscellaneous/miscellaneous_ex16/Makefile") CONFIG_FILES="$CONFIG_FILES examples/miscellaneous/miscellaneous_ex16/Makefile" ;;
6262462625
"examples/optimization/optimization_ex1/Makefile") CONFIG_FILES="$CONFIG_FILES examples/optimization/optimization_ex1/Makefile" ;;
6262562626
"examples/optimization/optimization_ex2/Makefile") CONFIG_FILES="$CONFIG_FILES examples/optimization/optimization_ex2/Makefile" ;;
6262662627
"examples/subdomains/subdomains_ex1/Makefile") CONFIG_FILES="$CONFIG_FILES examples/subdomains/subdomains_ex1/Makefile" ;;

configure.ac

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -446,6 +446,7 @@ AS_IF([test "x$enableexamples" = "xyes"],
446446
examples/miscellaneous/miscellaneous_ex13/Makefile
447447
examples/miscellaneous/miscellaneous_ex14/Makefile
448448
examples/miscellaneous/miscellaneous_ex15/Makefile
449+
examples/miscellaneous/miscellaneous_ex16/Makefile
449450
examples/optimization/optimization_ex1/Makefile
450451
examples/optimization/optimization_ex2/Makefile
451452
examples/subdomains/subdomains_ex1/Makefile
Lines changed: 132 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,132 @@
1+
<!doctype html>
2+
<html lang="en-US">
3+
<head>
4+
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
5+
<title>libMesh - A C++ Finite Element Library</title>
6+
<meta name="author" content="libMesh development team">
7+
<link rel="stylesheet" type="text/css" media="all" href="../styles.css">
8+
<link rel="stylesheet" type="text/css" media="all" href="../doxygen_stylesheet.css">
9+
</head>
10+
11+
<body>
12+
<nav id="fixedbar">
13+
<ul id="fixednav">
14+
<li><a href="../index.html">Home</a></li>
15+
<li><a href="../support.html">About Us</a></li>
16+
<li><a href="../publications.html">Publications</a></li>
17+
<li><a href="https://github.com/libMesh/libmesh/graphs/contributors">Developers</a></li>
18+
<li><a href="../installation.html">Installation</a></li>
19+
<li><a href="../examples.html">Examples</a></li>
20+
<li><a href="https://mooseframework.inl.gov/docs/doxygen/libmesh/index.html">Documentation</a></li>
21+
</ul>
22+
</nav>
23+
24+
<div id="w">
25+
<header id="logo"><a href="../index.html"><span id="logobg">SomeWebsiteLogo</span></a></header>
26+
27+
<nav id="navigation">
28+
<ul>
29+
<li><a href="../index.html">Home</a></li>
30+
<li><a href="../support.html">About Us</a></li>
31+
<li><a href="../publications.html">Publications</a></li>
32+
<li><a href="https://github.com/libMesh/libmesh/graphs/contributors">Developers</a></li>
33+
<li><a href="../installation.html">Installation</a></li>
34+
<li><a href="../examples.html">Examples</a></li>
35+
<li><a href="https://mooseframework.inl.gov/docs/doxygen/libmesh/index.html">Documentation</a></li>
36+
</ul>
37+
</nav>
38+
39+
<div id="content">
40+
41+
<br> <h1> Link to the source code for this example: </h1>
42+
<a href="https://github.com/libMesh/libmesh/tree/master/examples/miscellaneous/miscellaneous_ex16" target="_blank">Open miscellaneous_ex16 in new tab.</a>
43+
<a name="output"></a>
44+
<br><br><br> <h1> The console output of the program: </h1>
45+
<pre>
46+
***************************************************************
47+
* Running Example miscellaneous_ex16:
48+
* ./example-opt
49+
***************************************************************
50+
51+
Running /home/lindad/libmesh/build/examples/miscellaneous/miscellaneous_ex16/.libs/example-opt
52+
53+
Mesh Information:
54+
elem_dimensions()={2}
55+
spatial_dimension()=2
56+
n_nodes()=961
57+
n_local_nodes()=961
58+
n_elem()=225
59+
n_local_elem()=225
60+
n_active_elem()=225
61+
n_subdomains()=1
62+
n_elemsets()=0
63+
n_partitions()=1
64+
n_processors()=1
65+
n_threads()=1
66+
processor_id()=0
67+
is_prepared()=true
68+
is_replicated()=true
69+
70+
EquationSystems
71+
n_systems()=1
72+
System #0, "Poisson"
73+
Type "LinearImplicit"
74+
Variables="u"
75+
Finite Element Types="LAGRANGE"
76+
Approximation Orders="SECOND"
77+
n_dofs()=961
78+
n_local_dofs()=961
79+
max(n_local_dofs())=961
80+
n_constrained_dofs()=0
81+
n_local_constrained_dofs()=0
82+
max(local unconstrained dofs)=961
83+
n_vectors()=1
84+
n_matrices()=1
85+
DofMap Sparsity
86+
Average On-Processor Bandwidth <= 15.2352
87+
Average Off-Processor Bandwidth <= 0
88+
Maximum On-Processor Bandwidth <= 25
89+
Maximum Off-Processor Bandwidth <= 0
90+
DofMap Constraints
91+
Number of DoF Constraints = 0
92+
93+
Static condensation reduced problem size to 736
94+
95+
***************************************************************
96+
* Done Running Example miscellaneous_ex16:
97+
* ./example-opt
98+
***************************************************************
99+
</pre>
100+
</div>
101+
102+
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
103+
<script type="text/javascript">
104+
$(document).ready(function(){
105+
$(window).on('scroll',function() {
106+
var scrolltop = $(this).scrollTop();
107+
108+
if(scrolltop >= 215) {
109+
$('#fixedbar').fadeIn(250);
110+
}
111+
112+
else if(scrolltop <= 210) {
113+
$('#fixedbar').fadeOut(250);
114+
}
115+
});
116+
});
117+
</script>
118+
119+
<!-- Google Analytics stuff -->
120+
<script type="text/javascript">
121+
var _gaq = _gaq || [];
122+
_gaq.push(['_setAccount', 'UA-24978333-1']);
123+
_gaq.push(['_trackPageview']);
124+
(function() {
125+
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
126+
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
127+
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
128+
})();
129+
</script>
130+
131+
</body>
132+
</html>

0 commit comments

Comments
 (0)