Skip to content

Commit

Permalink
more build updates (#83)
Browse files Browse the repository at this point in the history
* more build updates

* update reamde

* Add software update to mac

* update readme

* change softwareupate
  • Loading branch information
Kevin Huynh authored Nov 12, 2021
1 parent 13dee16 commit 79e6be4
Show file tree
Hide file tree
Showing 23 changed files with 407 additions and 32 deletions.
3 changes: 2 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ cmake_policy(SET CMP0074 NEW) # Use <PackageName>_ROOT variables in find_package
# for MPI and HDF5 dependency checking. The Fortran language must be enabled
# for Fortran-C name mangling convention detection.
project(libROM
VERSION 0.0.1
VERSION 1.0.0
DESCRIPTION "Model reduction library emphasizing large-scale parallelism"
HOMEPAGE_URL "https://github.com/LLNL/libROM"
LANGUAGES C CXX Fortran)
Expand Down Expand Up @@ -163,6 +163,7 @@ if (USE_MFEM)
${MPI_C_INCLUDE_DIRS})
target_compile_features(${name} PRIVATE cxx_std_11)
endforeach() # IN LISTS examples
file(COPY examples/data DESTINATION ${CMAKE_BINARY_DIR}/examples)
endif()

set(regression_test_names
Expand Down
19 changes: 19 additions & 0 deletions examples/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Examples

These data and examples are built using MFEM and derived from their examples
(https://mfem.org/examples/). libROM's examples are divided into two categories.

## Dynamic Mode Decomposition (DMD)

- DG Advection
- DG Euler
- Heat Conduction
- Nonlinear Elasticity

## Projection-based Reduced Order Models (PROM)

- DG Advection (Global ROM)
- DG Advection (Local ROM with matrix interpolation)
- Mixed Linear Diffusion (Global ROM)
- Poisson (Global ROM)
- Poisson (Local ROM using the greedy algorithm)
69 changes: 69 additions & 0 deletions examples/data/beam-quad.mesh
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
MFEM mesh v1.0

#
# MFEM Geometry Types (see mesh/geom.hpp):
#
# POINT = 0
# SEGMENT = 1
# TRIANGLE = 2
# SQUARE = 3
# TETRAHEDRON = 4
# CUBE = 5
#

dimension
2

elements
8
1 3 0 1 10 9
1 3 1 2 11 10
1 3 2 3 12 11
1 3 3 4 13 12
2 3 4 5 14 13
2 3 5 6 15 14
2 3 6 7 16 15
2 3 7 8 17 16

boundary
18
3 1 0 1
3 1 1 2
3 1 2 3
3 1 3 4
3 1 4 5
3 1 5 6
3 1 6 7
3 1 7 8
3 1 10 9
3 1 11 10
3 1 12 11
3 1 13 12
3 1 14 13
3 1 15 14
3 1 16 15
3 1 17 16
1 1 9 0
2 1 8 17

vertices
18
2
0 0
1 0
2 0
3 0
4 0
5 0
6 0
7 0
8 0
0 1
1 1
2 1
3 1
4 1
5 1
6 1
7 1
8 1
7 changes: 7 additions & 0 deletions examples/data/inline-quad.mesh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
MFEM INLINE mesh v1.0

type = quad
nx = 4
ny = 4
sx = 1.0
sy = 1.0
106 changes: 106 additions & 0 deletions examples/data/periodic-hexagon.mesh
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
MFEM mesh v1.0

#
# MFEM Geometry Types (see mesh/geom.hpp):
#
# POINT = 0
# SEGMENT = 1
# TRIANGLE = 2
# SQUARE = 3
# TETRAHEDRON = 4
# CUBE = 5
#

dimension
2

# format: <attribute> <geometry type> <vertex 0> <vertex 1> ...
elements
12

1 3 0 2 8 5
1 3 2 1 3 8
1 3 5 8 6 11
1 3 8 3 0 6

2 3 0 4 9 6
2 3 4 1 2 9
2 3 6 9 7 11
2 3 9 2 0 7

3 3 0 3 10 7
3 3 3 1 4 10
3 3 7 10 5 11
3 3 10 4 0 5

boundary
0

vertices
12

nodes
FiniteElementSpace
FiniteElementCollection: L2_T1_2D_P1
VDim: 2
Ordering: 1

-0.50 -0.8660254037844386
0.00 -0.8660254037844386
-0.25 -0.4330127018922193
0.25 -0.4330127018922193

0.00 -0.8660254037844386
0.50 -0.8660254037844386
0.25 -0.4330127018922193
0.75 -0.4330127018922193

-0.25 -0.4330127018922193
0.25 -0.4330127018922193
0.00 0.0
0.50 0.0

0.25 -0.4330127018922193
0.75 -0.4330127018922193
0.50 0.0
1.00 0.0

1.00 0.0
0.75 0.4330127018922193
0.50 0.0
0.25 0.4330127018922193

0.75 0.4330127018922193
0.50 0.8660254037844386
0.25 0.4330127018922193
0.00 0.8660254037844386

0.50 0.0
0.25 0.4330127018922193
0.00 0.0
-0.25 0.4330127018922193

0.25 0.4330127018922193
0.00 0.8660254037844386
-0.25 0.4330127018922193
-0.50 0.8660254037844386

-0.50 0.8660254037844386
-0.75 0.4330127018922193
-0.25 0.4330127018922193
-0.50 0.0

-0.75 0.4330127018922193
-1.00 0.0
-0.50 0.0
-0.75 -0.4330127018922193

-0.25 0.4330127018922193
-0.50 0.0
0.00 0.0
-0.25 -0.4330127018922193

-0.50 0.0
-0.75 -0.4330127018922193
-0.25 -0.4330127018922193
-0.50 -0.8660254037844386
85 changes: 85 additions & 0 deletions examples/data/periodic-square.mesh
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
MFEM mesh v1.0

#
# MFEM Geometry Types (see mesh/geom.hpp):
#
# POINT = 0
# SEGMENT = 1
# TRIANGLE = 2
# SQUARE = 3
# TETRAHEDRON = 4
# CUBE = 5
#

dimension
2

# format: <attribute> <geometry type> <vertex 0> <vertex 1> ...
elements
9
1 3 0 1 4 3
2 3 1 2 5 4
3 3 2 0 3 5
4 3 3 4 7 6
5 3 4 5 8 7
6 3 5 3 6 8
7 3 6 7 1 0
8 3 7 8 2 1
9 3 8 6 0 2

boundary
0

vertices
9

nodes
FiniteElementSpace
FiniteElementCollection: L2_T1_2D_P1
VDim: 2
Ordering: 1

-1 -1
-0.333333333 -1
-1 -0.333333333
-0.333333333 -0.333333333

-0.333333333 -1
+0.333333333 -1
-0.333333333 -0.333333333
+0.333333333 -0.333333333

+0.333333333 -1
+1 -1
+0.333333333 -0.333333333
+1 -0.333333333

-1 -0.333333333
-0.333333333 -0.333333333
-1 +0.333333333
-0.333333333 +0.333333333

-0.333333333 -0.333333333
+0.333333333 -0.333333333
-0.333333333 +0.333333333
+0.333333333 +0.333333333

+0.333333333 -0.333333333
+1 -0.333333333
+0.333333333 +0.333333333
+1 +0.333333333

-1 +0.333333333
-0.333333333 +0.333333333
-1 +1
-0.333333333 +1

-0.333333333 +0.333333333
+0.333333333 +0.333333333
-0.333333333 +1
+0.333333333 +1

+0.333333333 +0.333333333
+1 +0.333333333
+0.333333333 +1
+1 +1
Loading

0 comments on commit 79e6be4

Please sign in to comment.