Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove unused variables from tutorials #956

Merged
merged 1 commit into from
Jun 1, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ subroutine get_face_velocity(level, time, &
real(amrex_real), intent(in) :: dx(3), prob_lo(3)

integer :: i, j, k, plo(2), phi(2)
real(amrex_real) :: x, y, z
real(amrex_real) :: x, y
real(amrex_real), pointer, contiguous :: psi(:,:)
real(amrex_real), parameter :: M_PI = 3.141592653589793238462643383279502884197d0

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ subroutine get_face_velocity(level, time, &
double precision, intent(in) :: dx(3), prob_lo(3)

integer :: i, j, k, plo(2), phi(2)
double precision :: x, y, z
double precision :: x, y
double precision, pointer, contiguous :: psi(:,:)
double precision, parameter :: M_PI = 3.141592653589793238462643383279502884197d0

Expand Down
4 changes: 0 additions & 4 deletions Tutorials/Basic/HeatEquation_EX1_CF/Source/advance.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,6 @@ void advance (MultiFab& phi_old,
// includes periodic domain boundaries
phi_old.FillBoundary(geom.periodicity());

int Ncomp = phi_old.nComp();
int ng_p = phi_old.nGrow();
int ng_f = flux[0].nGrow();

const Real* dx = geom.CellSize();

//
Expand Down
4 changes: 0 additions & 4 deletions Tutorials/Basic/HeatEquation_EX2_CF/Source/advance.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,6 @@ void advance (MultiFab& phi_old,
// Fill non-periodic physical boundaries
FillDomainBoundary(phi_old, geom, bc);

int Ncomp = phi_old.nComp();
int ng_p = phi_old.nGrow();
int ng_f = flux[0].nGrow();

const Real* dx = geom.CellSize();

//
Expand Down
1 change: 0 additions & 1 deletion Tutorials/LinearSolvers/MultiComponent/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,6 @@ int main (int argc, char* argv[])
bx.grow(1); // Expand to cover first layer of ghost nodes
bx = bx & domain; // Take intersection of box and the problem domain

Array4<Real> const& SOL = solution[ilev].array(mfi);
Array4<Real> const& RHS = rhs[ilev].array(mfi);
for (int n = 0; n < op.ncomp; n++)
ParallelFor (bx,[=] AMREX_GPU_DEVICE(int i, int j, int k) {
Expand Down