Skip to content

Commit

Permalink
some indent width formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
baperry2 committed Dec 28, 2023
1 parent 2cfccf6 commit 2d91670
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions Source/Utils/TerrainMetrics.H
Original file line number Diff line number Diff line change
Expand Up @@ -344,17 +344,17 @@ amrex::Real
Compute_Zrel_AtCellCenter (const int &i, const int &j, const int &k,
const amrex::Array4<const amrex::Real>& z_nd)
{
const amrex::Real z_cc = 0.125*( z_nd(i ,j ,k ) + z_nd(i ,j ,k+1) +
+ z_nd(i+1,j ,k ) + z_nd(i ,j ,k+1)
+ z_nd(i ,j+1,k ) + z_nd(i ,j+1,k+1)
+ z_nd(i+1,j+1,k ) + z_nd(i ,j+1,k+1));
const amrex::Real z_cc = 0.125*( z_nd(i ,j ,k ) + z_nd(i ,j ,k+1) +
+ z_nd(i+1,j ,k ) + z_nd(i ,j ,k+1)
+ z_nd(i ,j+1,k ) + z_nd(i ,j+1,k+1)
+ z_nd(i+1,j+1,k ) + z_nd(i ,j+1,k+1));

// Note: we assume the z_nd array spans from the bottom to top of the domain
// i.e. no domain decomposition across processors in vertical direction
const amrex::Real z0_cc = 0.25*( z_nd(i ,j ,0) + z_nd(i ,j+1,0)
+ z_nd(i+1,j ,0) + z_nd(i+1,j+1,0));
// Note: we assume the z_nd array spans from the bottom to top of the domain
// i.e. no domain decomposition across processors in vertical direction
const amrex::Real z0_cc = 0.25*( z_nd(i ,j ,0) + z_nd(i ,j+1,0)
+ z_nd(i+1,j ,0) + z_nd(i+1,j+1,0));

return (z_cc - z0_cc);
return (z_cc - z0_cc);
}

/**
Expand Down

0 comments on commit 2d91670

Please sign in to comment.