Skip to content

Integral zmin/zmax never initialized (copy-paste of ymin/ymax) #1196

@sbryngelson

Description

@sbryngelson

Bug

In `src/simulation/m_global_parameters.fpp`, the integral region z-bounds initialization copies the y-bounds instead of the z-bounds:

```fortran
integral(i)%ymin = ... ! should be integral(i)%zmin
integral(i)%ymax = ... ! should be integral(i)%zmax
```

File: `src/simulation/m_global_parameters.fpp`, lines 817-818

Impact: Integral regions in 3D simulations have uninitialized z-bounds, causing incorrect volume integration bounds. The y-bounds are written twice while z-bounds retain default values.

Severity: Critical — integral region z-bounds are garbage in 3D.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working or doesn't seem right

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions