Skip to content
Snippets Groups Projects
Verified Commit e4ba4611 authored by MichelJuillard's avatar MichelJuillard Committed by Sébastien Villemot
Browse files

Julia doesn't impose order in initval/endval blocks

parent e2025a38
No related branches found
No related tags found
No related merge requests found
Pipeline #11819 passed
...@@ -189,11 +189,13 @@ void ...@@ -189,11 +189,13 @@ void
InitValStatement::checkPass([[maybe_unused]] ModFileStructure& mod_file_struct, InitValStatement::checkPass([[maybe_unused]] ModFileStructure& mod_file_struct,
[[maybe_unused]] WarningConsolidation& warnings) [[maybe_unused]] WarningConsolidation& warnings)
{ {
/* Julia: doesn't impose the order in intival and endval blocks
if (mod_file_struct.endval_present) if (mod_file_struct.endval_present)
{ {
cerr << "ERROR: an 'initval' block cannot appear after an 'endval' block" << endl; // See #104 cerr << "ERROR: an 'initval' block cannot appear after an 'endval' block" << endl; // See #104
exit(EXIT_FAILURE); exit(EXIT_FAILURE);
} }
*/
set<int> exogs = getUninitializedVariables(SymbolType::exogenous); set<int> exogs = getUninitializedVariables(SymbolType::exogenous);
set<int> endogs = getUninitializedVariables(SymbolType::endogenous); set<int> endogs = getUninitializedVariables(SymbolType::endogenous);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment