Skip to content

Chemical mask implementation - #504

Open
SreejithNREL wants to merge 8 commits into
Pele-Suite:developmentfrom
SreejithNREL:Chem_Mask
Open

Chemical mask implementation#504
SreejithNREL wants to merge 8 commits into
Pele-Suite:developmentfrom
SreejithNREL:Chem_Mask

Conversation

@SreejithNREL

Copy link
Copy Markdown
Collaborator

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.

@marchdf

marchdf commented May 28, 2024

Copy link
Copy Markdown
Contributor

Let's ignore codespell for now. We need to fix that in a different PR.

@hsitaram hsitaram 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.

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,

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.

the mask should probably come in as amrex::Array4<const int> const&

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,

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.

same here.

rYsrc_ext[sp] = rYsrc_in(i, j, k, sp);
}

int nsteps = 0;

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.

did anything happen here beyond just a big indent because of the if condition?

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