Skip to content

Commit

Permalink
Minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
siuwuncheung committed Aug 29, 2024
1 parent 77516d4 commit 6726436
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions examples/prom/elliptic_eigenproblem_global_rom.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -908,7 +908,8 @@ double Potential(const Vector &x)
if (potential_well_switch == 0 || potential_well_switch == 1)
{
// add well with first center
center(0) = (23 * bb_min[0] + 13 * bb_max[0]) / 36 - pseudo_time * h_max;
center(0) = (23 * bb_min[0] + 13 * bb_max[0]) / 36 -
0.5 * h_max * pseudo_time * (bb_min[0] + bb_max[0]);
d_sq = x.DistanceSquaredTo(center);
radius_sq = pow(0.28 * L, 2.0);
rho += -28.9 * std::exp(-d_sq / (2 * radius_sq));
Expand All @@ -918,7 +919,8 @@ double Potential(const Vector &x)
if (potential_well_switch == 0 || potential_well_switch == 2)
{
// add well with second center
center(0) = (13 * bb_min[0] + 23 * bb_max[0]) / 36 + pseudo_time * h_max;
center(0) = (13 * bb_min[0] + 23 * bb_max[0]) / 36 +
0.5 * h_max * pseudo_time * (bb_min[0] + bb_max[0]);
d_sq = x.DistanceSquaredTo(center);
radius_sq = pow(0.28 * L, 2.0);
rho += -28.9 * std::exp(-d_sq / (2 * radius_sq));
Expand Down

0 comments on commit 6726436

Please sign in to comment.