Fixed logic.

Value passed to steady_state_growth was not acknowledge.
issue#70
Stéphane Adjemian (Charybdis) 2020-06-30 14:09:28 +02:00
parent feee0ffa12
commit 0f268ce70c
Signed by: stepan
GPG Key ID: 295C1FE89E17EB3C
1 changed files with 2 additions and 1 deletions

View File

@ -2739,7 +2739,8 @@ ParsingDriver::pac_model()
&& (pac_steady_state_growth_rate_number >= 0 || pac_steady_state_growth_rate_symb_id >= 0))
warning("If growth option is constant, steady_state_growth is ignored");
else if (pac_growth && !pac_growth_is_param
&& (pac_steady_state_growth_rate_number < 0 || pac_steady_state_growth_rate_symb_id < 0))
&& pac_steady_state_growth_rate_number < 0
&& pac_steady_state_growth_rate_symb_id < 0)
error("The steady state growth rate of the target must be provided (steady_state_growth option) if option growth is not constant");
if (pac_steady_state_growth_rate_symb_id >= 0