Skip to content

ROM k-eigenvalue implementation#11

Open
quincy-huhn98 wants to merge 3 commits into
Open-Sn:mainfrom
quincy-huhn98:keff
Open

ROM k-eigenvalue implementation#11
quincy-huhn98 wants to merge 3 commits into
Open-Sn:mainfrom
quincy-huhn98:keff

Conversation

@quincy-huhn98

Copy link
Copy Markdown
Contributor

Contains my k-eigenvalue implementation as well as READMEs for each of the subfolders. I included an additional example in the workflow that runs a k-eigenvalue problem.

Comment thread ROM/examples/1dk/H2O_mg_base.xs
Comment thread ROM/examples/1dk/README.md Outdated
Comment thread ROM/src/rom/pi_keigen_rom_solver.cc Outdated
* Each group basis is read from the corresponding libROM basis file and
* stored in \c Ugs_. The reduced dimension is inferred from the first
* basis and stored in \c rom_rank.
*/

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doxygen usually goes into the header file, not the .cc file.

But I see other functions have doxygen here, maybe that should be unified within the app in a separate PR.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will have one or two more PRs to finish merging in all of my work I will move them in a future PR

@wdhawkins wdhawkins left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you haven't already, please run clang-tidy and flake8 on your changes.

Comment thread ROM/src/rom/rom_problem.cc Outdated
Comment thread ROM/src/rom/rom_problem.cc
Comment thread ROM/python/plotting.py Outdated
errors = []
for g in range(G):
rom_vals[g] /= np.linalg.norm(rom_vals[g])
rom_vals = np.abs(rom_vals)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It might be better to use a local array here instead of modifying rom_vals while you're looping over it.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wanted it to be modified so the later error calculation is done on the normalized flux. I have seperated it out to make it more clear that I am normalizing then plotting.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants