Skip to content

Commit

Permalink
Simplest fix to the issue
Browse files Browse the repository at this point in the history
  • Loading branch information
reverendbedford committed Jan 19, 2024
1 parent 1d62083 commit 1276bb9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/auxkernels/IPFColoring.C
Original file line number Diff line number Diff line change
Expand Up @@ -116,11 +116,12 @@ std::vector<Point>
project_ipf(std::vector<Real> q, Point sd, std::string crystal_sym, std::string sample_sym)
{
// Setup sample direction
neml::Vector d({sd(0), sd(1), sd(2)});
std::vector<Real> temp = {sd(0), sd(1), sd(2)};
neml::Vector d(&temp[0]);
d.normalize();

// Setup orientation
neml::Orientation qa(q);
neml::Orientation qa(&q[0]);
neml::Orientation qo = qa.inverse(); // The following assumes a passive rotation

// Get crystal and sample symmetry operations
Expand Down

0 comments on commit 1276bb9

Please sign in to comment.