From 554d76a707e476bc8c5b83701c7b9ac661e68fdc Mon Sep 17 00:00:00 2001 From: Amrita Goswami Date: Tue, 30 Apr 2024 22:25:08 +0000 Subject: [PATCH] config_parser: Fixed bug in start_numbering_from The output setting, `start_numbering_from` has permissible values from 0 and greater than 0. The check in validate_settings was set to greater than 0 by mistake. Has been changed to greater than or equal to 0. --- src/config_parser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/config_parser.cpp b/src/config_parser.cpp index f0466ef..57e384f 100644 --- a/src/config_parser.cpp +++ b/src/config_parser.cpp @@ -201,7 +201,7 @@ void validate_settings( const SimulationOptions & options ) // @TODO: Check that start_output is less than the max_iterations? check( name_and_var( options.output_settings.start_output ), g_zero ); - check( name_and_var( options.output_settings.start_numbering_from ), g_zero ); + check( name_and_var( options.output_settings.start_numbering_from ), geq_zero ); auto validate_activity = [&]( const auto & model_settings ) {