preprocessor: allow comments in parallel config file. closes #1194
parent
2ce34e3207
commit
5fcd502f3c
|
@ -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]")
|
||||
|
|
|
@ -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
|
Loading…
Reference in New Issue