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

changing scales in output for vector fields causes simulations to crash #287

Open
jsoishi opened this issue Mar 13, 2024 · 0 comments
Open
Assignees
Labels
bug Something isn't working

Comments

@jsoishi
Copy link
Member

jsoishi commented Mar 13, 2024

If an analysis task including a vector field scaled to greater than 1,

hires=True
if hires:
    logger.info("saving high resolution data")
    hires = solver.evaluator.add_file_handler('hires', sim_dt=0.25, max_writes=50)
    hires.add_task(u, name='u_scales', scales=4)

the simulation will crash immediately after the first write. This is true even if it is the only task in the file handler. Scalar fields do not have this problem:

hires.add_task(b, name='b_scales', scales=4)

works fine.

For a minimum failing example, add the lines above to the rayleigh_benard.py test problem. This problem occurs in both parallel and serial.

I'm fairly certain this is a regression since mid-November 2023, but I have not had a chance to go back and bisect the code.

@jsoishi jsoishi self-assigned this Mar 13, 2024
@jsoishi jsoishi added the bug Something isn't working label Mar 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant