Skip to content

Commit

Permalink
fix errors not filling mixing coeffs
Browse files Browse the repository at this point in the history
  • Loading branch information
hklion committed Dec 19, 2023
1 parent 50a5e13 commit 9927344
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Exec/Advection/inputs
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
max_step = 10
stop_time = 30000.0

amrex.fpe_trap_invalid = 0
amrex.fpe_trap_invalid = 1

fabarray.mfiter_tile_size = 16 16 1024
fabarray.mfiter_tile_size = 1024 1024 1024

# PROBLEM SIZE & GEOMETRY
geometry.prob_lo = 0. 0. -150.
Expand Down
4 changes: 3 additions & 1 deletion Exec/DoublyPeriodic/prob.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,9 @@ init_custom_vmix(const Geometry& /*geom*/, MultiFab& mf_Akv, MultiFab& mf_Akt,
[=] AMREX_GPU_DEVICE (int i, int j, int k)
{
Akv(i,j,k) = 2.0e-03+8.0e-03*std::exp(z_w(i,j,k)/150.0);
Akt(i,j,k) = 1.0e-6_rt;
Akt(i,j,k,Temp_comp) = 1.0e-6_rt;
Akt(i,j,k,Salt_comp) = 1.0e-6_rt;
Akt(i,j,k,Scalar_comp) = 0.0_rt;
});
}
}
Expand Down
2 changes: 1 addition & 1 deletion Exec/Seamount/prob.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ init_custom_hmix(const Geometry& /*geom*/, MultiFab& mf_visc2_p, MultiFab& mf_vi
Box bx = mfi.tilebox();
bx.grow(IntVect(NGROW,NGROW,0));

int ncomp = 2; // temperature and salt
int ncomp = mf_diff2.nComp(); // temperature and salt and scalar
Gpu::streamSynchronize();

amrex::ParallelFor(bx, [=] AMREX_GPU_DEVICE (int i, int j, int k)
Expand Down
4 changes: 2 additions & 2 deletions Tests/test_files/Advection/Advection.i
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
max_step = 10
stop_time = 30000.0

amrex.fpe_trap_invalid = 0
amrex.fpe_trap_invalid = 1

fabarray.mfiter_tile_size = 16 16 1024
fabarray.mfiter_tile_size = 1024 1024 1024

# PROBLEM SIZE & GEOMETRY
geometry.prob_lo = 0. 0. -150.
Expand Down

0 comments on commit 9927344

Please sign in to comment.