]> https://gitweb.dealii.org/ - code-gallery.git/commitdiff
Fix compilation. 177/head
authorMarc Fehling <mafehling.git@gmail.com>
Fri, 24 May 2024 15:35:09 +0000 (17:35 +0200)
committerMarc Fehling <mafehling.git@gmail.com>
Fri, 24 May 2024 15:35:09 +0000 (17:35 +0200)
Nonlinear_PoroViscoelasticity/nonlinear-poro-viscoelasticity.cc

index 96b6e4380a27a3a4d0c39813c05efd3fef0fca6f..37a3800c5820f4e114c902920a82810738e57e5a 100644 (file)
@@ -4562,8 +4562,7 @@ namespace NonLinearPoroViscoElasticity
             if (this->parameters.load_type == "displacement")
             {
                 const std::vector<double> 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<double> 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<double> 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,

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.