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 d1137ee commit cfdabb0Copy full SHA for cfdabb0
src/output.cpp
@@ -87,7 +87,14 @@ bool output(const Neutrals &neutrals,
87
88
for (int iOutput = 0; iOutput < nOutputs; iOutput++) {
89
90
- if (time.check_time_gate(input.get_dt_output(iOutput))) {
+ // make sure the output dt is set correctly. Otherwise these errors aren't caught correctly.
91
+ precision_t dt_output = input.get_dt_output(iOutput);
92
+ if (dt_output == 0.0){
93
+ report.exit(function);
94
+ return false;
95
+ }
96
+
97
+ if (time.check_time_gate(dt_output)) {
98
99
// ------------------------------------------------------------
100
// Store time in all of the files:
0 commit comments