We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cfe52f5 commit 36305d2Copy full SHA for 36305d2
1 file changed
src/reduced_basis/rb_eim_construction.C
@@ -684,7 +684,7 @@ void RBEIMConstruction::apply_normalization_to_solution_snapshots()
684
// error tolerance in the Greedy training, and the L2-norm-scaled value of
685
// _max_abs_value_in_training_set that we obtain here should be sufficient
686
// for that purpose.
687
- if (i == _max_abs_value_in_training_set_index)
+ if ((i == _max_abs_value_in_training_set_index) && (norm_val > 0.))
688
_max_abs_value_in_training_set /= norm_val;
689
}
690
0 commit comments