Skip to content

Commit

Permalink
Cleanup whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
ewquon committed Sep 17, 2023
1 parent 597910e commit 31a5086
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Exec/DevTests/MiguelDev/prob.H
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ struct ProbParm : ProbParmDefaults {
// rayleigh damping
amrex::Real dampcoef = 0.2; // inverse time scale [1/s]
amrex::Real zdamp = 500.0; // damping depth [m] from model top

}; // namespace ProbParm

class Problem : public ProblemBase
Expand Down
7 changes: 3 additions & 4 deletions Exec/DevTests/MiguelDev/prob.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -86,14 +86,14 @@ Problem::init_custom_pert(
{
const Real* prob_lo = geomdata.ProbLo();
const Real* dx = geomdata.CellSize();

const Real x = prob_lo[0] + i * dx[0]; // face center
const Real y = prob_lo[1] + (j + 0.5) * dx[1]; // cell center
const Real z = prob_lo[2] + (k + 0.5) * dx[2]; // cell center

// Zero-out the velocity
x_vel(i, j, k) = 0;

if (z > z_0) {
x_vel(i, j, k) = 0.0;
} else {
Expand Down Expand Up @@ -142,11 +142,10 @@ Problem::init_custom_pert(
const Real thet_angl = std::atan2(y-Yc,x-Xc);
y_vel(i, j, k) = std::abs(v_tang)*std::cos(thet_angl);
}
}
}

});


}

void
Expand Down

0 comments on commit 31a5086

Please sign in to comment.