Skip to content

Commit

Permalink
dealii - update to newer syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremylt committed Aug 28, 2024
1 parent 7de238d commit 70dc807
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion examples/deal.II/bps.cc
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ main(int argc, char *argv[])
#ifdef DEAL_II_WITH_P4EST
parallel::distributed::Triangulation<dim> tria(MPI_COMM_WORLD);
#else
parallel::shared::Triangulation<dim> tria(MPI_COMM_WORLD, ::Triangulation<dim>::none, true);
Triangulation<dim> tria;
#endif

GridGenerator::hyper_cube(tria);
Expand Down
16 changes: 8 additions & 8 deletions examples/deal.II/bps.h
Original file line number Diff line number Diff line change
Expand Up @@ -160,13 +160,13 @@ class OperatorCeed : public OperatorBase<Number>
*/
~OperatorCeed()
{
CeedOperatorDestroy(&op_apply);
CeedQFunctionDestroy(&qf_apply);
CeedQFunctionContextDestroy(&build_ctx);
CeedVectorDestroy(&q_data);
CeedElemRestrictionDestroy(&q_data_restriction);
CeedElemRestrictionDestroy(&sol_restriction);
CeedBasisDestroy(&sol_basis);
CeedQFunctionContextDestroy(&build_ctx);
CeedQFunctionDestroy(&qf_apply);
CeedOperatorDestroy(&op_apply);
CeedDestroy(&ceed);
}

Expand Down Expand Up @@ -641,15 +641,15 @@ class OperatorCeed : public OperatorBase<Number>

CeedOperatorApply(op_build, node_coords, q_data, CEED_REQUEST_IMMEDIATE);

CeedOperatorDestroy(&op_build);
CeedQFunctionDestroy(&qf_build);
CeedQFunctionContextDestroy(&build_ctx);
CeedElemRestrictionDestroy(&geo_restriction);
CeedVectorDestroy(&node_coords);
CeedElemRestrictionDestroy(&q_data_restriction);
CeedVectorSyncArray(q_data, CEED_MEM_HOST);
CeedVectorDestroy(&q_data);
CeedElemRestrictionDestroy(&geo_restriction);
CeedElemRestrictionDestroy(&q_data_restriction);
CeedBasisDestroy(&geo_basis);
CeedQFunctionContextDestroy(&build_ctx);
CeedQFunctionDestroy(&qf_build);
CeedOperatorDestroy(&op_build);

return weights;
}
Expand Down

0 comments on commit 70dc807

Please sign in to comment.