-
Notifications
You must be signed in to change notification settings - Fork 95
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2828 from boutproject/next-options-bool
More consistent parsing of boolean inputs (Breaking change)
- Loading branch information
Showing
16 changed files
with
252 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,9 +3,9 @@ | |
* | ||
* Parses strings containing expressions, returning a tree of generators | ||
* | ||
* Copyright 2010 B.D.Dudson, S.Farley, M.V.Umansky, X.Q.Xu | ||
* Copyright 2010-2024 BOUT++ contributors | ||
* | ||
* Contact: Ben Dudson, [email protected] | ||
* Contact: Ben Dudson, [email protected] | ||
* | ||
* This file is part of BOUT++. | ||
* | ||
|
@@ -24,8 +24,8 @@ | |
* | ||
**************************************************************************/ | ||
|
||
#ifndef __EXPRESSION_PARSER_H__ | ||
#define __EXPRESSION_PARSER_H__ | ||
#ifndef EXPRESSION_PARSER_H | ||
#define EXPRESSION_PARSER_H | ||
|
||
#include "bout/format.hxx" | ||
#include "bout/unused.hxx" | ||
|
@@ -158,7 +158,7 @@ protected: | |
/// Characters which cannot be used in symbols without escaping; | ||
/// all other allowed. In addition, whitespace cannot be used. | ||
/// Adding a binary operator adds its symbol to this string | ||
std::string reserved_chars = "+-*/^[](){},="; | ||
std::string reserved_chars = "+-*/^[](){},=!"; | ||
|
||
private: | ||
std::map<std::string, FieldGeneratorPtr> gen; ///< Generators, addressed by name | ||
|
@@ -260,4 +260,4 @@ private: | |
std::string message; | ||
}; | ||
|
||
#endif // __EXPRESSION_PARSER_H__ | ||
#endif // EXPRESSION_PARSER_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ nout = 10 | |
timestep = 0.1 | ||
|
||
[mesh] | ||
staggergrids = True | ||
staggergrids = true | ||
n = 1 | ||
nx = n+2*MXG | ||
ny = 16 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ MXG = 2 | |
MYG = 2 | ||
|
||
[mesh] | ||
staggergrids = True | ||
staggergrids = true | ||
n = 1 | ||
nx = n+2*MXG | ||
ny = n | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ nout = 10 | |
timestep = 0.1 | ||
|
||
[mesh] | ||
staggergrids = True | ||
staggergrids = true | ||
n = 1 | ||
nx = n+2*MXG | ||
ny = n | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ MXG = 2 | |
MYG = 2 | ||
|
||
[mesh] | ||
staggergrids = True | ||
staggergrids = true | ||
n = 1 | ||
nx = n+2*MXG | ||
ny = n | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.