forked from AMReX-Codes/amrex
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ParmParse: Option to disable multi-line support
By default, ParmParse supports multi-line values. For example, ``` plot_vars = dens vx vy vx energy entropy ``` This can be disabled by calling setMultiLineSupport(false) before amrex::Initialize(). This can avoid errors in inputs like, ``` algo.current_deposition = direct # Enable galilean psatd.use_default_v_galilean # Unfortunately we forgot = 1 ``` With multi-line support, this is unfortunately equivalent to ``` algo.current_deposition = direct psatd.use_default_v_galilean ``` With multi-line support disabled, it will abort. Note that even after multi-line support is disabled, one is still allowed to have ``` f = "x + y + sin(z)" ``` because here what's inside the pair of double quotes is considered a single string.
- Loading branch information
1 parent
dbfa3b0
commit 6216179
Showing
2 changed files
with
98 additions
and
22 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