| /libCEED/interface/ |
| H A D | ceed-preconditioning.c | 50 CeedCall(CeedCalloc(path_len + name_len + 2, &source_path_with_name)); in CeedQFunctionCreateFallback() 55 CeedCall(CeedStringAllocCopy(qf->user_source, &source_path_with_name)); in CeedQFunctionCreateFallback() 57 CeedCall(CeedCalloc(1, &source_path_with_name)); in CeedQFunctionCreateFallback() 64 CeedCall(CeedQFunctionGetVectorLength(qf, &vec_length)); in CeedQFunctionCreateFallback() 65 CeedCall(CeedQFunctionGetUserFunction(qf, &f)); in CeedQFunctionCreateFallback() 66 …CeedCall(CeedQFunctionCreateInterior(fallback_ceed, vec_length, f, source_path_with_name, qf_fallb… in CeedQFunctionCreateFallback() 71 CeedCall(CeedQFunctionGetContext(qf, &ctx)); in CeedQFunctionCreateFallback() 72 CeedCall(CeedQFunctionSetContext(*qf_fallback, ctx)); in CeedQFunctionCreateFallback() 73 CeedCall(CeedQFunctionContextDestroy(&ctx)); in CeedQFunctionCreateFallback() 75 …CeedCall(CeedQFunctionGetFields(qf, &num_input_fields, &input_fields, &num_output_fields, &output_… in CeedQFunctionCreateFallback() [all …]
|
| H A D | ceed-operator.c | 42 CeedCall(CeedQFunctionFieldGetData(qf_field, &field_name, &size, &eval_mode)); in CeedOperatorCheckField() 48 CeedCall(CeedElemRestrictionGetNumComponents(rstr, &rstr_num_comp)); in CeedOperatorCheckField() 54 CeedCall(CeedBasisGetDimension(basis, &dim)); in CeedOperatorCheckField() 55 CeedCall(CeedBasisGetNumComponents(basis, &num_comp)); in CeedOperatorCheckField() 56 CeedCall(CeedBasisGetNumQuadratureComponents(basis, eval_mode, &q_comp)); in CeedOperatorCheckField() 108 CeedCall(CeedQFunctionFieldGetData(qf_field, &field_name, &size, &eval_mode)); in CeedOperatorFieldView() 109 CeedCall(CeedOperatorFieldGetData(op_field, NULL, NULL, &basis, &vec)); in CeedOperatorFieldView() 122 CeedCall(CeedVectorDestroy(&vec)); in CeedOperatorFieldView() 123 CeedCall(CeedBasisDestroy(&basis)); in CeedOperatorFieldView() 145 CeedCall(CeedOperatorIsAtPoints(op, &is_at_points)); in CeedOperatorSingleView() [all …]
|
| H A D | ceed-vector.c | 53 CeedCall(CeedVectorView((CeedVector)vec, "%12.8f", stream)); in CeedVectorView_Object() 67 CeedCall(CeedVectorDestroy((CeedVector *)vec)); in CeedVectorDestroy_Object() 93 CeedCall(CeedVectorGetLength(vec, &length)); in CeedVectorHasValidArray() 98 CeedCall(vec->HasValidArray(vec, has_valid_array)); in CeedVectorHasValidArray() 116 CeedCall(vec->HasBorrowedArrayOfType(vec, mem_type, has_borrowed_array_of_type)); in CeedVectorHasBorrowedArrayOfType() 175 CeedCall(CeedObjectReference((CeedObject)vec)); in CeedVectorReference() 203 CeedCall(CeedGetObjectDelegate(ceed, &delegate, "Vector")); in CeedVectorCreate() 205 CeedCall(CeedVectorCreate(delegate, length, vec)); in CeedVectorCreate() 206 CeedCall(CeedDestroy(&delegate)); in CeedVectorCreate() 210 CeedCall(CeedCalloc(1, vec)); in CeedVectorCreate() [all …]
|
| H A D | ceed-qfunction.c | 70 CeedCall(CeedGetJitRelativePath(source, &relative_file_path)); in CeedQFunctionRegister() 107 CeedCall(CeedCalloc(1, f)); in CeedQFunctionFieldSet() 108 CeedCall(CeedStringAllocCopy(field_name, (char **)&(*f)->field_name)); in CeedQFunctionFieldSet() 133 CeedCall(CeedQFunctionFieldGetData(field, &field_name, &size, &eval_mode)); in CeedQFunctionFieldView() 156 CeedCall(CeedQFunctionView((CeedQFunction)qf, stream)); in CeedQFunctionView_Object() 170 CeedCall(CeedQFunctionDestroy((CeedQFunction *)qf)); in CeedQFunctionDestroy_Object() 244 CeedCall(CeedQFunctionGetKernelName(qf, name)); in CeedQFunctionGetName() 267 CeedCall(CeedCalloc(kernel_name_len + 1, &kernel_name_copy)); in CeedQFunctionGetKernelName() 270 CeedCall(CeedCalloc(1, &kernel_name_copy)); in CeedQFunctionGetKernelName() 298 CeedCall(CeedQFunctionGetCeed(qf, &ceed)); in CeedQFunctionGetSourcePath() [all …]
|
| H A D | ceed-elemrestriction.c | 112 CeedCall(CeedElemRestrictionView((CeedElemRestriction)rstr, stream)); in CeedElemRestrictionView_Object() 126 CeedCall(CeedElemRestrictionDestroy((CeedElemRestriction *)rstr)); in CeedElemRestrictionDestroy_Object() 203 CeedCall(CeedElemRestrictionGetNumElements(rstr_a, &num_elem_a)); in CeedElemRestrictionAtPointsAreCompatible() 204 CeedCall(CeedElemRestrictionGetNumElements(rstr_b, &num_elem_b)); in CeedElemRestrictionAtPointsAreCompatible() 205 CeedCall(CeedElemRestrictionGetNumPoints(rstr_a, &num_points_a)); in CeedElemRestrictionAtPointsAreCompatible() 206 CeedCall(CeedElemRestrictionGetNumPoints(rstr_b, &num_points_b)); in CeedElemRestrictionAtPointsAreCompatible() 215 CeedCall(CeedElemRestrictionGetOffsets(rstr_a, CEED_MEM_HOST, &offsets_a)); in CeedElemRestrictionAtPointsAreCompatible() 216 CeedCall(CeedElemRestrictionGetOffsets(rstr_b, CEED_MEM_HOST, &offsets_b)); in CeedElemRestrictionAtPointsAreCompatible() 218 CeedCall(CeedElemRestrictionRestoreOffsets(rstr_a, &offsets_a)); in CeedElemRestrictionAtPointsAreCompatible() 219 CeedCall(CeedElemRestrictionRestoreOffsets(rstr_b, &offsets_b)); in CeedElemRestrictionAtPointsAreCompatible() [all …]
|
| H A D | ceed-basis.c | 191 CeedCall(CeedBasisView((CeedBasis)basis, stream)); in CeedBasisView_Object() 205 CeedCall(CeedBasisDestroy((CeedBasis *)basis)); in CeedBasisDestroy_Object() 231 CeedCall(CeedBasisGetNumQuadraturePoints(basis_to, &Q_to)); in CeedBasisCreateProjectionMatrices() 232 CeedCall(CeedBasisGetNumQuadraturePoints(basis_from, &Q_from)); in CeedBasisCreateProjectionMatrices() 243 CeedCall(CeedBasisIsTensor(basis_to, &is_tensor_to)); in CeedBasisCreateProjectionMatrices() 244 CeedCall(CeedBasisIsTensor(basis_from, &is_tensor_from)); in CeedBasisCreateProjectionMatrices() 248 CeedCall(CeedBasisGetNumNodes1D(basis_to, &P_to)); in CeedBasisCreateProjectionMatrices() 249 CeedCall(CeedBasisGetNumNodes1D(basis_from, &P_from)); in CeedBasisCreateProjectionMatrices() 250 CeedCall(CeedBasisGetNumQuadraturePoints1D(basis_from, &Q)); in CeedBasisCreateProjectionMatrices() 252 CeedCall(CeedBasisGetNumNodes(basis_to, &P_to)); in CeedBasisCreateProjectionMatrices() [all …]
|
| H A D | ceed-qfunctioncontext.c | 64 CeedCall(CeedQFunctionContextGetFieldIndex(ctx, field_name, &field_index)); in CeedQFunctionContextRegisterGeneric() 70 CeedCall(CeedCalloc(1, &ctx->field_labels)); in CeedQFunctionContextRegisterGeneric() 73 CeedCall(CeedRealloc(2 * ctx->max_fields, &ctx->field_labels)); in CeedQFunctionContextRegisterGeneric() 76 CeedCall(CeedCalloc(1, &ctx->field_labels[ctx->num_fields])); in CeedQFunctionContextRegisterGeneric() 92 CeedCall(CeedStringAllocCopy(field_name, (char **)&ctx->field_labels[ctx->num_fields]->name)); in CeedQFunctionContextRegisterGeneric() 93 …CeedCall(CeedStringAllocCopy(field_description, (char **)&ctx->field_labels[ctx->num_fields]->desc… in CeedQFunctionContextRegisterGeneric() 113 CeedCall(ctx->DataDestroy(ctx)); in CeedQFunctionContextDestroyData() 118 … CeedCall(CeedQFunctionContextGetDataDestroy(ctx, &data_destroy_mem_type, &data_destroy_function)); in CeedQFunctionContextDestroyData() 122 CeedCall(CeedQFunctionContextGetData(ctx, data_destroy_mem_type, &data)); in CeedQFunctionContextDestroyData() 123 CeedCall(data_destroy_function(data)); in CeedQFunctionContextDestroyData() [all …]
|
| H A D | ceed.c | 151 CeedCall(CeedCalloc(1, &ceed->work_vectors)); in CeedWorkVectorsCreate() 169 CeedCall(CeedObjectReference((CeedObject)ceed)); in CeedWorkVectorsDestroy() 170 CeedCall(CeedObjectReference((CeedObject)ceed)); in CeedWorkVectorsDestroy() 171 CeedCall(CeedVectorDestroy(&ceed->work_vectors->vecs[i])); in CeedWorkVectorsDestroy() 175 CeedCall(CeedFree(&ceed->work_vectors->is_in_use)); in CeedWorkVectorsDestroy() 176 CeedCall(CeedFree(&ceed->work_vectors->vecs)); in CeedWorkVectorsDestroy() 177 CeedCall(CeedFree(&ceed->work_vectors)); in CeedWorkVectorsDestroy() 192 CeedCall(CeedView((Ceed)ceed, stream)); in CeedView_Object() 206 CeedCall(CeedDestroy((Ceed *)ceed)); in CeedDestroy_Object() 346 CeedCall(CeedCalloc(len + 1, copy)); in CeedStringAllocCopy() [all …]
|
| H A D | ceed-tensor.c | 32 CeedCall(CeedTensorContractDestroy((CeedTensorContract *)contract)); in CeedTensorContractDestroy_Object() 58 CeedCall(CeedGetObjectDelegate(ceed, &delegate, "TensorContract")); in CeedTensorContractCreate() 60 CeedCall(CeedTensorContractCreate(delegate, contract)); in CeedTensorContractCreate() 61 CeedCall(CeedDestroy(&delegate)); in CeedTensorContractCreate() 65 CeedCall(CeedCalloc(1, contract)); in CeedTensorContractCreate() 66 CeedCall(CeedObjectCreate(ceed, NULL, CeedTensorContractDestroy_Object, &(*contract)->obj)); in CeedTensorContractCreate() 67 CeedCall(ceed->TensorContractCreate(*contract)); in CeedTensorContractCreate() 96 CeedCall(contract->Apply(contract, A, B, C, J, t, t_mode, add, u, v)); in CeedTensorContractApply() 128 … CeedCall(contract->Apply(contract, A, J, C, B, t + d * B * J, t_mode, add, u + d * A * J * C, v)); in CeedTensorContractStridedApply() 132 … CeedCall(contract->Apply(contract, A, B, C, J, t + d * B * J, t_mode, add, u, v + d * A * J * C)); in CeedTensorContractStridedApply() [all …]
|
| H A D | ceed-jit-tools.c | 36 CeedCall(CeedCalloc(source_file_path_length, &source_file_path_only)); in CeedCheckFilePath() 59 if (last_colon) CeedCall(CeedFree(&source_file_path_only)); in CeedCheckFilePath() 75 CeedCall(CeedStringAllocCopy(source_file_path, normalized_source_file_path)); in CeedNormalizePath() 147 CeedCall(ierr); in CeedLoadSourceToInitializedBuffer() 153 CeedCall(CeedFree(&temp_buffer)); in CeedLoadSourceToInitializedBuffer() 186 CeedCall(CeedRealloc(current_size + copy_size + 2, buffer)); in CeedLoadSourceToInitializedBuffer() 211 CeedCall(CeedRealloc(current_size + copy_size + 2, buffer)); in CeedLoadSourceToInitializedBuffer() 236 CeedCall(CeedCalloc(root_length + include_file_name_len + 2, &include_source_path)); in CeedLoadSourceToInitializedBuffer() 245 CeedCall(CeedCalloc(ceed_relative_path_length + 1, &ceed_relative_path)); in CeedLoadSourceToInitializedBuffer() 247 … CeedCall(CeedGetJitAbsolutePath(ceed, ceed_relative_path, (const char **)&include_source_path)); in CeedLoadSourceToInitializedBuffer() [all …]
|
| /libCEED/gallery/identity/ |
| H A D | ceed-identity.c | 29 CeedCall(CeedQFunctionContextCreate(ceed, &ctx)); in CeedQFunctionInit_Identity() 30 …CeedCall(CeedQFunctionContextSetData(ctx, CEED_MEM_HOST, CEED_COPY_VALUES, sizeof(ctx_data), &ctx_… in CeedQFunctionInit_Identity() 31 …CeedCall(CeedQFunctionContextRegisterInt32(ctx, "size", offsetof(IdentityCtx, size), 1, "field siz… in CeedQFunctionInit_Identity() 32 CeedCall(CeedQFunctionSetContext(qf, ctx)); in CeedQFunctionInit_Identity() 33 CeedCall(CeedQFunctionContextDestroy(&ctx)); in CeedQFunctionInit_Identity() 35 CeedCall(CeedQFunctionSetUserFlopsEstimate(qf, 0)); in CeedQFunctionInit_Identity()
|
| /libCEED/gallery/mass/ |
| H A D | ceed-massapply.c | 23 CeedCall(CeedQFunctionAddInput(qf, "u", 1, CEED_EVAL_INTERP)); in CeedQFunctionInit_MassApply() 24 CeedCall(CeedQFunctionAddInput(qf, "qdata", 1, CEED_EVAL_NONE)); in CeedQFunctionInit_MassApply() 25 CeedCall(CeedQFunctionAddOutput(qf, "v", 1, CEED_EVAL_INTERP)); in CeedQFunctionInit_MassApply() 27 CeedCall(CeedQFunctionSetUserFlopsEstimate(qf, 1)); in CeedQFunctionInit_MassApply()
|
| H A D | ceed-mass2dbuild.c | 25 CeedCall(CeedQFunctionAddInput(qf, "dx", dim * dim, CEED_EVAL_GRAD)); in CeedQFunctionInit_Mass2DBuild() 26 CeedCall(CeedQFunctionAddInput(qf, "weights", 1, CEED_EVAL_WEIGHT)); in CeedQFunctionInit_Mass2DBuild() 27 CeedCall(CeedQFunctionAddOutput(qf, "qdata", 1, CEED_EVAL_NONE)); in CeedQFunctionInit_Mass2DBuild() 29 CeedCall(CeedQFunctionSetUserFlopsEstimate(qf, 4)); in CeedQFunctionInit_Mass2DBuild()
|
| H A D | ceed-mass3dbuild.c | 25 CeedCall(CeedQFunctionAddInput(qf, "dx", dim * dim, CEED_EVAL_GRAD)); in CeedQFunctionInit_Mass3DBuild() 26 CeedCall(CeedQFunctionAddInput(qf, "weights", 1, CEED_EVAL_WEIGHT)); in CeedQFunctionInit_Mass3DBuild() 27 CeedCall(CeedQFunctionAddOutput(qf, "qdata", 1, CEED_EVAL_NONE)); in CeedQFunctionInit_Mass3DBuild() 29 CeedCall(CeedQFunctionSetUserFlopsEstimate(qf, 15)); in CeedQFunctionInit_Mass3DBuild()
|
| H A D | ceed-mass1dbuild.c | 25 CeedCall(CeedQFunctionAddInput(qf, "dx", dim * dim, CEED_EVAL_GRAD)); in CeedQFunctionInit_Mass1DBuild() 26 CeedCall(CeedQFunctionAddInput(qf, "weights", 1, CEED_EVAL_WEIGHT)); in CeedQFunctionInit_Mass1DBuild() 27 CeedCall(CeedQFunctionAddOutput(qf, "qdata", 1, CEED_EVAL_NONE)); in CeedQFunctionInit_Mass1DBuild() 29 CeedCall(CeedQFunctionSetUserFlopsEstimate(qf, 1)); in CeedQFunctionInit_Mass1DBuild()
|
| /libCEED/gallery/poisson/ |
| H A D | ceed-poisson1dapply.c | 25 CeedCall(CeedQFunctionAddInput(qf, "du", dim, CEED_EVAL_GRAD)); in CeedQFunctionInit_Poisson1DApply() 26 CeedCall(CeedQFunctionAddInput(qf, "qdata", dim * (dim + 1) / 2, CEED_EVAL_NONE)); in CeedQFunctionInit_Poisson1DApply() 27 CeedCall(CeedQFunctionAddOutput(qf, "dv", dim, CEED_EVAL_GRAD)); in CeedQFunctionInit_Poisson1DApply() 29 CeedCall(CeedQFunctionSetUserFlopsEstimate(qf, 1)); in CeedQFunctionInit_Poisson1DApply()
|
| H A D | ceed-poisson1dbuild.c | 25 CeedCall(CeedQFunctionAddInput(qf, "dx", dim * dim, CEED_EVAL_GRAD)); in CeedQFunctionInit_Poisson1DBuild() 26 CeedCall(CeedQFunctionAddInput(qf, "weights", 1, CEED_EVAL_WEIGHT)); in CeedQFunctionInit_Poisson1DBuild() 27 CeedCall(CeedQFunctionAddOutput(qf, "qdata", dim * (dim + 1) / 2, CEED_EVAL_NONE)); in CeedQFunctionInit_Poisson1DBuild() 29 CeedCall(CeedQFunctionSetUserFlopsEstimate(qf, 1)); in CeedQFunctionInit_Poisson1DBuild()
|
| H A D | ceed-poisson2dbuild.c | 25 CeedCall(CeedQFunctionAddInput(qf, "dx", dim * dim, CEED_EVAL_GRAD)); in CeedQFunctionInit_Poisson2DBuild() 26 CeedCall(CeedQFunctionAddInput(qf, "weights", 1, CEED_EVAL_WEIGHT)); in CeedQFunctionInit_Poisson2DBuild() 27 CeedCall(CeedQFunctionAddOutput(qf, "qdata", dim * (dim + 1) / 2, CEED_EVAL_NONE)); in CeedQFunctionInit_Poisson2DBuild() 29 CeedCall(CeedQFunctionSetUserFlopsEstimate(qf, 17)); in CeedQFunctionInit_Poisson2DBuild()
|
| H A D | ceed-poisson2dapply.c | 25 CeedCall(CeedQFunctionAddInput(qf, "du", dim, CEED_EVAL_GRAD)); in CeedQFunctionInit_Poisson2DApply() 26 CeedCall(CeedQFunctionAddInput(qf, "qdata", dim * (dim + 1) / 2, CEED_EVAL_NONE)); in CeedQFunctionInit_Poisson2DApply() 27 CeedCall(CeedQFunctionAddOutput(qf, "dv", dim, CEED_EVAL_GRAD)); in CeedQFunctionInit_Poisson2DApply() 29 CeedCall(CeedQFunctionSetUserFlopsEstimate(qf, 6)); in CeedQFunctionInit_Poisson2DApply()
|
| H A D | ceed-poisson3dbuild.c | 25 CeedCall(CeedQFunctionAddInput(qf, "dx", dim * dim, CEED_EVAL_GRAD)); in CeedQFunctionInit_Poisson3DBuild() 26 CeedCall(CeedQFunctionAddInput(qf, "weights", 1, CEED_EVAL_WEIGHT)); in CeedQFunctionInit_Poisson3DBuild() 27 CeedCall(CeedQFunctionAddOutput(qf, "qdata", dim * (dim + 1) / 2, CEED_EVAL_NONE)); in CeedQFunctionInit_Poisson3DBuild() 29 CeedCall(CeedQFunctionSetUserFlopsEstimate(qf, 69)); in CeedQFunctionInit_Poisson3DBuild()
|
| H A D | ceed-poisson3dapply.c | 25 CeedCall(CeedQFunctionAddInput(qf, "du", dim, CEED_EVAL_GRAD)); in CeedQFunctionInit_Poisson3DApply() 26 CeedCall(CeedQFunctionAddInput(qf, "qdata", dim * (dim + 1) / 2, CEED_EVAL_NONE)); in CeedQFunctionInit_Poisson3DApply() 27 CeedCall(CeedQFunctionAddOutput(qf, "dv", dim, CEED_EVAL_GRAD)); in CeedQFunctionInit_Poisson3DApply() 29 CeedCall(CeedQFunctionSetUserFlopsEstimate(qf, 15)); in CeedQFunctionInit_Poisson3DApply()
|
| /libCEED/gallery/mass-vector/ |
| H A D | ceed-vectormassapply.c | 25 CeedCall(CeedQFunctionAddInput(qf, "u", num_comp, CEED_EVAL_INTERP)); in CeedQFunctionInit_Vector3MassApply() 26 CeedCall(CeedQFunctionAddInput(qf, "qdata", 1, CEED_EVAL_NONE)); in CeedQFunctionInit_Vector3MassApply() 27 CeedCall(CeedQFunctionAddOutput(qf, "v", num_comp, CEED_EVAL_INTERP)); in CeedQFunctionInit_Vector3MassApply() 29 CeedCall(CeedQFunctionSetUserFlopsEstimate(qf, num_comp)); in CeedQFunctionInit_Vector3MassApply()
|
| /libCEED/gallery/poisson-vector/ |
| H A D | ceed-vectorpoisson3dapply.c | 25 CeedCall(CeedQFunctionAddInput(qf, "du", num_comp * dim, CEED_EVAL_GRAD)); in CeedQFunctionInit_Vector3Poisson3DApply() 26 CeedCall(CeedQFunctionAddInput(qf, "qdata", dim * (dim + 1) / 2, CEED_EVAL_NONE)); in CeedQFunctionInit_Vector3Poisson3DApply() 27 CeedCall(CeedQFunctionAddOutput(qf, "dv", num_comp * dim, CEED_EVAL_GRAD)); in CeedQFunctionInit_Vector3Poisson3DApply() 29 CeedCall(CeedQFunctionSetUserFlopsEstimate(qf, num_comp * 15)); in CeedQFunctionInit_Vector3Poisson3DApply()
|
| H A D | ceed-vectorpoisson2dapply.c | 25 CeedCall(CeedQFunctionAddInput(qf, "du", num_comp * dim, CEED_EVAL_GRAD)); in CeedQFunctionInit_Vector3Poisson2DApply() 26 CeedCall(CeedQFunctionAddInput(qf, "qdata", dim * (dim + 1) / 2, CEED_EVAL_NONE)); in CeedQFunctionInit_Vector3Poisson2DApply() 27 CeedCall(CeedQFunctionAddOutput(qf, "dv", num_comp * dim, CEED_EVAL_GRAD)); in CeedQFunctionInit_Vector3Poisson2DApply() 29 CeedCall(CeedQFunctionSetUserFlopsEstimate(qf, num_comp * 6)); in CeedQFunctionInit_Vector3Poisson2DApply()
|
| H A D | ceed-vectorpoisson1dapply.c | 25 CeedCall(CeedQFunctionAddInput(qf, "du", num_comp * dim, CEED_EVAL_GRAD)); in CeedQFunctionInit_Vector3Poisson1DApply() 26 CeedCall(CeedQFunctionAddInput(qf, "qdata", dim * (dim + 1) / 2, CEED_EVAL_NONE)); in CeedQFunctionInit_Vector3Poisson1DApply() 27 CeedCall(CeedQFunctionAddOutput(qf, "dv", num_comp * dim, CEED_EVAL_GRAD)); in CeedQFunctionInit_Vector3Poisson1DApply() 29 CeedCall(CeedQFunctionSetUserFlopsEstimate(qf, num_comp)); in CeedQFunctionInit_Vector3Poisson1DApply()
|