From: Marc Fehling Date: Fri, 24 May 2024 15:35:09 +0000 (+0200) Subject: Fix compilation. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d72b49308ea6ed268acbacc4afe179db6d672b27;p=code-gallery.git Fix compilation. --- 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,