Skip to content

Commit

Permalink
Bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
vollous committed Jul 29, 2024
1 parent 23f8808 commit 96e57fb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions include/BSMPT/minimum_tracer/minimum_tracer.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
#include <BSMPT/utility/asciiplotter/asciiplotter.h>
#include <BSMPT/utility/utility.h>
#include <Eigen/Dense> // Eigenvalues matrix
#include <algorithm> // std::swap
#include <chrono>
#include <cmath> // std::pow
#include <memory> // for shared_ptr
Expand Down
6 changes: 6 additions & 0 deletions src/minimum_tracer/minimum_tracer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2401,6 +2401,12 @@ Vacuum::Vacuum(const double &T_lowIn,
PhasesList[i].id = i;
}

// impose that true vacuum at T = Tthigh has id = 0.
for (auto &phase : PhasesList)
if ((phase.T_high == T_high) and
(phase.Get(T_high).potential < PhasesList[0].Get(T_high).potential))
std::swap(PhasesList[0], phase);

// identify coexisiting phase regions
setCoexRegion(UseMultiStepPTMode); // can flip status_vacuum to error code

Expand Down

0 comments on commit 96e57fb

Please sign in to comment.