Skip to content

Commit

Permalink
Fix the signature mismatch of gradients.
Browse files Browse the repository at this point in the history
We should be able to diagnose these problems as reported in #810.
  • Loading branch information
vgvassilev committed Mar 10, 2024
1 parent 91ce4d1 commit 97c4274
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/Gradient/Gradients.C
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ double f_cond3(double x, double c) {
//CHECK-NEXT: }
//CHECK-NEXT: }

double f_cond3_grad(double x, double c, clad::array_ref<double> _d_x, clad::array_ref<double> _d_y);
void f_cond3_grad(double x, double c, clad::array_ref<double> _d_x, clad::array_ref<double> _d_y);

double f_cond4(double x, double y) {
int i = 0;
Expand Down Expand Up @@ -321,7 +321,7 @@ double f_cond4(double x, double y) {
//CHECK-NEXT: }
//CHECK-NEXT: }

double f_cond4_grad(double x, double c, clad::array_ref<double> _d_x, clad::array_ref<double> _d_y);
void f_cond4_grad(double x, double c, clad::array_ref<double> _d_x, clad::array_ref<double> _d_y);

double f_if1(double x, double y) {
if (x > y)
Expand All @@ -345,7 +345,7 @@ double f_if1(double x, double y) {
//CHECK-NEXT: * _d_y += 1;
//CHECK-NEXT: }

double f_if1_grad(double x, double y, clad::array_ref<double> _d_x, clad::array_ref<double> _d_y);
void f_if1_grad(double x, double y, clad::array_ref<double> _d_x, clad::array_ref<double> _d_y);

double f_if2(double x, double y) {
if (x > y)
Expand Down

0 comments on commit 97c4274

Please sign in to comment.