From c4acb578f22a14f6dc9ee0c67d192b186247f2da Mon Sep 17 00:00:00 2001 From: takahito-tejima Date: Tue, 21 Apr 2015 15:38:51 -0700 Subject: [PATCH] Fixes far_tutorial_6 crash --- tutorials/far/tutorial_6/far_tutorial_6.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tutorials/far/tutorial_6/far_tutorial_6.cpp b/tutorials/far/tutorial_6/far_tutorial_6.cpp index a0d92511..ca93d961 100644 --- a/tutorials/far/tutorial_6/far_tutorial_6.cpp +++ b/tutorials/far/tutorial_6/far_tutorial_6.cpp @@ -42,6 +42,7 @@ #include #include +#include #include #include @@ -154,8 +155,10 @@ int main(int, char **) { // Generate a set of Far::PatchTables that we will use to evaluate the // surface limit + Far::EndCapGregoryBasisPatchFactory endcapFactory(*refiner); Far::PatchTables const * patchTables = - Far::PatchTablesFactory::Create(*refiner); + Far::PatchTablesFactoryT::Create( + *refiner, Far::PatchTablesFactory::Options(), &endcapFactory); // Create a Far::PatchMap to help locating patches in the table Far::PatchMap patchmap(*patchTables);