ceed-qfunctioncontext.c (3668ca4b583f336c0c2dcc810e26e2ac50a514b8) ceed-qfunctioncontext.c (0f86cbe7e90c9366c73a141bde379916ec0231bc)
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.

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

598 } else {
599 *field_label = NULL;
600 }
601
602 return CEED_ERROR_SUCCESS;
603}
604
605/**
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.

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

598 } else {
599 *field_label = NULL;
600 }
601
602 return CEED_ERROR_SUCCESS;
603}
604
605/**
606 @brief Get the descriptive information about a CeedContextFieldLabel
607
608 @param[in] label CeedContextFieldLabel
609 @param[out] field_name Name of labeled field
610 @param[out] field_description Description of field, or NULL for none
611 @param[out] field_type CeedContextFieldType
612
613 @return An error code: 0 - success, otherwise - failure
614
615 @ref User
616**/
617int CeedContextFieldLabelGetDescription(CeedContextFieldLabel label,
618 const char **field_name,
619 const char **field_description,
620 CeedContextFieldType *field_type) {
621 if (field_name) *field_name = label->name;
622 if (field_description) *field_description = label->description;
623 if (field_type) *field_type = label->type;
624 return CEED_ERROR_SUCCESS;
625}
626
627/**
606 @brief Set QFunctionContext field holding a double precision value
607
608 @param ctx CeedQFunctionContext
609 @param field_label Label for field to register
610 @param value Value to set
611
612 @return An error code: 0 - success, otherwise - failure
613

--- 125 unchanged lines hidden ---
628 @brief Set QFunctionContext field holding a double precision value
629
630 @param ctx CeedQFunctionContext
631 @param field_label Label for field to register
632 @param value Value to set
633
634 @return An error code: 0 - success, otherwise - failure
635

--- 125 unchanged lines hidden ---