ceed-qfunction.c (e9b533fb9793b92fee16c1660fbf6414c678b8a7) ceed-qfunction.c (b7c9bbdafc9b91976b65f80ebb2c5357c2efd8bc)
1// Copyright (c) 2017, Lawrence Livermore National Security, LLC. Produced at
2// the Lawrence Livermore National Laboratory. LLNL-CODE-734707. All Rights
3// 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.

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

173
174/// ----------------------------------------------------------------------------
175/// CeedQFunction Backend API
176/// ----------------------------------------------------------------------------
177/// @addtogroup CeedQFunctionBackend
178/// @{
179
180/**
1// Copyright (c) 2017, Lawrence Livermore National Security, LLC. Produced at
2// the Lawrence Livermore National Laboratory. LLNL-CODE-734707. All Rights
3// 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.

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

173
174/// ----------------------------------------------------------------------------
175/// CeedQFunction Backend API
176/// ----------------------------------------------------------------------------
177/// @addtogroup CeedQFunctionBackend
178/// @{
179
180/**
181 @brief Get the Ceed associated with a CeedQFunction
182
183 @param qf CeedQFunction
184 @param[out] ceed Variable to store Ceed
185
186 @return An error code: 0 - success, otherwise - failure
187
188 @ref Backend
189**/
190int CeedQFunctionGetCeed(CeedQFunction qf, Ceed *ceed) {
191 *ceed = qf->ceed;
192 return CEED_ERROR_SUCCESS;
193}
194
195/**
196 @brief Get the vector length of a CeedQFunction
197
198 @param qf CeedQFunction
199 @param[out] vec_length Variable to store vector length
200
201 @return An error code: 0 - success, otherwise - failure
202
203 @ref Backend

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

734 for (CeedInt i=0; i<qf->num_output_fields; i++) {
735 ierr = CeedQFunctionFieldView(qf->output_fields[i], i, 0, stream);
736 CeedChk(ierr);
737 }
738 return CEED_ERROR_SUCCESS;
739}
740
741/**
181 @brief Get the vector length of a CeedQFunction
182
183 @param qf CeedQFunction
184 @param[out] vec_length Variable to store vector length
185
186 @return An error code: 0 - success, otherwise - failure
187
188 @ref Backend

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

719 for (CeedInt i=0; i<qf->num_output_fields; i++) {
720 ierr = CeedQFunctionFieldView(qf->output_fields[i], i, 0, stream);
721 CeedChk(ierr);
722 }
723 return CEED_ERROR_SUCCESS;
724}
725
726/**
727 @brief Get the Ceed associated with a CeedQFunction
728
729 @param qf CeedQFunction
730 @param[out] ceed Variable to store Ceed
731
732 @return An error code: 0 - success, otherwise - failure
733
734 @ref Advanced
735**/
736int CeedQFunctionGetCeed(CeedQFunction qf, Ceed *ceed) {
737 *ceed = qf->ceed;
738 return CEED_ERROR_SUCCESS;
739}
740
741/**
742 @brief Apply the action of a CeedQFunction
743
744 Note: Calling this function asserts that setup is complete
745 and sets the CeedQFunction as immutable.
746
747 @param qf CeedQFunction
748 @param Q Number of quadrature points
749 @param[in] u Array of input CeedVectors

--- 65 unchanged lines hidden ---
742 @brief Apply the action of a CeedQFunction
743
744 Note: Calling this function asserts that setup is complete
745 and sets the CeedQFunction as immutable.
746
747 @param qf CeedQFunction
748 @param Q Number of quadrature points
749 @param[in] u Array of input CeedVectors

--- 65 unchanged lines hidden ---