@@ -1461,6 +1461,20 @@ void ScaTra::ScaTraTimIntImpl::set_mean_concentration(
14611461 mean_conc_ = MeanConc;
14621462}
14631463
1464+ /* ----------------------------------------------------------------------*
1465+ *----------------------------------------------------------------------*/
1466+ void ScaTra::ScaTraTimIntImpl::set_acceleration_field (
1467+ const Core::LinAlg::Vector<double >& acceleration) const
1468+ {
1469+ // time measurement
1470+ TEUCHOS_FUNC_TIME_MONITOR (" SCATRA: set acceleration" );
1471+
1472+ FOUR_C_ASSERT (nds_vel () < discret_->num_dof_sets (), " Too few dof sets on scatra discretization!" );
1473+
1474+ // provide scatra discretization with acceleration field if required
1475+ discret_->set_state (nds_vel (), " acceleration field" , acceleration);
1476+ }
1477+
14641478/* ----------------------------------------------------------------------*
14651479 *----------------------------------------------------------------------*/
14661480void ScaTra::ScaTraTimIntImpl::set_convective_velocity (
@@ -1515,23 +1529,18 @@ bool ScaTra::ScaTraTimIntImpl::fine_scale_velocity_field_required() const
15151529
15161530/* ----------------------------------------------------------------------*
15171531 *----------------------------------------------------------------------*/
1518- void ScaTra::ScaTraTimIntImpl::set_velocity_field (
1519- std::shared_ptr<const Core::LinAlg::Vector<double >> acc,
1520- std::shared_ptr<const Core::LinAlg::Vector<double >> vel)
1532+ void ScaTra::ScaTraTimIntImpl::set_velocity_field (const Core::LinAlg::Vector<double >& velocity)
15211533{
15221534 // time measurement
1523- TEUCHOS_FUNC_TIME_MONITOR (" SCATRA: set velocity fields " );
1535+ TEUCHOS_FUNC_TIME_MONITOR (" SCATRA: set velocity field " );
15241536
15251537 // checks
15261538 FOUR_C_ASSERT (velocity_field_type_ == Inpar::ScaTra::velocity_Navier_Stokes,
15271539 " Wrong set_velocity_field() called for velocity field type {}!" , velocity_field_type_);
15281540 FOUR_C_ASSERT (nds_vel () < discret_->num_dof_sets (), " Too few dof sets on scatra discretization!" );
15291541
15301542 // provide scatra discretization with velocity
1531- if (vel != nullptr ) discret_->set_state (nds_vel (), " velocity field" , *vel);
1532-
1533- // provide scatra discretization with acceleration field if required
1534- if (acc != nullptr ) discret_->set_state (nds_vel (), " acceleration field" , *acc);
1543+ discret_->set_state (nds_vel (), " velocity field" , velocity);
15351544}
15361545
15371546/* ----------------------------------------------------------------------*
0 commit comments