| ceed.c (6e79d475b20c142f61e16db0198d1cd6f01a0826) | ceed.c (cb37edd8a3b370dbcdb291b3aa85f064d8a8b1a0) |
|---|---|
| 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. --- 445 unchanged lines hidden (view full) --- 454 } 455 456 return 0; 457} 458 459/** 460 @brief Set a backend function 461 | 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. --- 445 unchanged lines hidden (view full) --- 454 } 455 456 return 0; 457} 458 459/** 460 @brief Set a backend function 461 |
| 462 This function is used for a backend to set the function associated with 463 the CEED objects. For example, 464 CeedSetBackendFunction(ceed, "Ceed", ceed, "VecCreate", BackendVecCreate) 465 sets the backend implementation of 'CeedVectorCreate' and 466 CeedSetBackendFunction(ceed, "Basis", basis, "Apply", BackendBasisApply) 467 sets the backend implementation of 'CeedBasisApply'. Note, the prefix 'Ceed' 468 is not required for the object type ("Basis" vs "CeedBasis"). 469 |
|
| 462 @param ceed Ceed for error handling 463 @param type Type of Ceed object to set function for 464 @param[out] object Ceed object to set function for 465 @param fname Name of function to set 466 @param f Function to set 467 468 @return An error code: 0 - success, otherwise - failure 469 --- 82 unchanged lines hidden --- | 470 @param ceed Ceed for error handling 471 @param type Type of Ceed object to set function for 472 @param[out] object Ceed object to set function for 473 @param fname Name of function to set 474 @param f Function to set 475 476 @return An error code: 0 - success, otherwise - failure 477 --- 82 unchanged lines hidden --- |