Skip to content

Commit

Permalink
Merge pull request #144 from CEED/v3.1-dev
Browse files Browse the repository at this point in the history
New Laghos version, 3.1, compatible with MFEM v4.2
  • Loading branch information
tzanio authored Apr 9, 2021
2 parents 95f2b9d + d122dfd commit 2c4b963
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,16 @@
High-order Lagrangian Hydrodynamics Miniapp


Version 3.1, released on Apr 9, 2021
====================================

- New version compatible with MFEM v4.2.

- Added new examples: Taylor-Green instability and 3D Triple Point.

- Support for device computations of internal and kinetic energy.


Version 3.0, released on Mar 27, 2020
=====================================

Expand Down
8 changes: 5 additions & 3 deletions laghos.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -217,13 +217,14 @@ int main(int argc, char *argv[])
{
if (dim == 1)
{
mesh = new Mesh(2);
mesh = new Mesh(Mesh::MakeCartesian1D(2));
mesh->GetBdrElement(0)->SetAttribute(1);
mesh->GetBdrElement(1)->SetAttribute(1);
}
if (dim == 2)
{
mesh = new Mesh(2, 2, Element::QUADRILATERAL, true);
mesh = new Mesh(Mesh::MakeCartesian2D(2, 2, Element::QUADRILATERAL,
true));
const int NBE = mesh->GetNBE();
for (int b = 0; b < NBE; b++)
{
Expand All @@ -234,7 +235,8 @@ int main(int argc, char *argv[])
}
if (dim == 3)
{
mesh = new Mesh(2, 2, 2, Element::HEXAHEDRON, true);
mesh = new Mesh(Mesh::MakeCartesian3D(2, 2, 2, Element::HEXAHEDRON,
true));
const int NBE = mesh->GetNBE();
for (int b = 0; b < NBE; b++)
{
Expand Down

0 comments on commit 2c4b963

Please sign in to comment.