Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ParmParse: Option to disable multi-line support #3433

Merged

Commits on Jul 20, 2023

  1. 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.
    WeiqunZhang committed Jul 20, 2023
    Configuration menu
    Copy the full SHA
    412eb46 View commit details
    Browse the repository at this point in the history