Skip to content

Commit

Permalink
Fix sign error
Browse files Browse the repository at this point in the history
  • Loading branch information
ewquon committed Jan 27, 2024
1 parent 7e294c1 commit b2d5747
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions Exec/DevTests/TemperatureSource/prob.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -187,8 +187,7 @@ Problem::update_rhotheta_sources (
{
const amrex::Real z_cc = prob_lo[2] + (k+0.5)* dx[2];
if ((time > 1.0) && (z_cc < 100.)) {
// +1 K/hr
src[k] = 0.0002777777777777778;
src[k] = 1.0; // 1 K/s
} else {
src[k] = 0.0;
}
Expand Down
2 changes: 1 addition & 1 deletion Source/TimeIntegration/ERF_slow_rhs_inc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -648,7 +648,7 @@ void erf_slow_rhs_inc (int /*level*/, int nrk,
const int n = RhoTheta_comp;
ParallelFor(bx, [=] AMREX_GPU_DEVICE (int i, int j, int k) noexcept
{
cell_rhs(i, j, k, n) -= dptr_rhotheta_src[k];
cell_rhs(i, j, k, n) += dptr_rhotheta_src[k];
});
}

Expand Down
2 changes: 1 addition & 1 deletion Source/TimeIntegration/ERF_slow_rhs_pre.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -728,7 +728,7 @@ void erf_slow_rhs_pre (int level, int finest_level,
const int n = RhoTheta_comp;
ParallelFor(bx, [=] AMREX_GPU_DEVICE (int i, int j, int k) noexcept
{
cell_rhs(i, j, k, n) -= dptr_rhotheta_src[k];
cell_rhs(i, j, k, n) += dptr_rhotheta_src[k];
});
}

Expand Down

0 comments on commit b2d5747

Please sign in to comment.