Merge pull request #1177 from barfowl/far_tutorial_5_1

Fixed initialization oversight in far/tutorial_5_1
This commit is contained in:
David G Yu 2020-02-10 17:37:18 -08:00 committed by GitHub
commit c3a34255cd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -157,7 +157,7 @@ int main(int, char **) {
//
int maxPatchLevel = 3;
Far::PatchTableFactory::Options patchOptions;
Far::PatchTableFactory::Options patchOptions(maxPatchLevel);
patchOptions.SetPatchPrecision<Real>();
patchOptions.useInfSharpPatch = true;
patchOptions.generateVaryingTables = false;
@ -171,6 +171,7 @@ int main(int, char **) {
if (assignAdaptiveOptionsExplicitly) {
adaptiveOptions.useInfSharpPatch = true;
} else {
// Be sure patch options were intialized with the desired max level
adaptiveOptions = patchOptions.GetRefineAdaptiveOptions();
}
assert(adaptiveOptions.useInfSharpPatch == patchOptions.useInfSharpPatch);