Skip to content

Commit 7d878d1

Browse files
authored
cuda - fix misplaced ) for gen Grad (#1882)
1 parent f4aa2a7 commit 7d878d1

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

backends/cuda-gen/ceed-cuda-gen-operator-build.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -590,9 +590,8 @@ static int CeedOperatorBuildKernelBasis_Cuda_gen(std::ostringstream &code, CeedO
590590
} else if (is_tensor) {
591591
bool is_collocated_grad = dim == 3 && Q_1d >= P_1d;
592592
std::string function_name =
593-
(dim == 1 ? "Grad"
594-
: ("GradTensor" + std::string(is_collocated ? "CollocatedNodes" : (is_collocated_grad ? "Collocated" : ""))) +
595-
std::to_string(dim) + "d" + (is_all_tensor ? "" : "Flattened"));
593+
(dim == 1 ? "Grad" : ("GradTensor" + std::string(is_collocated ? "CollocatedNodes" : (is_collocated_grad ? "Collocated" : "")))) +
594+
std::to_string(dim) + "d" + (is_all_tensor ? "" : "Flattened");
596595
std::string op_t_1d_name = is_all_tensor ? "OP_T_1D" : (P_1d > Q_1d ? P_name : Q_name);
597596

598597
code << tab << "CeedScalar r_q" << var_suffix << "[num_comp" << var_suffix << "*dim" << var_suffix << "*"

0 commit comments

Comments
 (0)