Hello,
Yes, this is strange. I checked on the case "canal", which is not refined on the bottom, and we do not see this behaviour, so this difference with previous versions was not noticed. It probably depends on the refinement itself, which must have some regularity I imagine... this is to investigate, but for example we assume that the first plane above the bottom is already in the logarithmic profile, which precludes refining too much.
What you can try is the new option:
VERTICAL VELOCITY DERIVATIVES : 2
1 is the default, with 2 the computation of vertical derivatives on velocity is based on logarithmic derivatives, which is better if you have a logarithmic profile.
With best regards,
Jean-Michel Hervouet
P.S. subroutine with an example of head loss attached again here. I do not know where it has gone in my previous post.