diff --git a/applications/StructuralMechanicsApplication/custom_processes/set_moving_load_process.cpp b/applications/StructuralMechanicsApplication/custom_processes/set_moving_load_process.cpp index 293e285afac8..3e306ed86309 100644 --- a/applications/StructuralMechanicsApplication/custom_processes/set_moving_load_process.cpp +++ b/applications/StructuralMechanicsApplication/custom_processes/set_moving_load_process.cpp @@ -179,22 +179,19 @@ std::vector SetMovingLoadProcess::SortConditions(ModelPart::Condition sorted_conditions.push_back(r_cond); visited_indices.push_back(i); } - } - else { + } else { // sort nodes in condition, such that new node is connected to previous condition IndexType prev_id; if (is_cond_reversed) { prev_id = node_id_vector[0]; - } - else { + } else { prev_id = node_id_vector[1]; } if (prev_id != r_geom.Points()[0].Id()) { is_cond_reversed = true; mIsCondReversedVector.push_back(is_cond_reversed); - } - else { + } else { is_cond_reversed = false; mIsCondReversedVector.push_back(is_cond_reversed); }