Skip to content

Commit

Permalink
Merge pull request #38516 from mantidproject/fix_reflection_condition…
Browse files Browse the repository at this point in the history
…_ornlnext

Fixing face centered lattice - ornl-next
  • Loading branch information
peterfpeterson authored Dec 16, 2024
2 parents 2cfa9cc + 5e9e0c5 commit c95bf2a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,8 @@ class MANTID_GEOMETRY_DLL ReflectionConditionAllFaceCentred : public ReflectionC
std::string getSymbol() override { return "F"; }
/// Return true if the hkl is allowed.
bool isAllowed(int h, int k, int l) override {
return (((((h + k) % 2) == 0) && (((h + l) % 2) == 0) && (((k + l) % 2) == 0)) |
((h % 2 == 0) && (k % 2 == 0) && (l % 2 == 0)) ||
((h % 2 == 1) && (k % 2 == 1) && (l % 2 == 1)));
return (((((h + k) % 2) == 0) && (((h + l) % 2) == 0) && (((k + l) % 2) == 0)) ||
((h % 2 == 0) && (k % 2 == 0) && (l % 2 == 0)) || ((h % 2 == 1) && (k % 2 == 1) && (l % 2 == 1)));
}
};

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Fix bug in reflection condition affecting all-face centered lattice

0 comments on commit c95bf2a

Please sign in to comment.