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

Build kernel from input.cfg #43

Open
cglosser opened this issue Oct 3, 2019 · 0 comments
Open

Build kernel from input.cfg #43

cglosser opened this issue Oct 3, 2019 · 0 comments

Comments

@cglosser
Copy link
Owner

cglosser commented Oct 3, 2019

Because QuEST is so marvelously generalized across propagator types, we should add the option for users to specify which propagator they'd like to use in the input file. Essentially, the enhancement here is to

  1. Add a shared(? maybe unique) pointer to the Configuration struct. This pointer will hold the kernel we're eventually going to build.
  2. Read the kernel type (as text) from input.cfg
  3. Read the kernel parameters from input.cfg (this is trickier as different kernels have different numbers of parameters)
  4. Assemble the parameters into the appropriate kernel at the end of parse_configs.

Step 4 will be the spot to add a switch statement that switches on the kernel type, but if we do things right that should be the only place we need to maintain such a field.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant