Skip to content
Snippets Groups Projects
Commit 911c8766 authored by Emilie Marchandise's avatar Emilie Marchandise
Browse files

Added convex combination choice in geo file

parent 179a68e9
No related branches found
No related tags found
No related merge requests found
...@@ -643,15 +643,20 @@ bool GFaceCompound::parametrize() const ...@@ -643,15 +643,20 @@ bool GFaceCompound::parametrize() const
bool success = orderVertices(_U0, _ordered, _coords); bool success = orderVertices(_U0, _ordered, _coords);
if(!success) {Msg::Error("Could not order vertices on boundary");exit(1);} if(!success) {Msg::Error("Could not order vertices on boundary");exit(1);}
// Convex parametrization
if (_mapping == CONVEXCOMBINATION){
Msg::Info("Parametrizing surface %d with 'convex map'", tag());
fillNeumannBCS();
parametrize(ITERU,CONVEXCOMBINATION);
parametrize(ITERV,CONVEXCOMBINATION);
}
// Laplace parametrization // Laplace parametrization
if (_mapping == HARMONIC){ else if (_mapping == HARMONIC){
Msg::Info("Parametrizing surface %d with harmonic map'", tag()); Msg::Info("Parametrizing surface %d with 'harmonic map'", tag());
fillNeumannBCS(); fillNeumannBCS();
parametrize(ITERU,HARMONIC); parametrize(ITERU,HARMONIC);
parametrize(ITERV,HARMONIC); parametrize(ITERV,HARMONIC);
printStuff(111); printStuff(111);
//parametrize(ITERU,CONVEXCOMBINATION);
//parametrize(ITERV,CONVEXCOMBINATION);
if (_type == MEANPLANE) checkOrientation(0, true); if (_type == MEANPLANE) checkOrientation(0, true);
printStuff(222); printStuff(222);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment