| ceed-qfunction.c (d0dee30ea4d9ea6fe9f220abcd0e1fd87a221230) | ceed-qfunction.c (f74ec58466a7eebc696fd6b461de38faeedc8431) |
|---|---|
| 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. --- 236 unchanged lines hidden (view full) --- 245} 246 247/** 248 @brief Initalize and load QFunction source file into string buffer, including 249 full text of local files in place of `#include "local.h"`. 250 The `buffer` is set to `NULL` if there is no QFunction source file. 251 Note: Caller is responsible for freeing the string buffer with `CeedFree()`. 252 | 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. --- 236 unchanged lines hidden (view full) --- 245} 246 247/** 248 @brief Initalize and load QFunction source file into string buffer, including 249 full text of local files in place of `#include "local.h"`. 250 The `buffer` is set to `NULL` if there is no QFunction source file. 251 Note: Caller is responsible for freeing the string buffer with `CeedFree()`. 252 |
| 253 @param qf CeedQFunction 254 @param[out] buffer String buffer for source file contents | 253 @param qf CeedQFunction 254 @param[out] source_buffer String buffer for source file contents |
| 255 256 @return An error code: 0 - success, otherwise - failure 257 258 @ref Backend 259**/ 260int CeedQFunctionLoadSourceToBuffer(CeedQFunction qf, char **source_buffer) { 261 int ierr; 262 char *source_path; --- 403 unchanged lines hidden (view full) --- 666} 667 668/** 669 @brief Get the CeedQFunctionFields of a CeedQFunction 670 671 Note: Calling this function asserts that setup is complete 672 and sets the CeedQFunction as immutable. 673 | 255 256 @return An error code: 0 - success, otherwise - failure 257 258 @ref Backend 259**/ 260int CeedQFunctionLoadSourceToBuffer(CeedQFunction qf, char **source_buffer) { 261 int ierr; 262 char *source_path; --- 403 unchanged lines hidden (view full) --- 666} 667 668/** 669 @brief Get the CeedQFunctionFields of a CeedQFunction 670 671 Note: Calling this function asserts that setup is complete 672 and sets the CeedQFunction as immutable. 673 |
| 674 @param qf CeedQFunction 675 @param[out] input_fields Variable to store input_fields 676 @param[out] output_fields Variable to store output_fields | 674 @param qf CeedQFunction 675 @param[out] num_input_fields Variable to store number of input fields 676 @param[out] input_fields Variable to store input fields 677 @param[out] num_output_fields Variable to store number of output fields 678 @param[out] output_fields Variable to store output fields |
| 677 678 @return An error code: 0 - success, otherwise - failure 679 680 @ref Advanced 681**/ 682int CeedQFunctionGetFields(CeedQFunction qf, CeedInt *num_input_fields, 683 CeedQFunctionField **input_fields, 684 CeedInt *num_output_fields, --- 195 unchanged lines hidden --- | 679 680 @return An error code: 0 - success, otherwise - failure 681 682 @ref Advanced 683**/ 684int CeedQFunctionGetFields(CeedQFunction qf, CeedInt *num_input_fields, 685 CeedQFunctionField **input_fields, 686 CeedInt *num_output_fields, --- 195 unchanged lines hidden --- |