Detect if an extended_path statement is present

Unused for the time being
time-shift
Sébastien Villemot 2013-04-25 18:07:32 +02:00
parent 35e77136c3
commit 50f2d00ad8
3 changed files with 7 additions and 2 deletions

View File

@ -2421,6 +2421,8 @@ ExtendedPathStatement::ExtendedPathStatement(const OptionsList &options_list_arg
void
ExtendedPathStatement::checkPass(ModFileStructure &mod_file_struct, WarningConsolidation &warnings)
{
mod_file_struct.extended_path_present = true;
if (options_list.num_options.find("periods") == options_list.num_options.end())
{
cerr << "ERROR: the 'periods' option of 'extended_path' is mandatory" << endl;

View File

@ -1,5 +1,5 @@
/*
* Copyright (C) 2006-2012 Dynare Team
* Copyright (C) 2006-2013 Dynare Team
*
* This file is part of Dynare.
*
@ -31,6 +31,7 @@ ModFileStructure::ModFileStructure() :
ramsey_policy_present(false),
discretionary_policy_present(false),
planner_objective_present(false),
extended_path_present(false),
order_option(0),
bvar_present(false),
svar_identification_present(false),

View File

@ -1,5 +1,5 @@
/*
* Copyright (C) 2006-2012 Dynare Team
* Copyright (C) 2006-2013 Dynare Team
*
* This file is part of Dynare.
*
@ -55,6 +55,8 @@ public:
bool discretionary_policy_present;
//! Whether a planner_objective statement is present
bool planner_objective_present;
//! Whether an extended_path statement is present
bool extended_path_present;
//! The value of the "order" option of stoch_simul, estimation, osr, ramsey_policy
//! Derivation order
/*! First initialized to zero. If user sets order option somewhere in the MOD file, it will be equal to the maximum of order options. Otherwise will default to 2 */