Skip to content

Commit

Permalink
Whitespace formatting consistency with libCEED style
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastiangrimberg committed Oct 27, 2023
1 parent a0804ae commit 28adeae
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions backends/magma/ceed-magma-basis.c
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ static int CeedBasisApplyNonTensor_Magma(CeedBasis basis, CeedInt num_elem, Ceed
Ceed ceed;
Ceed_Magma *data;
CeedInt num_comp, q_comp, num_nodes, num_qpts, P, Q, N;
const CeedScalar *d_u;
const CeedScalar *d_u, *d_b = NULL;
CeedScalar *d_v;
CeedBasisNonTensor_Magma *impl;

Expand All @@ -278,7 +278,6 @@ static int CeedBasisApplyNonTensor_Magma(CeedBasis basis, CeedInt num_elem, Ceed

// Apply basis operation
if (e_mode != CEED_EVAL_WEIGHT) {
const CeedScalar *d_b = NULL;
switch (e_mode) {
case CEED_EVAL_INTERP:
d_b = impl->d_interp;
Expand All @@ -305,6 +304,8 @@ static int CeedBasisApplyNonTensor_Magma(CeedBasis basis, CeedInt num_elem, Ceed
CeedInt n_array[MAGMA_NONTENSOR_KERNEL_INSTANCES] = {MAGMA_NONTENSOR_KERNEL_N_VALUES};
CeedInt iN = 0, diff = abs(n_array[iN] - N), idiff;
CeedInt M = (t_mode == CEED_TRANSPOSE) ? P : Q, K = (t_mode == CEED_TRANSPOSE) ? Q : P;
CeedMagmaFunction Kernel;
CeedInt NB;

for (CeedInt in = iN + 1; in < MAGMA_NONTENSOR_KERNEL_INSTANCES; in++) {
idiff = abs(n_array[in] - N);
Expand Down Expand Up @@ -360,8 +361,6 @@ static int CeedBasisApplyNonTensor_Magma(CeedBasis basis, CeedInt num_elem, Ceed
CeedCallBackend(CeedFree(&basis_kernel_path));
CeedCallBackend(CeedFree(&basis_kernel_source));
}
CeedMagmaFunction Kernel;
CeedInt NB;
if (e_mode == CEED_EVAL_INTERP) {
if (t_mode == CEED_TRANSPOSE) {
Kernel = impl->InterpTranspose[iN];
Expand Down

0 comments on commit 28adeae

Please sign in to comment.