| ceed-vector.c (7ca273e57acce736da1b046d3774d32b99dcf921) | ceed-vector.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. --- 34 unchanged lines hidden (view full) --- 43 44/// ---------------------------------------------------------------------------- 45/// CeedVector Backend API 46/// ---------------------------------------------------------------------------- 47/// @addtogroup CeedVectorBackend 48/// @{ 49 50/** | 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. --- 34 unchanged lines hidden (view full) --- 43 44/// ---------------------------------------------------------------------------- 45/// CeedVector Backend API 46/// ---------------------------------------------------------------------------- 47/// @addtogroup CeedVectorBackend 48/// @{ 49 50/** |
| 51 @brief Get the Ceed associated with a CeedVector 52 53 @param vec CeedVector to retrieve state 54 @param[out] ceed Variable to store ceed 55 56 @return An error code: 0 - success, otherwise - failure 57 58 @ref Backend 59**/ 60int CeedVectorGetCeed(CeedVector vec, Ceed *ceed) { 61 *ceed = vec->ceed; 62 return CEED_ERROR_SUCCESS; 63} 64 65/** | |
| 66 @brief Get the state of a CeedVector 67 68 @param vec CeedVector to retrieve state 69 @param[out] state Variable to store state 70 71 @return An error code: 0 - success, otherwise - failure 72 73 @ref Backend --- 676 unchanged lines hidden (view full) --- 750 for (CeedInt i=0; i<vec->length; i++) 751 fprintf(stream, fmt, x[i]); 752 753 ierr = CeedVectorRestoreArrayRead(vec, &x); CeedChk(ierr); 754 return CEED_ERROR_SUCCESS; 755} 756 757/** | 51 @brief Get the state of a CeedVector 52 53 @param vec CeedVector to retrieve state 54 @param[out] state Variable to store state 55 56 @return An error code: 0 - success, otherwise - failure 57 58 @ref Backend --- 676 unchanged lines hidden (view full) --- 735 for (CeedInt i=0; i<vec->length; i++) 736 fprintf(stream, fmt, x[i]); 737 738 ierr = CeedVectorRestoreArrayRead(vec, &x); CeedChk(ierr); 739 return CEED_ERROR_SUCCESS; 740} 741 742/** |
| 743 @brief Get the Ceed associated with a CeedVector 744 745 @param vec CeedVector to retrieve state 746 @param[out] ceed Variable to store ceed 747 748 @return An error code: 0 - success, otherwise - failure 749 750 @ref Advanced 751**/ 752int CeedVectorGetCeed(CeedVector vec, Ceed *ceed) { 753 *ceed = vec->ceed; 754 return CEED_ERROR_SUCCESS; 755} 756 757/** |
|
| 758 @brief Get the length of a CeedVector 759 760 @param vec CeedVector to retrieve length 761 @param[out] length Variable to store length 762 763 @return An error code: 0 - success, otherwise - failure 764 765 @ref User --- 42 unchanged lines hidden --- | 758 @brief Get the length of a CeedVector 759 760 @param vec CeedVector to retrieve length 761 @param[out] length Variable to store length 762 763 @return An error code: 0 - success, otherwise - failure 764 765 @ref User --- 42 unchanged lines hidden --- |