Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions Common/include/basic_types/ad_structure.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

Expand Down
2 changes: 1 addition & 1 deletion meson_scripts/init.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
Loading