Commit ae57c72d authored by Spencer Sherwin's avatar Spencer Sherwin
Browse files

Small fix where vars was declared in wrong place leading to an array bound...

Small fix where vars was declared in wrong place leading to an array bound error when using Homogeneous1D expansions
parent 14b90137
......@@ -219,7 +219,6 @@ void OutputTecplot::Process(po::variables_map &vm)
MultiRegions::ExpansionType HomoExpType = m_f->m_exp[0]->GetExpType();
m_coordim = m_f->m_exp[0]->GetExp(0)->GetCoordim();
var.insert(var.begin(), coordVars, coordVars + m_coordim);
if (HomoExpType == MultiRegions::e3DH1D)
{
......@@ -242,6 +241,8 @@ void OutputTecplot::Process(po::variables_map &vm)
m_coordim += 2;
}
var.insert(var.begin(), coordVars, coordVars + m_coordim);
m_zoneType = (TecplotZoneType)(2*(nBases-1) + 1);
// Calculate connectivity
......
Supports Markdown
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