Skip to content

[Bug]: Negative glon will not set E-field #129

Open

Description

@ljlamarche

What happened?

In config.nml, glon in the setup section must be between 0 - 360 degrees. Inputing a negative value (as when using the convention that longitude ranges -180 - 180 degrees) results in any electric fields specified in the config file not being applied to the simulation. The simulation will run without error, but with zero electric field.

Relevant log output

Activity

  1. changed the title [-][Bug]: Negative glow will not set E-field[/-] [+][Bug]: Negative glon will not set E-field[/+] on Jul 3, 2025
  2. mattzett commented on Jul 3, 2025

    @mattzett
    Member

    Somehow there is an inconsistency in the coordinate conversion between the python and compiled code that is leading the compiled code to think the domain is outside the provided electric field input data grid and thus assigns it zero. I'm not immediately seeing where the issue is but I'll track it down at some point in the near future.

  3. mattzett commented on Jul 3, 2025

    @mattzett
    Member

    At any rate this is definitely something that should be fixed; in the meantime the workaround is to use 0-360 degrees for longitude as this seems to work fine as far as I can tell.

  4. self-assigned this
    on Jul 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions