Skip to content
Snippets Groups Projects
Commit 1c8a17d7 authored by Jonathan Youett's avatar Jonathan Youett
Browse files

Use new interface of makeRingSegment2D Factory

parent a8df4a44
Branches
No related tags found
No related merge requests found
...@@ -212,11 +212,9 @@ int main (int argc, char *argv[]) try ...@@ -212,11 +212,9 @@ int main (int argc, char *argv[]) try
std::cout<<"Checking 2D case!\n"; std::cout<<"Checking 2D case!\n";
typedef UGGrid<2> GridType2; typedef UGGrid<2> GridType2;
GridType2* grid2 = new GridType2;
FieldVector<double,2> cent2(0); FieldVector<double,2> cent2(0);
makeRingSegment2D(cent2, 0.2, 1, 0, 1.5, *grid2 , 10, false); auto grid2 = makeRingSegment2D<GridType2>(cent2, 0.2, 1, 0, 1.5, 10, false);
grid2->setRefinementType(GridType2::COPY); grid2->setRefinementType(GridType2::COPY);
for (int i=0; i<1; i++) for (int i=0; i<1; i++)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment