Skip to content

fix inconsistency in tracer fct#867

Merged
patrickscholz merged 2 commits intomainfrom
workbench_fixbug_tracerfct_new
Mar 3, 2026
Merged

fix inconsistency in tracer fct#867
patrickscholz merged 2 commits intomainfrom
workbench_fixbug_tracerfct_new

Conversation

@patrickscholz
Copy link
Contributor

the normalization with thickness must be done with the layerthickness of the new timestep hnode_new, not with the layerthickness from the old timestep, since

T^n+1*h^n+1 = T^n*h^n + dt*SUM[Flx_adv]^n

T^n+1 = 1/h^n+1 * [T^n*h^n + dt*SUM[Flx_adv]^n]

… of the new timestep hnode_new, not with the layerthickness from the old timestep, since T^n+1*h^n+1 = T^n*h^n + dt*SUM[Flx_adv]^n --> T^n+1 = 1/h^n+1 * [T^n*h^n + dt*SUM[Flx_adv]^n]
@JanStreffing
Copy link
Collaborator

Do you have an idea yet how large the differences may be?

@patrickscholz
Copy link
Contributor Author

it should be not that large, but the stability should benefit from it!

@patrickscholz patrickscholz merged commit d729bea into main Mar 3, 2026
18 checks passed
@patrickscholz
Copy link
Contributor Author

@JanStreffing : So indeed the difference with the bugfix are very small!!!

SSH diff

ssh_rob_y1999-2019

Temp diff

temp_rob_y1999-2019_dep10 0m temp_rob_y1999-2019_dep250 0m temp_rob_y1999-2019_dep1000 0m

Salt diff

salt_rob_y1999-2019_dep10 0m salt_rob_y1999-2019_dep250 0m salt_rob_y1999-2019_dep1000 0m

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants