From 3d3927d18db6c5484a3e09d1d750e39fb859e15f Mon Sep 17 00:00:00 2001 From: Christoph Lehmann <christoph.lehmann@ufz.de> Date: Fri, 29 Jan 2016 18:12:01 +0100 Subject: [PATCH] [PL] adapt to removed default constructor --- ProcessLib/GroundwaterFlowFEM.h | 5 +++-- ProcessLib/NeumannBcAssembler.h | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/ProcessLib/GroundwaterFlowFEM.h b/ProcessLib/GroundwaterFlowFEM.h index b2cca22b1a8..748f13f7286 100644 --- a/ProcessLib/GroundwaterFlowFEM.h +++ b/ProcessLib/GroundwaterFlowFEM.h @@ -73,9 +73,10 @@ public: IntegrationMethod_ integration_method(_integration_order); std::size_t const n_integration_points = integration_method.getNPoints(); - _shape_matrices.resize(n_integration_points); + _shape_matrices.reserve(n_integration_points); for (std::size_t ip(0); ip < n_integration_points; ip++) { - _shape_matrices[ip].resize(ShapeFunction::DIM, ShapeFunction::NPOINTS); + _shape_matrices.emplace_back(ShapeFunction::DIM, GlobalDim, + ShapeFunction::NPOINTS); fe.computeShapeFunctions( integration_method.getWeightedPoint(ip).getCoords(), _shape_matrices[ip]); diff --git a/ProcessLib/NeumannBcAssembler.h b/ProcessLib/NeumannBcAssembler.h index e4fd38aa354..064288059a4 100644 --- a/ProcessLib/NeumannBcAssembler.h +++ b/ProcessLib/NeumannBcAssembler.h @@ -70,9 +70,10 @@ public: IntegrationMethod_ integration_method(_integration_order); std::size_t const n_integration_points = integration_method.getNPoints(); - _shape_matrices.resize(n_integration_points); + _shape_matrices.reserve(n_integration_points); for (std::size_t ip(0); ip < n_integration_points; ip++) { - _shape_matrices[ip].resize(ShapeFunction::DIM, GlobalDim, ShapeFunction::NPOINTS); + _shape_matrices.emplace_back(ShapeFunction::DIM, GlobalDim, + ShapeFunction::NPOINTS); fe.computeShapeFunctions( integration_method.getWeightedPoint(ip).getCoords(), _shape_matrices[ip]); -- GitLab