Skip to content

Commit

Permalink
closest
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike Park authored and Mike Park committed Jun 22, 2021
1 parent 7a812c4 commit a659fbc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/ref_acceptance.c
Expand Up @@ -198,9 +198,9 @@ static REF_STATUS ref_acceptance_u(REF_NODE ref_node, const char *function_name,
} else if (strcmp(function_name, "sin50xy") == 0) {
REF_DBL xy;
xy = (2.0 * x - 1.0) * (2.0 * y - 1.0);
if (xy <= (ref_math_pi / 50.0)) {
scalar[node] = 0.01 * sin(xy);
} else if (xy <= 2.0 * (ref_math_pi / 50.0)) {
if (ABS(xy) <= (ref_math_pi / 50.0)) {
scalar[node] = sin(50.0 * xy);
} else if (ABS(xy) <= 2.0 * (ref_math_pi / 50.0)) {
scalar[node] = sin(50.0 * xy);
} else {
scalar[node] = 0.01 * sin(50.0 * xy);
Expand Down

0 comments on commit a659fbc

Please sign in to comment.