ceed-elemrestriction.c (56cf2fbba1564aa0182a4f9d68426d5e30f78ca0) ceed-elemrestriction.c (f02ca4a268bc0bb5c3c08780e18c2cc335b6f27c)
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.

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

531**/
532int CeedElemRestrictionSetData(CeedElemRestriction rstr,
533 void* *data) {
534 rstr->data = *data;
535 return 0;
536}
537
538/**
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.

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

531**/
532int CeedElemRestrictionSetData(CeedElemRestriction rstr,
533 void* *data) {
534 rstr->data = *data;
535 return 0;
536}
537
538/**
539 @brief View a CeedElemRestriction
540
541 @param[in] rstr CeedElemRestriction to view
542 @param[in] stream Stream to write; typically stdout/stderr or a file
543
544 @return Error code: 0 - success, otherwise - failure
545
546 @ref Utility
547**/
548int CeedElemRestrictionView(CeedElemRestriction rstr, FILE *stream) {
549 fprintf(stream,
550 "CeedElemRestriction from (%d, %d) to %d elements with %d nodes each\n",
551 rstr->ndof, rstr->ncomp, rstr->nelem, rstr->elemsize);
552 return 0;
553}
554
555/**
539 @brief Destroy a CeedElemRestriction
540
541 @param rstr CeedElemRestriction to destroy
542
543 @return An error code: 0 - success, otherwise - failure
544
545 @ref Basic
546**/

--- 13 unchanged lines hidden ---
556 @brief Destroy a CeedElemRestriction
557
558 @param rstr CeedElemRestriction to destroy
559
560 @return An error code: 0 - success, otherwise - failure
561
562 @ref Basic
563**/

--- 13 unchanged lines hidden ---