From bcf8dcaf3debe72f374ed674db6a3b148f780ae4 Mon Sep 17 00:00:00 2001 From: Vassil Vassilev Date: Sat, 9 Mar 2024 09:36:10 +0000 Subject: [PATCH] Fix the signature mismatch of gradients. We should be able to diagnose these problems as reported in #810. --- test/Gradient/Gradients.C | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/Gradient/Gradients.C b/test/Gradient/Gradients.C index ac30263e1..c0d180c2d 100644 --- a/test/Gradient/Gradients.C +++ b/test/Gradient/Gradients.C @@ -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 _d_x, clad::array_ref _d_y); +void f_cond3_grad(double x, double c, clad::array_ref _d_x, clad::array_ref _d_y); double f_cond4(double x, double y) { int i = 0; @@ -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 _d_x, clad::array_ref _d_y); +void f_cond4_grad(double x, double c, clad::array_ref _d_x, clad::array_ref _d_y); double f_if1(double x, double y) { if (x > y) @@ -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 _d_x, clad::array_ref _d_y); +void f_if1_grad(double x, double y, clad::array_ref _d_x, clad::array_ref _d_y); double f_if2(double x, double y) { if (x > y)