Skip to content

Issue with box refinement #2911

@rthedin

Description

@rthedin

I'm running a few tests with ERF, trying very simple features to get familiar with it. So my potential bug report here is very simple.

I'm have periodic domain in x and y and was trying to have a box refinement region touching the xlo and ylo, but not xhi and yhi. If I try that, I get the following error within a few time steps:

amrex::Abort::63::Bad theta in check_for_negative_theta !!!

The error is gone if my refinement spans the entire x and y extents (that is, touching all four side boundaries). I also get the same fatal error when the refinement is simply not touching any periodic boundary (but touching zhi).

I'm attaching a reproducible MWE. I'm using the latest version as of this morning (6d41455).

PS: I believe there is a mistake in the documentation for the refinements. The following line (and a few others in the same page) should read amr.ref_ratio_vec.

amr.ref_ratio = 2 2 2

input_sounding.txt
mwe_theta_issue.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions