Skip to content

Commit

Permalink
Reversed the old constructors.
Browse files Browse the repository at this point in the history
  • Loading branch information
vladotomov committed Apr 9, 2021
1 parent 2c4b963 commit b0ea7fc
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions laghos.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -217,14 +217,13 @@ int main(int argc, char *argv[])
{
if (dim == 1)
{
mesh = new Mesh(Mesh::MakeCartesian1D(2));
mesh = new Mesh(2);
mesh->GetBdrElement(0)->SetAttribute(1);
mesh->GetBdrElement(1)->SetAttribute(1);
}
if (dim == 2)
{
mesh = new Mesh(Mesh::MakeCartesian2D(2, 2, Element::QUADRILATERAL,
true));
mesh = new Mesh(2, 2, Element::QUADRILATERAL,true);
const int NBE = mesh->GetNBE();
for (int b = 0; b < NBE; b++)
{
Expand All @@ -235,8 +234,7 @@ int main(int argc, char *argv[])
}
if (dim == 3)
{
mesh = new Mesh(Mesh::MakeCartesian3D(2, 2, 2, Element::HEXAHEDRON,
true));
mesh = new Mesh(2, 2, 2, Element::HEXAHEDRON, true);
const int NBE = mesh->GetNBE();
for (int b = 0; b < NBE; b++)
{
Expand Down

0 comments on commit b0ea7fc

Please sign in to comment.