We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c583d56 commit 5924257Copy full SHA for 5924257
src/tools/device.cpp
@@ -526,6 +526,13 @@ void Device::integrate( const double & dt )
526
{
527
const Vector & controlIN = controlSIN.accessCopy();
528
529
+ if (sanityCheck_ && controlIN.hasNaN())
530
+ {
531
+ dgRTLOG () << "Device::integrate: Control has NaN values: " << '\n'
532
+ << controlIN.transpose() << '\n';
533
+ return;
534
+ }
535
+
536
if (controlInputType_==CONTROL_INPUT_NO_INTEGRATION)
537
538
assert(state_.size()==controlIN.size()+6);
0 commit comments