Skip to content

Commit e7c6490

Browse files
authored
Merge pull request #570 from bwirthl/fix-undefined-behavior
Fix undefined behavior in phase velocities
2 parents f3f0046 + cff86b8 commit e7c6490

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/porofluid_pressure_based_ele/4C_porofluid_pressure_based_ele_evaluator.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3264,7 +3264,7 @@ void Discret::Elements::PoroFluidEvaluator::EvaluatorPhaseVelocities<nsd,
32643264

32653265
const std::vector<Core::LinAlg::Matrix<nsd, 1>>& gradient_phi = *variablemanager.grad_phinp();
32663266

3267-
Core::LinAlg::Matrix<nsd, 1> structure_velocity(0.0);
3267+
Core::LinAlg::Matrix<nsd, 1> structure_velocity(true);
32683268
if (is_ale_) structure_velocity = *variablemanager.con_velnp();
32693269

32703270
// FLUID phases

0 commit comments

Comments
 (0)