diff --git a/examples/deal.II/bps.cc b/examples/deal.II/bps.cc index 9d72710d65..7205d0987d 100644 --- a/examples/deal.II/bps.cc +++ b/examples/deal.II/bps.cc @@ -167,7 +167,7 @@ main(int argc, char *argv[]) #ifdef DEAL_II_WITH_P4EST parallel::distributed::Triangulation tria(MPI_COMM_WORLD); #else - parallel::shared::Triangulation tria(MPI_COMM_WORLD, ::Triangulation::none, true); + Triangulation tria; #endif GridGenerator::hyper_cube(tria); diff --git a/examples/deal.II/bps.h b/examples/deal.II/bps.h index 677ed1a81f..bca093663a 100644 --- a/examples/deal.II/bps.h +++ b/examples/deal.II/bps.h @@ -160,13 +160,13 @@ class OperatorCeed : public OperatorBase */ ~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); } @@ -641,15 +641,15 @@ class OperatorCeed : public OperatorBase 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; }