Commit db4c5d36 authored by Chris Cantwell's avatar Chris Cantwell

Fix for curved tri geom over end of array.

parent de6bf027
......@@ -263,7 +263,8 @@ namespace Nektar
MemoryManager<StdRegions::StdNodalTriExp>::AllocateSharedPtr(
T0, T1, curve->m_ptype);
Array<OneD, NekDouble> phys(t->GetTotPoints());
Array<OneD, NekDouble> phys(max(t->GetTotPoints(),
m_xmap->GetTotPoints()));
for (int j = 0; j < N; ++j)
{
phys[j] = (curve->m_points[j]->GetPtr())[i];
......
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