-
Notifications
You must be signed in to change notification settings - Fork 4
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
Refactor namelist inputs for coordinates and other inputs #241
Comments
@johnomotani Comments on #181 (comment). The structure below is how we might hope to set the coordinate data.
However, there are some complications that I will note in case it is helpful. At the moment we have an intermediate input_struct for coordinate data that we fill from .toml data in When making other refactors from flat .toml to namelists, I endevoured to use @johnomotani's method of using
My comment for reading the coordinate data is therefore that we might want to write the function to read coordinate data to the intermediate (but not mutable) struct
grid_input struct around the code as is done at present.
|
Yeah, I ran into this - got around it by making a function that reads the options and puts them in a NamedTuple. That function can be called inside |
So I guess that your function creates a NamedTuple with the MPI communicator by default to be NULL, but otherwise sets up to the MPI using the existing functions? Does that mean that you have to create all the coordinate NameTuples at once? Is function general enough that you can create coordinates with names that don't already exist in the moment kinetics source? (like here
|
Should we prioritise refactoring the coordinate, evolve_moments, drive, and remaining collisions inputs to use a namelist format?
This may have the benefit of reducing clutter in
moment_kinetics_input.jl
, as well an making the specification of the defaults unique.Is there any reason for why we should not refactor the input structure for these inputs?
@johnomotani @LucasMontoya4
The text was updated successfully, but these errors were encountered: