ceed-ref-qfunction.c (cb0b54157a34f91bf74408df3474e88215269665) ceed-ref-qfunction.c (ccf0fe6fd2ec6c692fac5dfe411b8e3ec625937d)
1// Copyright (c) 2017-2018, Lawrence Livermore National Security, LLC.
2// Produced at the Lawrence Livermore National Laboratory. LLNL-CODE-734707.
3// All Rights reserved. See files LICENSE and NOTICE for details.
4//
5// This file is part of CEED, a collection of benchmarks, miniapps, software
6// libraries and APIs for efficient high-order finite element and spectral
7// element discretizations for exascale applications. For more information and
8// source code availability see http://github.com/ceed.

--- 12 unchanged lines hidden (view full) ---

21 int ierr;
22 CeedQFunction_Ref *impl;
23 ierr = CeedQFunctionGetData(qf, (void *)&impl); CeedChk(ierr);
24
25 void *ctx;
26 ierr = CeedQFunctionGetContext(qf, &ctx); CeedChk(ierr);
27
28 CeedQFunctionUser f = NULL;
1// Copyright (c) 2017-2018, Lawrence Livermore National Security, LLC.
2// Produced at the Lawrence Livermore National Laboratory. LLNL-CODE-734707.
3// All Rights reserved. See files LICENSE and NOTICE for details.
4//
5// This file is part of CEED, a collection of benchmarks, miniapps, software
6// libraries and APIs for efficient high-order finite element and spectral
7// element discretizations for exascale applications. For more information and
8// source code availability see http://github.com/ceed.

--- 12 unchanged lines hidden (view full) ---

21 int ierr;
22 CeedQFunction_Ref *impl;
23 ierr = CeedQFunctionGetData(qf, (void *)&impl); CeedChk(ierr);
24
25 void *ctx;
26 ierr = CeedQFunctionGetContext(qf, &ctx); CeedChk(ierr);
27
28 CeedQFunctionUser f = NULL;
29 ierr = CeedQFunctionGetUserFunction(qf, (int (**)())&f); CeedChk(ierr); // *NOPAD*
29 ierr = CeedQFunctionGetUserFunction(qf, (int (**)())&f); // *NOPAD*
30 CeedChk(ierr);
30
31 CeedInt nIn, nOut;
32 ierr = CeedQFunctionGetNumArgs(qf, &nIn, &nOut); CeedChk(ierr);
33
34 for (int i = 0; i<nIn; i++) {
35 ierr = CeedVectorGetArrayRead(U[i], CEED_MEM_HOST, &impl->inputs[i]);
36 CeedChk(ierr);
37 }

--- 47 unchanged lines hidden ---
31
32 CeedInt nIn, nOut;
33 ierr = CeedQFunctionGetNumArgs(qf, &nIn, &nOut); CeedChk(ierr);
34
35 for (int i = 0; i<nIn; i++) {
36 ierr = CeedVectorGetArrayRead(U[i], CEED_MEM_HOST, &impl->inputs[i]);
37 CeedChk(ierr);
38 }

--- 47 unchanged lines hidden ---