Commit 49ab3b77 authored by Dave Moxey's avatar Dave Moxey

Merge branch 'perf/ExtractPhysToBndElmt' into 'master'

Fix performance issue with ExtractPhysToBndElmt

See merge request !796
parents dcfa3b67 560d1feb
......@@ -41,6 +41,7 @@ v4.4.2
**Library**
- Fix ability to set default implementation in Collections and added an option
to set eNoCollections in FieldConvert as default (!789)
- Fix performance issue with ExtractPhysToBndElmt (!796)
**Utilities**
- Fix vtkToFld missing dependency which prevented compiling with VTK 7.1 (!808)
......
......@@ -2892,7 +2892,6 @@ namespace Nektar
Array<OneD, NekDouble> &bndElmt)
{
int n, cnt, nq;
Array<OneD, NekDouble> tmp1, tmp2;
Array<OneD, int> ElmtID,EdgeID;
GetBoundaryToElmtMap(ElmtID,EdgeID);
......@@ -2920,8 +2919,8 @@ namespace Nektar
{
nq = GetExp(ElmtID[cnt+n])->GetTotPoints();
offsetPhys = GetPhys_Offset(ElmtID[cnt+n]);
Vmath::Vcopy(nq, tmp1 = phys + offsetPhys, 1,
tmp2 = bndElmt + offsetElmt, 1);
Vmath::Vcopy(nq, &phys[offsetPhys], 1,
&bndElmt[offsetElmt], 1);
offsetElmt += nq;
}
}
......
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