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

AMR prolong/restriction may not work for rank >=2 variables #825

Closed
pgrete opened this issue Feb 2, 2023 · 3 comments · Fixed by #879
Closed

AMR prolong/restriction may not work for rank >=2 variables #825

pgrete opened this issue Feb 2, 2023 · 3 comments · Fixed by #879
Labels
bug Something isn't working

Comments

@pgrete
Copy link
Collaborator

pgrete commented Feb 2, 2023

Looking at the final changes in #818 I noticed

int nu = cc_var->GetDim(4) - 1;

On first sight, this looks like it may be an issue for rank >= 2 variables as the data is not packed but directly accessed.
Do you agree @Yurlungur @lroberts36 @pdmullen ?

This probably also applies to

nx4_tot += pvar_cc->GetDim(4);

int nu = pvar_cc->GetDim(4) - 1;

int nu = cc_var->GetDim(4) - 1;

int nu = cc_var->GetDim(4) - 1;

int nu = cc_var->GetDim(4) - 1;

int nu = pvar_cc->GetDim(4) - 1;

int nu = cc_var->GetDim(4) - 1;

int nu = cc_var->GetDim(4) - 1;

@pgrete pgrete added the bug Something isn't working label Feb 2, 2023
@lroberts36
Copy link
Collaborator

Yes, I agree. I noticed this issue as well when I was making changes in #818. I started thinking about how to fix it and then got sidetracked. @pdmullen: Are you using tensor variables in your radiation solver?

@Yurlungur
Copy link
Collaborator

Yeah this is descended from the original design. Definitely needs an update.

@pdmullen
Copy link
Collaborator

pdmullen commented Feb 2, 2023

Yes, I agree. I noticed this issue as well when I was making changes in #818. I started thinking about how to fix it and then got sidetracked. @pdmullen: Are you using tensor variables in your radiation solver?

I am not using tensorial variables.

@lroberts36 lroberts36 linked a pull request May 24, 2023 that will close this issue
7 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants