Commit 9f29ce65 authored by Michael Turner's avatar Michael Turner
Browse files

fix varopti parameters and orientation

parent 51d2d569
......@@ -874,6 +874,11 @@ void FaceMesh::BuildLocalMesh()
{
ElmtConfig conf(LibUtilities::eTriangle, 1, false, false);
if(!m_cadsurf->IsReversedNormal())
{
swap(m_connec[i][0],m_connec[i][1]);
}
vector<int> tags;
tags.push_back(m_compId);
ElementSharedPtr E = GetElementFactory().CreateInstance(
......@@ -886,6 +891,7 @@ void FaceMesh::BuildLocalMesh()
// nodes are already unique some will insert some wont
m_localNodes.insert(nods[j]);
}
E->SetId(m_localElements.size());
m_localElements.push_back(E);
}
......
......@@ -342,11 +342,8 @@ void InputMCF::Process()
}
mods.push_back(GetModuleFactory().CreateInstance(
ModuleKey(eProcessModule, "varopti"), m_mesh));
mods.back()->RegisterConfig("nq",boost::lexical_cast<string>(m_mesh->m_nummode));
mods.back()->RegisterConfig("hyperelastic","");
mods.back()->RegisterConfig("maxiter","10");
mods.back()->RegisterConfig("restol","1e-6");
mods.back()->RegisterConfig("overint","6");
mods.back()->RegisterConfig("numthreads",boost::lexical_cast<string>(np));
}
......@@ -363,6 +360,7 @@ void InputMCF::Process()
for(int i = 0; i < mods.size(); i++)
{
mods[i]->SetDefaults();
mods[i]->Process();
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment