Skip to content

Commit 79e6be4

Browse files
author
Kevin Huynh
authored
more build updates (#83)
* more build updates * update reamde * Add software update to mac * update readme * change softwareupate
1 parent 13dee16 commit 79e6be4

23 files changed

+407
-32
lines changed

CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ cmake_policy(SET CMP0074 NEW) # Use <PackageName>_ROOT variables in find_package
2424
# for MPI and HDF5 dependency checking. The Fortran language must be enabled
2525
# for Fortran-C name mangling convention detection.
2626
project(libROM
27-
VERSION 0.0.1
27+
VERSION 1.0.0
2828
DESCRIPTION "Model reduction library emphasizing large-scale parallelism"
2929
HOMEPAGE_URL "https://github.com/LLNL/libROM"
3030
LANGUAGES C CXX Fortran)
@@ -163,6 +163,7 @@ if (USE_MFEM)
163163
${MPI_C_INCLUDE_DIRS})
164164
target_compile_features(${name} PRIVATE cxx_std_11)
165165
endforeach() # IN LISTS examples
166+
file(COPY examples/data DESTINATION ${CMAKE_BINARY_DIR}/examples)
166167
endif()
167168

168169
set(regression_test_names

examples/README.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Examples
2+
3+
These data and examples are built using MFEM and derived from their examples
4+
(https://mfem.org/examples/). libROM's examples are divided into two categories.
5+
6+
## Dynamic Mode Decomposition (DMD)
7+
8+
- DG Advection
9+
- DG Euler
10+
- Heat Conduction
11+
- Nonlinear Elasticity
12+
13+
## Projection-based Reduced Order Models (PROM)
14+
15+
- DG Advection (Global ROM)
16+
- DG Advection (Local ROM with matrix interpolation)
17+
- Mixed Linear Diffusion (Global ROM)
18+
- Poisson (Global ROM)
19+
- Poisson (Local ROM using the greedy algorithm)

examples/data/beam-quad.mesh

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
MFEM mesh v1.0
2+
3+
#
4+
# MFEM Geometry Types (see mesh/geom.hpp):
5+
#
6+
# POINT = 0
7+
# SEGMENT = 1
8+
# TRIANGLE = 2
9+
# SQUARE = 3
10+
# TETRAHEDRON = 4
11+
# CUBE = 5
12+
#
13+
14+
dimension
15+
2
16+
17+
elements
18+
8
19+
1 3 0 1 10 9
20+
1 3 1 2 11 10
21+
1 3 2 3 12 11
22+
1 3 3 4 13 12
23+
2 3 4 5 14 13
24+
2 3 5 6 15 14
25+
2 3 6 7 16 15
26+
2 3 7 8 17 16
27+
28+
boundary
29+
18
30+
3 1 0 1
31+
3 1 1 2
32+
3 1 2 3
33+
3 1 3 4
34+
3 1 4 5
35+
3 1 5 6
36+
3 1 6 7
37+
3 1 7 8
38+
3 1 10 9
39+
3 1 11 10
40+
3 1 12 11
41+
3 1 13 12
42+
3 1 14 13
43+
3 1 15 14
44+
3 1 16 15
45+
3 1 17 16
46+
1 1 9 0
47+
2 1 8 17
48+
49+
vertices
50+
18
51+
2
52+
0 0
53+
1 0
54+
2 0
55+
3 0
56+
4 0
57+
5 0
58+
6 0
59+
7 0
60+
8 0
61+
0 1
62+
1 1
63+
2 1
64+
3 1
65+
4 1
66+
5 1
67+
6 1
68+
7 1
69+
8 1

examples/data/inline-quad.mesh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
MFEM INLINE mesh v1.0
2+
3+
type = quad
4+
nx = 4
5+
ny = 4
6+
sx = 1.0
7+
sy = 1.0
Lines changed: 106 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,106 @@
1+
MFEM mesh v1.0
2+
3+
#
4+
# MFEM Geometry Types (see mesh/geom.hpp):
5+
#
6+
# POINT = 0
7+
# SEGMENT = 1
8+
# TRIANGLE = 2
9+
# SQUARE = 3
10+
# TETRAHEDRON = 4
11+
# CUBE = 5
12+
#
13+
14+
dimension
15+
2
16+
17+
# format: <attribute> <geometry type> <vertex 0> <vertex 1> ...
18+
elements
19+
12
20+
21+
1 3 0 2 8 5
22+
1 3 2 1 3 8
23+
1 3 5 8 6 11
24+
1 3 8 3 0 6
25+
26+
2 3 0 4 9 6
27+
2 3 4 1 2 9
28+
2 3 6 9 7 11
29+
2 3 9 2 0 7
30+
31+
3 3 0 3 10 7
32+
3 3 3 1 4 10
33+
3 3 7 10 5 11
34+
3 3 10 4 0 5
35+
36+
boundary
37+
0
38+
39+
vertices
40+
12
41+
42+
nodes
43+
FiniteElementSpace
44+
FiniteElementCollection: L2_T1_2D_P1
45+
VDim: 2
46+
Ordering: 1
47+
48+
-0.50 -0.8660254037844386
49+
0.00 -0.8660254037844386
50+
-0.25 -0.4330127018922193
51+
0.25 -0.4330127018922193
52+
53+
0.00 -0.8660254037844386
54+
0.50 -0.8660254037844386
55+
0.25 -0.4330127018922193
56+
0.75 -0.4330127018922193
57+
58+
-0.25 -0.4330127018922193
59+
0.25 -0.4330127018922193
60+
0.00 0.0
61+
0.50 0.0
62+
63+
0.25 -0.4330127018922193
64+
0.75 -0.4330127018922193
65+
0.50 0.0
66+
1.00 0.0
67+
68+
1.00 0.0
69+
0.75 0.4330127018922193
70+
0.50 0.0
71+
0.25 0.4330127018922193
72+
73+
0.75 0.4330127018922193
74+
0.50 0.8660254037844386
75+
0.25 0.4330127018922193
76+
0.00 0.8660254037844386
77+
78+
0.50 0.0
79+
0.25 0.4330127018922193
80+
0.00 0.0
81+
-0.25 0.4330127018922193
82+
83+
0.25 0.4330127018922193
84+
0.00 0.8660254037844386
85+
-0.25 0.4330127018922193
86+
-0.50 0.8660254037844386
87+
88+
-0.50 0.8660254037844386
89+
-0.75 0.4330127018922193
90+
-0.25 0.4330127018922193
91+
-0.50 0.0
92+
93+
-0.75 0.4330127018922193
94+
-1.00 0.0
95+
-0.50 0.0
96+
-0.75 -0.4330127018922193
97+
98+
-0.25 0.4330127018922193
99+
-0.50 0.0
100+
0.00 0.0
101+
-0.25 -0.4330127018922193
102+
103+
-0.50 0.0
104+
-0.75 -0.4330127018922193
105+
-0.25 -0.4330127018922193
106+
-0.50 -0.8660254037844386

examples/data/periodic-square.mesh

Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
MFEM mesh v1.0
2+
3+
#
4+
# MFEM Geometry Types (see mesh/geom.hpp):
5+
#
6+
# POINT = 0
7+
# SEGMENT = 1
8+
# TRIANGLE = 2
9+
# SQUARE = 3
10+
# TETRAHEDRON = 4
11+
# CUBE = 5
12+
#
13+
14+
dimension
15+
2
16+
17+
# format: <attribute> <geometry type> <vertex 0> <vertex 1> ...
18+
elements
19+
9
20+
1 3 0 1 4 3
21+
2 3 1 2 5 4
22+
3 3 2 0 3 5
23+
4 3 3 4 7 6
24+
5 3 4 5 8 7
25+
6 3 5 3 6 8
26+
7 3 6 7 1 0
27+
8 3 7 8 2 1
28+
9 3 8 6 0 2
29+
30+
boundary
31+
0
32+
33+
vertices
34+
9
35+
36+
nodes
37+
FiniteElementSpace
38+
FiniteElementCollection: L2_T1_2D_P1
39+
VDim: 2
40+
Ordering: 1
41+
42+
-1 -1
43+
-0.333333333 -1
44+
-1 -0.333333333
45+
-0.333333333 -0.333333333
46+
47+
-0.333333333 -1
48+
+0.333333333 -1
49+
-0.333333333 -0.333333333
50+
+0.333333333 -0.333333333
51+
52+
+0.333333333 -1
53+
+1 -1
54+
+0.333333333 -0.333333333
55+
+1 -0.333333333
56+
57+
-1 -0.333333333
58+
-0.333333333 -0.333333333
59+
-1 +0.333333333
60+
-0.333333333 +0.333333333
61+
62+
-0.333333333 -0.333333333
63+
+0.333333333 -0.333333333
64+
-0.333333333 +0.333333333
65+
+0.333333333 +0.333333333
66+
67+
+0.333333333 -0.333333333
68+
+1 -0.333333333
69+
+0.333333333 +0.333333333
70+
+1 +0.333333333
71+
72+
-1 +0.333333333
73+
-0.333333333 +0.333333333
74+
-1 +1
75+
-0.333333333 +1
76+
77+
-0.333333333 +0.333333333
78+
+0.333333333 +0.333333333
79+
-0.333333333 +1
80+
+0.333333333 +1
81+
82+
+0.333333333 +0.333333333
83+
+1 +0.333333333
84+
+0.333333333 +1
85+
+1 +1

0 commit comments

Comments
 (0)