Skip to content

Commit

Permalink
Clean up whitespace and tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
cgilet committed Oct 2, 2023
1 parent 89c716a commit 13f2f4c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/redistribution/hydro_state_utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ Redistribution::MakeStateRedistUtils ( Box const& bx,
int r = i+imap[itracker(i,j,k,i_nbor)];
int s = j+jmap[itracker(i,j,k,i_nbor)];
int t = k+kmap[itracker(i,j,k,i_nbor)];

// maybe better to check flag here?
if ( vfrac_old(r,s,t) == 0. )
{
Expand Down
18 changes: 9 additions & 9 deletions test_2d_moving/test_conservation/prob_init_fluid.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ void incflo::prob_init_fluid (int lev)
ld.velocity.setVal(m_ic_w, 2, 1););

if (m_ntrac > 0) {
ld.tracer.setVal(0.0);
ld.tracer_o.setVal(0.0);
ld.tracer.setVal(1.0);
ld.tracer_o.setVal(1.0);
}

amrex::Print() <<" TYPE " << m_probtype << std::endl;
Expand All @@ -35,13 +35,13 @@ void incflo::prob_init_fluid (int lev)
Array4<Real> den_arr = ld.density.array(mfi);
amrex::ParallelFor(vbx, [=] AMREX_GPU_DEVICE (int i, int j, int k) noexcept
{
den_arr(i,j,k) = 1.0 + 0.1 * static_cast<Real>(23-i);
if ( den_arr(i,j,k) < 1.0 ){
den_arr(i,j,k) = 1.0;
}
if ( i < 9 ) {
den_arr(i,j,k) = 2.45; //1.0 + 0.1 * static_cast<Real>(23-9);
}
den_arr(i,j,k) = 1.0 + 0.1 * static_cast<Real>(23-(i/Real(4.)));
if ( den_arr(i,j,k) < 1.0 ){
den_arr(i,j,k) = 1.0;
}
if ( i < 9*4 ) {
den_arr(i,j,k) = 2.45; //1.0 + 0.1 * static_cast<Real>(23-9);
}
if (j == 3) amrex::Print() << "DEN " << i << " " << den_arr(i,j,k) << std::endl;
});

Expand Down

0 comments on commit 13f2f4c

Please sign in to comment.