preprocessor: allow comments in parallel config file. closes #1194

time-shift
Houtan Bastani 2016-05-20 17:22:26 +02:00
parent 2ce34e3207
commit 5fcd502f3c
2 changed files with 10 additions and 4 deletions

View File

@ -1,5 +1,5 @@
/*
* Copyright (C) 2010-2015 Dynare Team
* Copyright (C) 2010-2016 Dynare Team
*
* This file is part of Dynare.
*
@ -175,7 +175,7 @@ ConfigFile::getConfigFileInfo(const string &config_file)
string line;
getline(*configFile, line);
trim(line);
if (line.empty())
if (line.empty() || !line.compare(0, 1, "#"))
continue;
if (!line.compare("[node]")

View File

@ -1,14 +1,20 @@
#comment
[cluster]
Name = Local
# comment
#
Members = n1
[hooks]
GlobalInitFile = ./init.m
# comment
[node]
Name = n1
ComputerName = localhost
CPUnbr = [1:8]
CPUnbr = [1:2]
[paths]
Include = folder
# comment
Include = folder
#comment