@@ -501,6 +501,8 @@ void Solid::TimeInt::Base::output_step(bool forced_writerestart)
501501 if (dataio_->should_write_restart_for_step (dataglobalstate_->get_step_n ()) or
502502 dataglobalstate_->get_step_n () == Global::Problem::instance ()->restart ())
503503 return ;
504+ // TODO: This if statement can be removed once Solid::ModelEvaluator::Contact::output_step_state
505+ // is removed
504506 // if state already exists, add restart information
505507 if (dataio_->write_results_for_this_step (dataglobalstate_->get_step_n ()))
506508 {
@@ -524,6 +526,8 @@ void Solid::TimeInt::Base::output_step(bool forced_writerestart)
524526 }
525527
526528 // output results (not necessary if restart in same step)
529+ // TODO: This if statement can be removed once Solid::ModelEvaluator::Contact::output_step_state
530+ // is removed
527531 if (dataio_->is_write_state () and
528532 dataio_->write_results_for_this_step (dataglobalstate_->get_step_n ()) and (not datawritten))
529533 {
@@ -655,7 +659,8 @@ void Solid::TimeInt::Base::output_restart(bool& datawritten)
655659 output_ptr->write_node_data (dataio_->is_first_output_of_run ());
656660 dataio_->set_first_output_of_run (false );
657661
658- // add velocity and acceleration if necessary
662+ // add displacement, velocity and acceleration
663+ output_ptr->write_vector (" displacement" , dataglobalstate_->get_dis_n ());
659664 output_ptr->write_vector (" velocity" , dataglobalstate_->get_vel_n ());
660665 output_ptr->write_vector (" acceleration" , dataglobalstate_->get_acc_n ());
661666
@@ -679,6 +684,7 @@ void Solid::TimeInt::Base::add_restart_to_output_state()
679684 std::shared_ptr<Core::IO::DiscretizationWriter> output_ptr = dataio_->get_output_ptr ();
680685
681686 // output of velocity and acceleration
687+ output_ptr->write_vector (" displacement" , dataglobalstate_->get_dis_n ());
682688 output_ptr->write_vector (" velocity" , dataglobalstate_->get_vel_n ());
683689 output_ptr->write_vector (" acceleration" , dataglobalstate_->get_acc_n ());
684690
0 commit comments