ceed-qfunction.c (f04ea552c0bc984e9734ef5cac4fa0e4550ba0f1) ceed-qfunction.c (e9b533fb9793b92fee16c1660fbf6414c678b8a7)
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.

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

624 and sets the CeedQFunction as immutable.
625
626 @param qf CeedQFunction
627 @param[out] input_fields Variable to store input_fields
628 @param[out] output_fields Variable to store output_fields
629
630 @return An error code: 0 - success, otherwise - failure
631
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.

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

624 and sets the CeedQFunction as immutable.
625
626 @param qf CeedQFunction
627 @param[out] input_fields Variable to store input_fields
628 @param[out] output_fields Variable to store output_fields
629
630 @return An error code: 0 - success, otherwise - failure
631
632 @ref Backend
632 @ref Advanced
633**/
634int CeedQFunctionGetFields(CeedQFunction qf, CeedInt *num_input_fields,
635 CeedQFunctionField **input_fields,
636 CeedInt *num_output_fields,
637 CeedQFunctionField **output_fields) {
638 qf->is_immutable = true;
639 if (num_input_fields) *num_input_fields = qf->num_input_fields;
640 if (input_fields) *input_fields = qf->input_fields;

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

646/**
647 @brief Get the name of a CeedQFunctionField
648
649 @param qf_field CeedQFunctionField
650 @param[out] field_name Variable to store the field name
651
652 @return An error code: 0 - success, otherwise - failure
653
633**/
634int CeedQFunctionGetFields(CeedQFunction qf, CeedInt *num_input_fields,
635 CeedQFunctionField **input_fields,
636 CeedInt *num_output_fields,
637 CeedQFunctionField **output_fields) {
638 qf->is_immutable = true;
639 if (num_input_fields) *num_input_fields = qf->num_input_fields;
640 if (input_fields) *input_fields = qf->input_fields;

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

646/**
647 @brief Get the name of a CeedQFunctionField
648
649 @param qf_field CeedQFunctionField
650 @param[out] field_name Variable to store the field name
651
652 @return An error code: 0 - success, otherwise - failure
653
654 @ref Backend
654 @ref Advanced
655**/
656int CeedQFunctionFieldGetName(CeedQFunctionField qf_field, char **field_name) {
657 *field_name = (char *)qf_field->field_name;
658 return CEED_ERROR_SUCCESS;
659}
660
661/**
662 @brief Get the number of components of a CeedQFunctionField
663
664 @param qf_field CeedQFunctionField
665 @param[out] size Variable to store the size of the field
666
667 @return An error code: 0 - success, otherwise - failure
668
655**/
656int CeedQFunctionFieldGetName(CeedQFunctionField qf_field, char **field_name) {
657 *field_name = (char *)qf_field->field_name;
658 return CEED_ERROR_SUCCESS;
659}
660
661/**
662 @brief Get the number of components of a CeedQFunctionField
663
664 @param qf_field CeedQFunctionField
665 @param[out] size Variable to store the size of the field
666
667 @return An error code: 0 - success, otherwise - failure
668
669 @ref Backend
669 @ref Advanced
670**/
671int CeedQFunctionFieldGetSize(CeedQFunctionField qf_field, CeedInt *size) {
672 *size = qf_field->size;
673 return CEED_ERROR_SUCCESS;
674}
675
676/**
677 @brief Get the CeedEvalMode of a CeedQFunctionField
678
679 @param qf_field CeedQFunctionField
680 @param[out] eval_mode Variable to store the field evaluation mode
681
682 @return An error code: 0 - success, otherwise - failure
683
670**/
671int CeedQFunctionFieldGetSize(CeedQFunctionField qf_field, CeedInt *size) {
672 *size = qf_field->size;
673 return CEED_ERROR_SUCCESS;
674}
675
676/**
677 @brief Get the CeedEvalMode of a CeedQFunctionField
678
679 @param qf_field CeedQFunctionField
680 @param[out] eval_mode Variable to store the field evaluation mode
681
682 @return An error code: 0 - success, otherwise - failure
683
684 @ref Backend
684 @ref Advanced
685**/
686int CeedQFunctionFieldGetEvalMode(CeedQFunctionField qf_field,
687 CeedEvalMode *eval_mode) {
688 *eval_mode = qf_field->eval_mode;
689 return CEED_ERROR_SUCCESS;
690}
691
692/**

--- 122 unchanged lines hidden ---
685**/
686int CeedQFunctionFieldGetEvalMode(CeedQFunctionField qf_field,
687 CeedEvalMode *eval_mode) {
688 *eval_mode = qf_field->eval_mode;
689 return CEED_ERROR_SUCCESS;
690}
691
692/**

--- 122 unchanged lines hidden ---