Skip to content

Commit 6a98ddd

Browse files
committed
Small beauty
1 parent db0338a commit 6a98ddd

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

src/structure_new/src/4C_structure_new_timint_base.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -655,7 +655,8 @@ void Solid::TimeInt::Base::output_restart(bool& datawritten)
655655
output_ptr->write_node_data(dataio_->is_first_output_of_run());
656656
dataio_->set_first_output_of_run(false);
657657

658-
// add velocity and acceleration if necessary
658+
// add displacement, velocity and acceleration
659+
output_ptr->write_vector("displacement", dataglobalstate_->get_dis_n());
659660
output_ptr->write_vector("velocity", dataglobalstate_->get_vel_n());
660661
output_ptr->write_vector("acceleration", dataglobalstate_->get_acc_n());
661662

src/structure_new/src/model_evaluator/4C_structure_new_model_evaluator_structure.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1378,10 +1378,6 @@ void Solid::ModelEvaluator::Structure::write_restart(
13781378
// write forces
13791379
iowriter.write_vector("fstructure_old", global_state().get_fstructure_old());
13801380
iowriter.write_vector("fint", global_state().get_fint_n());
1381-
1382-
if (forced_writerestart) return;
1383-
1384-
iowriter.write_vector("displacement", global_state().get_dis_n());
13851381
}
13861382

13871383
/*----------------------------------------------------------------------------*

0 commit comments

Comments
 (0)