Skip to content

Commit 0fb8dd7

Browse files
committed
Fixes to Initial Refactor for ComputeGBCD Algorithm
1 parent 854f93f commit 0fb8dd7

File tree

1 file changed

+4
-3
lines changed
  • src/Plugins/OrientationAnalysis/src/OrientationAnalysis/Filters/Algorithms

1 file changed

+4
-3
lines changed

src/Plugins/OrientationAnalysis/src/OrientationAnalysis/Filters/Algorithms/ComputeGBCD.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -541,7 +541,7 @@
541541

542542
// These optimizations reduce memory allocations, improve cache efficiency, and eliminate redundant calculations while producing identical results.
543543

544-
// Filter Start
544+
// Optimized Filter Start
545545

546546
#include "ComputeGBCD.hpp"
547547

@@ -559,6 +559,7 @@
559559
#include <cmath>
560560
#include <array>
561561
#include <cstring>
562+
#include <algorithm>
562563

563564
using LaueOpsShPtrType = std::shared_ptr<LaueOps>;
564565
using LaueOpsContainerType = std::vector<LaueOpsShPtrType>;
@@ -689,7 +690,7 @@ class CalculateGBCDImpl
689690
for(int32 j = 0; j < nSym; j++)
690691
{
691692
// Get symmetry operation and apply to g1
692-
m_OrientationOps[cryst]->getMatSymOp(j, m_Sym1[0].data());
693+
m_OrientationOps[cryst]->getMatSymOp(j, &m_Sym1[0][0]);
693694
multiplyMatrix3x3(m_Sym1, m_G1, m_G1s);
694695

695696
// Calculate crystal direction along triangle normal
@@ -707,7 +708,7 @@ class CalculateGBCDImpl
707708
for(int32 k = 0; k < nSym; k++)
708709
{
709710
// Get symmetry operation and apply to g2
710-
m_OrientationOps[cryst]->getMatSymOp(k, m_Sym2[0].data());
711+
m_OrientationOps[cryst]->getMatSymOp(k, &m_Sym2[0][0]);
711712
multiplyMatrix3x3(m_Sym2, m_G2, m_G2s);
712713

713714
// Transpose g2s

0 commit comments

Comments
 (0)