| ceed-qfunction.c (85c7f5ed8e46d9c675b01a6417ecbe2db9ae7de0) | ceed-qfunction.c (3668ca4b583f336c0c2dcc810e26e2ac50a514b8) |
|---|---|
| 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. --- 539 unchanged lines hidden (view full) --- 548 549 ierr = CeedQFunctionCreateInteriorByName(ceed, "Identity", qf); CeedChk(ierr); 550 ierr = CeedQFunctionAddInput(*qf, "input", size, in_mode); CeedChk(ierr); 551 ierr = CeedQFunctionAddOutput(*qf, "output", size, out_mode); CeedChk(ierr); 552 553 (*qf)->is_identity = true; 554 555 CeedQFunctionContext ctx; | 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. --- 539 unchanged lines hidden (view full) --- 548 549 ierr = CeedQFunctionCreateInteriorByName(ceed, "Identity", qf); CeedChk(ierr); 550 ierr = CeedQFunctionAddInput(*qf, "input", size, in_mode); CeedChk(ierr); 551 ierr = CeedQFunctionAddOutput(*qf, "output", size, out_mode); CeedChk(ierr); 552 553 (*qf)->is_identity = true; 554 555 CeedQFunctionContext ctx; |
| 556 CeedContextFieldLabel size_label; |
|
| 556 ierr = CeedQFunctionGetContext(*qf, &ctx); CeedChk(ierr); | 557 ierr = CeedQFunctionGetContext(*qf, &ctx); CeedChk(ierr); |
| 557 ierr = CeedQFunctionContextSetInt32(ctx, "size", size); CeedChk(ierr); | 558 ierr = CeedQFunctionContextGetFieldLabel(ctx, "size", &size_label); 559 CeedChk(ierr); 560 ierr = CeedQFunctionContextSetInt32(ctx, size_label, size); CeedChk(ierr); |
| 558 559 return CEED_ERROR_SUCCESS; 560} 561 562/** 563 @brief Copy the pointer to a CeedQFunction. Both pointers should 564 be destroyed with `CeedQFunctionDestroy()`; 565 Note: If `*qf_copy` is non-NULL, then it is assumed that --- 304 unchanged lines hidden --- | 561 562 return CEED_ERROR_SUCCESS; 563} 564 565/** 566 @brief Copy the pointer to a CeedQFunction. Both pointers should 567 be destroyed with `CeedQFunctionDestroy()`; 568 Note: If `*qf_copy` is non-NULL, then it is assumed that --- 304 unchanged lines hidden --- |