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

Fix DiagFramePlane diagnostic #190

Merged
merged 5 commits into from
Mar 28, 2023
Merged

Fix DiagFramePlane diagnostic #190

merged 5 commits into from
Mar 28, 2023

Conversation

esclapez
Copy link
Collaborator

No description provided.

@esclapez esclapez requested a review from baperry2 March 27, 2023 18:06
@baperry2
Copy link
Collaborator

Nice. I ran into the issue with ghost cells on the Sydney flame case and worked around it by turning off interpolation. I'll test this fix on that case to make sure it works with interpolation now.

One more thing with diagnostics that I ran into is that if there is a derived variable with multiple components, you have to call out the individual component names rather than the derive name. I was going to look into relaxing that requirement.

@esclapez
Copy link
Collaborator Author

I've been looking at this, and it might be tricky to get the diagnostics to interact with the derived because the intent was to have the diagnostics be as separate as possible in order to move them to PeleAnalysis at some point. I'll try something.

Copy link
Collaborator

@baperry2 baperry2 left a comment

Choose a reason for hiding this comment

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

I verified that this fixes the issue I was having with interpolation for dumping planes.

@baperry2
Copy link
Collaborator

I've been looking at this, and it might be tricky to get the diagnostics to interact with the derived because the intent was to have the diagnostics be as separate as possible in order to move them to PeleAnalysis at some point. I'll try something.

It's not a big issue because one can simply list out all the components if desired. But it would be good to throw an error if someone requests a multi-component derive rather than the individual component, because right now that case is not handled properly.

} else {
if (derive_lst.canDerive(v)) {
const PeleLMDeriveRec* rec = derive_lst.get(v);
if (rec->numDerive() > 1) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

This will capture when people request the individual derive components as well. The condition rec->variableComp(v) < 0 should work to throw an error for the full multi-component derive but not the individual components.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Indeed ! Good catch !

@esclapez esclapez merged commit 69112ec into development Mar 28, 2023
@esclapez esclapez deleted the fix2DSlices branch March 28, 2023 01:18
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.

2 participants