Skip to content

Commit

Permalink
config_parser: Fixed bug in start_numbering_from
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
amritagos committed Apr 30, 2024
1 parent 047e1bf commit 554d76a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/config_parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 )
{
Expand Down

0 comments on commit 554d76a

Please sign in to comment.