Commit 56652230 authored by Chris Cantwell's avatar Chris Cantwell

Merge branch 'fix/Range-variableP' into 'master'

Fix bug that affects using the range option with variableP

This fixes a bug in ExtractDataToCoeffs, which prevents the range option of FieldConvert from working with variable order expansions.

See merge request !522
parents 7aab8413 668446b9
......@@ -2159,6 +2159,7 @@ namespace Nektar
if (elmtToExpId.count(elmtId) == 0)
{
offset += datalen;
modes_offset += (*m_exp)[0]->GetNumBases();
continue;
}
......
......@@ -772,6 +772,8 @@ namespace Nektar
{
// increase offset for correct FieldData access
offset += datalen*nzmodes;
modes_offset += (*m_exp)[0]->GetNumBases() +
fielddef->m_numHomogeneousDir;
continue;
}
......
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