diff options
author | 2019-09-11 10:06:14 -0700 | |
---|---|---|
committer | 2019-09-11 10:12:00 -0700 | |
commit | fd848331f2fd6af8c56a0027cc5f088286e347c4 (patch) | |
tree | 9f81ea5e8475ab5bd1e769d7865fc7fd492d06eb /Source/Filter/Filter.cpp | |
parent | f182366aaf66a770715b144ac0a760a998f59ed4 (diff) | |
download | WarpX-fd848331f2fd6af8c56a0027cc5f088286e347c4.tar.gz WarpX-fd848331f2fd6af8c56a0027cc5f088286e347c4.tar.zst WarpX-fd848331f2fd6af8c56a0027cc5f088286e347c4.zip |
Source & Tools: No EOL Whitespaces
End-of-line (EOL) whitespaces are verbose and increase diffs and
merge conflicts over time.
Cleaned them up for the `Source/`, `Examples/` and `Tools/` directory
with the following bash one-liner:
```bash
find . -type f -not -path './.git*' \
-exec sed -i 's/[[:blank:]]*$//' {} \;
```
Committed as generic user so git does not credit the many lines
to me:
```bash
GIT_AUTHOR_NAME="Tools" GIT_AUTHOR_EMAIL="warpx@lbl.gov" \
git commit
```
Diffstat (limited to 'Source/Filter/Filter.cpp')
-rw-r--r-- | Source/Filter/Filter.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Source/Filter/Filter.cpp b/Source/Filter/Filter.cpp index f8a2dd6c2..5d3c14c14 100644 --- a/Source/Filter/Filter.cpp +++ b/Source/Filter/Filter.cpp @@ -59,7 +59,7 @@ Filter::ApplyStencil (MultiFab& dstmf, const MultiFab& srcmf, int scomp, int dco * \param ncomp Number of components on which the filter is applied. */ void -Filter::ApplyStencil (FArrayBox& dstfab, const FArrayBox& srcfab, +Filter::ApplyStencil (FArrayBox& dstfab, const FArrayBox& srcfab, const Box& tbx, int scomp, int dcomp, int ncomp) { BL_PROFILE("BilinearFilter::ApplyStencil(FArrayBox)"); @@ -106,11 +106,11 @@ void Filter::DoFilter (const Box& tbx, for (int iz=0; iz < slen_local.z; ++iz){ for (int iy=0; iy < slen_local.y; ++iy){ for (int ix=0; ix < slen_local.x; ++ix){ -#if (AMREX_SPACEDIM == 3) +#if (AMREX_SPACEDIM == 3) Real sss = sx[ix]*sy[iy]*sz[iz]; #else Real sss = sx[ix]*sz[iy]; -#endif +#endif #if (AMREX_SPACEDIM == 3) d += sss*( tmp(i-ix,j-iy,k-iz,scomp+n) +tmp(i+ix,j-iy,k-iz,scomp+n) @@ -179,7 +179,7 @@ Filter::ApplyStencil (MultiFab& dstmf, const MultiFab& srcmf, int scomp, int dco * \param ncomp Number of components on which the filter is applied. */ void -Filter::ApplyStencil (FArrayBox& dstfab, const FArrayBox& srcfab, +Filter::ApplyStencil (FArrayBox& dstfab, const FArrayBox& srcfab, const Box& tbx, int scomp, int dcomp, int ncomp) { BL_PROFILE("BilinearFilter::ApplyStencil(FArrayBox)"); @@ -220,7 +220,7 @@ void Filter::DoFilter (const Box& tbx, for (int iz=0; iz < slen.z; ++iz){ for (int iy=0; iy < slen.y; ++iy){ for (int ix=0; ix < slen.x; ++ix){ -#if (AMREX_SPACEDIM == 3) +#if (AMREX_SPACEDIM == 3) Real sss = sx[ix]*sy[iy]*sz[iz]; #else Real sss = sx[ix]*sz[iy]; |