From d72b49308ea6ed268acbacc4afe179db6d672b27 Mon Sep 17 00:00:00 2001 From: Marc Fehling Date: Fri, 24 May 2024 17:35:09 +0200 Subject: [PATCH] Fix compilation. --- .../nonlinear-poro-viscoelasticity.cc | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/Nonlinear_PoroViscoelasticity/nonlinear-poro-viscoelasticity.cc b/Nonlinear_PoroViscoelasticity/nonlinear-poro-viscoelasticity.cc index 96b6e43..37a3800 100644 --- a/Nonlinear_PoroViscoelasticity/nonlinear-poro-viscoelasticity.cc +++ b/Nonlinear_PoroViscoelasticity/nonlinear-poro-viscoelasticity.cc @@ -4562,8 +4562,7 @@ namespace NonLinearPoroViscoElasticity if (this->parameters.load_type == "displacement") { const std::vector value = get_dirichlet_load(5,2); - const FEValuesExtractors::Scalar direction; - direction = this->z_displacement; + const FEValuesExtractors::Scalar direction(this->z_displacement); VectorTools::interpolate_boundary_values( this->dof_handler_ref, 5, @@ -4707,8 +4706,7 @@ namespace NonLinearPoroViscoElasticity if (this->parameters.load_type == "displacement") { const std::vector value = get_dirichlet_load(5,2); - const FEValuesExtractors::Scalar direction; - direction = this->z_displacement; + const FEValuesExtractors::Scalar direction(this->z_displacement); VectorTools::interpolate_boundary_values( this->dof_handler_ref, 5, @@ -4857,8 +4855,7 @@ namespace NonLinearPoroViscoElasticity if (this->parameters.load_type == "displacement") { const std::vector value = get_dirichlet_load(4,0); - const FEValuesExtractors::Scalar direction; - direction = this->x_displacement; + const FEValuesExtractors::Scalar direction(this->x_displacement); VectorTools::interpolate_boundary_values( this->dof_handler_ref, 4, -- 2.39.5