-
Notifications
You must be signed in to change notification settings - Fork 54
Chemical mask implementation #504
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
base: development
Are you sure you want to change the base?
Conversation
Checking if formatting passes
Let's ignore codespell for now. We need to fix that in a different PR. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am a bit worried though, shouldn't the states be updated with the adv/diffusion sources * dt before being sent back to the application codes (LM/C)?
amrex::Array4<amrex::Real> const& rhoE, | ||
amrex::Array4<amrex::Real> const& frcEExt, | ||
amrex::Array4<amrex::Real> const& FC_in, | ||
amrex::Array4<int> const& mask, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the mask should probably come in as amrex::Array4<const int> const&
@@ -135,7 +135,7 @@ ReactorArkode::react( | |||
amrex::Array4<amrex::Real> const& rEner_in, | |||
amrex::Array4<amrex::Real> const& rEner_src_in, | |||
amrex::Array4<amrex::Real> const& FC_in, | |||
amrex::Array4<int> const& /*mask*/, | |||
amrex::Array4<int> const& mask, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same here.
@@ -246,72 +246,77 @@ ReactorRK64::react( | |||
rYsrc_ext[sp] = rYsrc_in(i, j, k, sp); | |||
} | |||
|
|||
int nsteps = 0; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
did anything happen here beyond just a big indent because of the if condition?
Chemistry mask implementation.
Updated Arkode, Cvode, RK64, and BDF chem integrators to mask chemical reactions inside a user-specified box region. Verified code change on PMF case for Clang serial, MPI, CUDA, and HIP.