Skip to content

Commit

Permalink
[oneD] Remove hard-coded offset_T
Browse files Browse the repository at this point in the history
  • Loading branch information
ischoegl authored and speth committed Jul 3, 2023
1 parent 2771e61 commit 7bdce8f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/oneD/Sim1D.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -667,8 +667,8 @@ int Sim1D::setFixedTemperature(double t)
if (d_free && !d_free->fixed_mdot()) {
for (size_t m = 0; m < npnow - 1; m++) {
bool fixedpt = false;
double t1 = value(n, 2, m);
double t2 = value(n, 2, m + 1);
double t1 = value(n, c_offset_T, m);
double t2 = value(n, c_offset_T, m + 1);
// threshold to avoid adding new point too close to existing point
double thresh = min(1., 1.e-1 * (t2 - t1));
z1 = d.grid(m);
Expand Down

0 comments on commit 7bdce8f

Please sign in to comment.