| ceed-qfunction.c (3c65f1475c0c36e146e45e66d93954024b28f040) | ceed-qfunction.c (bf4cb66493dbcc06b8d25c9c91cf89fe1cab7c9b) |
|---|---|
| 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. --- 454 unchanged lines hidden (view full) --- 463 strncpy(kernel_name_copy, kernel_name, kernel_name_len); 464 (*qf)->kernel_name = kernel_name_copy; 465 466 size_t source_len = strlen(source) - kernel_name_len - 1; 467 ierr = CeedCalloc(source_len + 1, &source_copy); CeedChk(ierr); 468 strncpy(source_copy, source, source_len); 469 (*qf)->source_path = source_copy; 470 } | 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. --- 454 unchanged lines hidden (view full) --- 463 strncpy(kernel_name_copy, kernel_name, kernel_name_len); 464 (*qf)->kernel_name = kernel_name_copy; 465 466 size_t source_len = strlen(source) - kernel_name_len - 1; 467 ierr = CeedCalloc(source_len + 1, &source_copy); CeedChk(ierr); 468 strncpy(source_copy, source, source_len); 469 (*qf)->source_path = source_copy; 470 } |
| 471 ierr = CeedCalloc(16, &(*qf)->input_fields); CeedChk(ierr); 472 ierr = CeedCalloc(16, &(*qf)->output_fields); CeedChk(ierr); | 471 ierr = CeedCalloc(CEED_FIELD_MAX, &(*qf)->input_fields); CeedChk(ierr); 472 ierr = CeedCalloc(CEED_FIELD_MAX, &(*qf)->output_fields); CeedChk(ierr); |
| 473 ierr = ceed->QFunctionCreate(*qf); CeedChk(ierr); 474 return CEED_ERROR_SUCCESS; 475} 476 477/** 478 @brief Create a CeedQFunction for evaluating interior (volumetric) terms by name. 479 480 @param ceed A Ceed object where the CeedQFunction will be created --- 401 unchanged lines hidden --- | 473 ierr = ceed->QFunctionCreate(*qf); CeedChk(ierr); 474 return CEED_ERROR_SUCCESS; 475} 476 477/** 478 @brief Create a CeedQFunction for evaluating interior (volumetric) terms by name. 479 480 @param ceed A Ceed object where the CeedQFunction will be created --- 401 unchanged lines hidden --- |