From 96e57fbbcef8d87e9b59c1ca235ddaeb090a9652 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Viana?= <57032457+vollous@users.noreply.github.com> Date: Mon, 29 Jul 2024 15:14:58 +0100 Subject: [PATCH 1/2] Bug fix --- include/BSMPT/minimum_tracer/minimum_tracer.h | 1 + src/minimum_tracer/minimum_tracer.cpp | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/include/BSMPT/minimum_tracer/minimum_tracer.h b/include/BSMPT/minimum_tracer/minimum_tracer.h index eafb84ce..3da5a03e 100644 --- a/include/BSMPT/minimum_tracer/minimum_tracer.h +++ b/include/BSMPT/minimum_tracer/minimum_tracer.h @@ -18,6 +18,7 @@ #include #include #include // Eigenvalues matrix +#include // std::swap #include #include // std::pow #include // for shared_ptr diff --git a/src/minimum_tracer/minimum_tracer.cpp b/src/minimum_tracer/minimum_tracer.cpp index 843ca1e7..af9c6866 100644 --- a/src/minimum_tracer/minimum_tracer.cpp +++ b/src/minimum_tracer/minimum_tracer.cpp @@ -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 From b3a6e95f025f1cc0fc1149b98313def123245889 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Viana?= <57032457+vollous@users.noreply.github.com> Date: Mon, 29 Jul 2024 15:15:43 +0100 Subject: [PATCH 2/2] Version bump --- CMakeLists.txt | 2 +- README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 69312602..8370673c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -6,7 +6,7 @@ cmake_minimum_required(VERSION 3.23) project( BSMPT - VERSION 3.0.5 + VERSION 3.0.9 LANGUAGES C CXX DESCRIPTION "BSMPT - Beyond the Standard Model Phase Transitions : A C++ package for the computation of the EWPT in BSM models" diff --git a/README.md b/README.md index ba6b5960..f8d0d247 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ SPDX-FileCopyrightText: 2021 Philipp Basler, Margarete Mühlleitner and Jonas M SPDX-License-Identifier: GPL-3.0-or-later --> -Program: BSMPT version 3.0.5 +Program: BSMPT version 3.0.9 Released by: Philipp Basler, Lisa Biermann, Margarete Mühlleitner, Jonas Müller, Rui Santos and João Viana