diff --git a/Common/include/basic_types/ad_structure.hpp b/Common/include/basic_types/ad_structure.hpp index 36eafccc37a8..8c737d0edf48 100644 --- a/Common/include/basic_types/ad_structure.hpp +++ b/Common/include/basic_types/ad_structure.hpp @@ -856,11 +856,12 @@ FORCEINLINE int ComputeTag(unsigned short iZone) { FORCEINLINE void ClearTagOnVariable(su2double& v) { AD::getTape().clearTagOnVariable(v); } FORCEINLINE void SetTagOnVariable(su2double& v, int zone_tag = 0, int run_tag = 0) { - int tag = v.getIdentifier().tag; + /*--- Since CoDiPack 3.x, the identifier of a tag tape value is the tag itself. ---*/ + auto& tag = v.getIdentifier(); int tens = (zone_tag > 0) ? zone_tag + 1 : tag / 10; int ones = (run_tag > 0 && run_tag < 10) ? run_tag : tag % 10; if (tag != 0) { - v.getIdentifier().tag = tens * 10 + ones; + tag = tens * 10 + ones; } } diff --git a/meson_scripts/init.py b/meson_scripts/init.py index 2b5493c6293c..8d4f00657217 100755 --- a/meson_scripts/init.py +++ b/meson_scripts/init.py @@ -57,7 +57,7 @@ def init_submodules( # This information of the modules is used if projects was not cloned using git # The sha tag must be maintained manually to point to the correct commit - sha_version_codi = "a0725b2bfd172e741a07f96b041a5ddf88d441d7" + sha_version_codi = "c25d5c19d8207a1a732cfff0f79ac04cbeef01d8" github_repo_codi = "https://github.com/scicompkl/CoDiPack" sha_version_medi = "0cfaf96e7a31a5a8941b97f84198da03a8f8bd7a" github_repo_medi = "https://github.com/SciCompKL/MeDiPack"