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

Fixing up 6field-simple example in next #2346

Merged
merged 10 commits into from
Jun 15, 2021
Merged

Fixing up 6field-simple example in next #2346

merged 10 commits into from
Jun 15, 2021

Conversation

bendudson
Copy link
Contributor

@bendudson bendudson commented Jun 7, 2021

Now runs for at least a couple of outputs, but I don't know if it's correct (I doubt it is).

Probably ok to merge now. Tests will hopefully be added later

- zonal_{flow, field, bkgd} are booleans, but set to -1 in the input
- low_pass_z is an integer, but read as a bool
Moving comments into doc strings, so they are written to the
BOUT.settings file, and available for other outputs.
Makes intent clearer, and number of arguments is no longer needed
due to macro magic.
Tidying comments e.g. author already in git commit / git blame.
@bendudson bendudson added work in progress Not ready for merging bugfix labels Jun 7, 2021
Caught by new unused options checker.
BOUT++ is now quite strict in ensuring correctness of calculations
involving staggered variables. For now just leave everything as cell
centre.
Was passing a subsection of `[highbeta]`, but input expected
a separate top-level section. Hence input options to `phiSolver` and
`aparSolver` were not being used. Another win for strict input
checking!
@github-actions
Copy link
Contributor

github-actions bot commented Jun 7, 2021

clang-tidy review says "All clean, LGTM! 👍"

Previously the `phiSolver` and `aparSolver` inputs weren't being used,
so defaulted to Dirichlet boundaries.
When using the options, failed with zero pivot.
The cause was setting zero-gradient on both boundaries for the DC
component. Now changed to Dirichlet (inner) and Neumann (outer).
Removing variables which are not used.
@bendudson bendudson removed the work in progress Not ready for merging label Jun 10, 2021
@bendudson bendudson merged commit b359bdb into next Jun 15, 2021
@bendudson bendudson deleted the next-6field-simple branch June 15, 2021 08:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant