Skip to content

Commit

Permalink
Merge pull request #508 from CFD-GO/fix/autosym
Browse files Browse the repository at this point in the history
Fixing NodeType fetching in autosym
  • Loading branch information
llaniewski authored Feb 22, 2024
2 parents c64d6cd + f0fc9ec commit f670aaf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/LatticeAccess.inc.cpp.Rt
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ resolve.symmetries = function(D) {
s = names(symmetries)[i]
ch = c("X","Y","Z")[i]
if (any(plus | minus)) { ?>
switch (node.NodeType & NODE_SYM<?%s ch ?>) {
switch (this->getNodeType() & NODE_SYM<?%s ch ?>) {
<?R if (any(plus)) { ?>
case NODE_Symmetry<?%s ch ?>_plus:
<?R C(PV("node.",D[plus, "name"]), PV("node.",D[plus, s])) ?>
Expand Down Expand Up @@ -426,11 +426,11 @@ CudaDeviceFunction real_t SymmetryAccess< PARENT >::<?%s paste0(this_fun, f$nice
{
<?R if (paste0("SYM",ch[i]) %in% NodeTypes$group) { ?>
if (<?R C(d[i]) ?> > range_int<0>()) {
if ((this->NodeType() & NODE_SYM<?%s ch[i] ?>) == NODE_Symmetry<?%s ch[i] ?>_plus) {
if ((this->getNodeType() & NODE_SYM<?%s ch[i] ?>) == NODE_Symmetry<?%s ch[i] ?>_plus) {
return <?%s paste0(sig, next_fun, sf$nicename) ?>(<?R C(sd,sep=", ") ?>);
}
} else if (<?R C(d[i]) ?> < range_int<0>()) {
if ((this->NodeType() & NODE_SYM<?%s ch[i] ?>) == NODE_Symmetry<?%s ch[i] ?>_minus) {
if ((this->getNodeType() & NODE_SYM<?%s ch[i] ?>) == NODE_Symmetry<?%s ch[i] ?>_minus) {
return <?%s paste0(sig, next_fun, sf$nicename) ?>(<?R C(sd,sep=", ") ?>);
}
}
Expand Down

0 comments on commit f670aaf

Please sign in to comment.