Skip to content

Commit

Permalink
Updated Init.cpp to incorporate crit_nucleus simulations
Browse files Browse the repository at this point in the history
  • Loading branch information
sreeharipd committed Jan 24, 2025
1 parent be88b5c commit 5128d99
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions exec/multispec/Init.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,7 @@ void InitRhoUmac(std::array< MultiFab, AMREX_SPACEDIM >& umac,
c=c_init_1(:) inside, c=c_init_2(:) outside
can be discontinous or smooth depending on smoothing_width
*/
Real rad = L[0] / 4.;
rad = radius_cyl;
Real rad = radius_cyl;

amrex::ParallelFor(bx, [=] AMREX_GPU_DEVICE (int i, int j, int k) noexcept
{
Expand All @@ -61,11 +60,11 @@ void InitRhoUmac(std::array< MultiFab, AMREX_SPACEDIM >& umac,
// discontinuous interface
if (r < rad) {
for (int n=0; n<nspecies; ++n) {
c(i,j,k,n) = c_init_1[n];
c(i,j,k,n) = c_init_2[n];
}
} else {
for (int n=0; n<nspecies; ++n) {
c(i,j,k,n) = c_init_2[n];
c(i,j,k,n) = c_init_1[n];
}
}

Expand Down

0 comments on commit 5128d99

Please sign in to comment.