File tree Expand file tree Collapse file tree 2 files changed +14
-8
lines changed
applications/GeoMechanicsApplication/custom_strategies/schemes Expand file tree Collapse file tree 2 files changed +14
-8
lines changed Original file line number Diff line number Diff line change @@ -192,22 +192,21 @@ class GeneralizedNewmarkScheme : public GeoMechanicsTimeIntegrationScheme<TSpars
192
192
}
193
193
}
194
194
195
- private:
196
195
void PredictVariables (const ModelPart& rModelPart)
197
196
{
198
197
block_for_each (rModelPart.Nodes (), [this ](Node& rNode) { PredictVariablesForNode (rNode); });
199
198
}
200
199
201
- void PredictVariablesForNode (Node& rNode)
200
+ virtual void PredictVariablesForNode (Node& rNode)
202
201
{
203
- for (const auto & r_first_order_scalar_variable : this ->GetFirstOrderScalarVariables ()) {
204
- if (!rNode.SolutionStepsDataHas (r_first_order_scalar_variable.instance )) continue ;
205
- PredictFirstOrderScalarVariableForNode (rNode, r_first_order_scalar_variable);
206
- }
207
-
208
202
for (const auto & r_second_order_vector_variable : this ->GetSecondOrderVectorVariables ()) {
209
203
if (!rNode.SolutionStepsDataHas (r_second_order_vector_variable.instance )) continue ;
210
- PredictSecondOrderVectorVariableForNode (rNode, r_second_order_vector_variable);
204
+ this ->PredictSecondOrderVectorVariableForNode (rNode, r_second_order_vector_variable);
205
+ }
206
+
207
+ for (const auto & r_first_order_scalar_variable : this ->GetFirstOrderScalarVariables ()) {
208
+ if (!rNode.SolutionStepsDataHas (r_first_order_scalar_variable.instance )) continue ;
209
+ this ->PredictFirstOrderScalarVariableForNode (rNode, r_first_order_scalar_variable);
211
210
}
212
211
}
213
212
Original file line number Diff line number Diff line change @@ -54,6 +54,13 @@ class NewmarkQuasistaticUPwScheme : public GeneralizedNewmarkScheme<TSparseSpace
54
54
KRATOS_CATCH (" " )
55
55
}
56
56
57
+ void PredictVariablesForNode (Node& rNode) override
58
+ {
59
+ for (const auto & r_first_order_scalar_variable : this ->GetFirstOrderScalarVariables ()) {
60
+ if (!rNode.SolutionStepsDataHas (r_first_order_scalar_variable.instance )) continue ;
61
+ this ->PredictFirstOrderScalarVariableForNode (rNode, r_first_order_scalar_variable);
62
+ }
63
+ }
57
64
}; // Class NewmarkQuasistaticUPwScheme
58
65
59
66
} // namespace Kratos
You can’t perform that action at this time.
0 commit comments