Skip to content

Commit b0ea7fc

Browse files
committed
Reversed the old constructors.
1 parent 2c4b963 commit b0ea7fc

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

laghos.cpp

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -217,14 +217,13 @@ int main(int argc, char *argv[])
217217
{
218218
if (dim == 1)
219219
{
220-
mesh = new Mesh(Mesh::MakeCartesian1D(2));
220+
mesh = new Mesh(2);
221221
mesh->GetBdrElement(0)->SetAttribute(1);
222222
mesh->GetBdrElement(1)->SetAttribute(1);
223223
}
224224
if (dim == 2)
225225
{
226-
mesh = new Mesh(Mesh::MakeCartesian2D(2, 2, Element::QUADRILATERAL,
227-
true));
226+
mesh = new Mesh(2, 2, Element::QUADRILATERAL,true);
228227
const int NBE = mesh->GetNBE();
229228
for (int b = 0; b < NBE; b++)
230229
{
@@ -235,8 +234,7 @@ int main(int argc, char *argv[])
235234
}
236235
if (dim == 3)
237236
{
238-
mesh = new Mesh(Mesh::MakeCartesian3D(2, 2, 2, Element::HEXAHEDRON,
239-
true));
237+
mesh = new Mesh(2, 2, 2, Element::HEXAHEDRON, true);
240238
const int NBE = mesh->GetNBE();
241239
for (int b = 0; b < NBE; b++)
242240
{

0 commit comments

Comments
 (0)