@@ -97,7 +97,7 @@ Core::LinAlg::SerialDenseMatrix Discret::Elements::Beam3ebType::compute_null_spa
9797
9898 // Compute tangent vector with unit length from nodal coordinates.
9999 // Note: Tangent vector is the same at both nodes due to straight initial configuration.
100- Core::LinAlg::Matrix<spacedim, 1 > tangent (true );
100+ Core::LinAlg::Matrix<spacedim, 1 > tangent (Core::LinAlg::Initialization::zero );
101101 {
102102 const Core::Nodes::Node* firstnode = beam3eb->nodes ()[0 ];
103103 const Core::Nodes::Node* secondnode = beam3eb->nodes ()[1 ];
@@ -110,11 +110,11 @@ Core::LinAlg::SerialDenseMatrix Discret::Elements::Beam3ebType::compute_null_spa
110110
111111 // Form a Cartesian basis
112112 std::array<Core::LinAlg::Matrix<spacedim, 1 >, spacedim> basis;
113- Core::LinAlg::Matrix<spacedim, 1 > e1 (true );
113+ Core::LinAlg::Matrix<spacedim, 1 > e1 (Core::LinAlg::Initialization::zero );
114114 e1 (0 ) = 1.0 ;
115- Core::LinAlg::Matrix<spacedim, 1 > e2 (true );
115+ Core::LinAlg::Matrix<spacedim, 1 > e2 (Core::LinAlg::Initialization::zero );
116116 e2 (1 ) = 1.0 ;
117- Core::LinAlg::Matrix<spacedim, 1 > e3 (true );
117+ Core::LinAlg::Matrix<spacedim, 1 > e3 (Core::LinAlg::Initialization::zero );
118118 e3 (2 ) = 1.0 ;
119119 basis[0 ] = e1 ;
120120 basis[1 ] = e2 ;
@@ -148,16 +148,18 @@ Core::LinAlg::SerialDenseMatrix Discret::Elements::Beam3ebType::compute_null_spa
148148 if (std::abs (omegaTwo.dot (tangent)) > 1.0e-12 )
149149 FOUR_C_THROW (" omegaTwo not orthogonal to tangent vector." );
150150
151- Core::LinAlg::Matrix<3 , 1 > nodeCoords (true );
151+ Core::LinAlg::Matrix<3 , 1 > nodeCoords (Core::LinAlg::Initialization::zero );
152152 for (std::size_t dim = 0 ; dim < 3 ; ++dim) nodeCoords (dim) = x[dim] - x0[dim];
153153
154154 // Compute rotations in displacement DOFs
155- Core::LinAlg::Matrix<spacedim, 1 > rotOne (true ), rotTwo (true );
155+ Core::LinAlg::Matrix<spacedim, 1 > rotOne (Core::LinAlg::Initialization::zero);
156+ Core::LinAlg::Matrix<spacedim, 1 > rotTwo (Core::LinAlg::Initialization::zero);
156157 rotOne.cross_product (omegaOne, nodeCoords);
157158 rotTwo.cross_product (omegaTwo, nodeCoords);
158159
159160 // Compute rotations in tangent DOFs
160- Core::LinAlg::Matrix<spacedim, 1 > rotTangOne (true ), rotTangTwo (true );
161+ Core::LinAlg::Matrix<spacedim, 1 > rotTangOne (Core::LinAlg::Initialization::zero);
162+ Core::LinAlg::Matrix<spacedim, 1 > rotTangTwo (Core::LinAlg::Initialization::zero);
161163 rotTangOne.cross_product (omegaOne, tangent);
162164 rotTangTwo.cross_product (omegaTwo, tangent);
163165
@@ -285,10 +287,10 @@ Discret::Elements::Beam3eb::Beam3eb(int id, int owner)
285287 firstcall_(true ),
286288 ekin_(0.0 ),
287289 eint_(0.0 ),
288- l_(Core::LinAlg::Matrix<3 , 1 >(true )),
289- p_(Core::LinAlg::Matrix<3 , 1 >(true )),
290- t0_(Core::LinAlg::Matrix<3 , 2 >(true )),
291- t_(Core::LinAlg::Matrix<3 , 2 >(true )),
290+ l_(Core::LinAlg::Matrix<3 , 1 >(Core::LinAlg::Initialization::zero )),
291+ p_(Core::LinAlg::Matrix<3 , 1 >(Core::LinAlg::Initialization::zero )),
292+ t0_(Core::LinAlg::Matrix<3 , 2 >(Core::LinAlg::Initialization::zero )),
293+ t_(Core::LinAlg::Matrix<3 , 2 >(Core::LinAlg::Initialization::zero )),
292294 kappa_max_(0.0 ),
293295 epsilon_max_(0.0 ),
294296 axial_strain_gp_(0 ),
@@ -535,7 +537,7 @@ void Discret::Elements::Beam3eb::get_pos_at_xi(
535537 disp.size ());
536538
537539 // add reference positions and tangents => total Lagrangean state vector
538- Core::LinAlg::Matrix<12 , 1 > disp_totlag (true );
540+ Core::LinAlg::Matrix<12 , 1 > disp_totlag (Core::LinAlg::Initialization::zero );
539541 update_disp_totlag<2 , 6 >(disp, disp_totlag);
540542
541543 Beam3Base::get_pos_at_xi<2 , 2 , double >(pos, xi, disp_totlag);
@@ -553,7 +555,7 @@ void Discret::Elements::Beam3eb::get_triad_at_xi(
553555 disp.size ());
554556
555557 // add reference positions and tangents => total Lagrangean state vector
556- Core::LinAlg::Matrix<12 , 1 > disp_totlag (true );
558+ Core::LinAlg::Matrix<12 , 1 > disp_totlag (Core::LinAlg::Initialization::zero );
557559 update_disp_totlag<2 , 6 >(disp, disp_totlag);
558560
559561 triad.clear ();
0 commit comments