File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
src/Plugins/OrientationAnalysis/src/OrientationAnalysis/Filters/Algorithms Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 541
541
542
542
// These optimizations reduce memory allocations, improve cache efficiency, and eliminate redundant calculations while producing identical results.
543
543
544
- // Filter Start
544
+ // Optimized Filter Start
545
545
546
546
#include " ComputeGBCD.hpp"
547
547
559
559
#include < cmath>
560
560
#include < array>
561
561
#include < cstring>
562
+ #include < algorithm>
562
563
563
564
using LaueOpsShPtrType = std::shared_ptr<LaueOps>;
564
565
using LaueOpsContainerType = std::vector<LaueOpsShPtrType>;
@@ -689,7 +690,7 @@ class CalculateGBCDImpl
689
690
for (int32 j = 0 ; j < nSym; j++)
690
691
{
691
692
// 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 ] );
693
694
multiplyMatrix3x3 (m_Sym1, m_G1, m_G1s);
694
695
695
696
// Calculate crystal direction along triangle normal
@@ -707,7 +708,7 @@ class CalculateGBCDImpl
707
708
for (int32 k = 0 ; k < nSym; k++)
708
709
{
709
710
// 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 ] );
711
712
multiplyMatrix3x3 (m_Sym2, m_G2, m_G2s);
712
713
713
714
// Transpose g2s
You can’t perform that action at this time.
0 commit comments