A small printing bug in setup.log for the VOF interface compression parameters

Questions and remarks about code_saturne usage
Forum rules
Please read the forum usage recommendations before posting.
Post Reply
WenhaoZHANG
Posts: 2
Joined: Fri Jan 09, 2026 4:27 pm

A small printing bug in setup.log for the VOF interface compression parameters

Post by WenhaoZHANG »

Bonjour,

I found a small printing bug in setup.log for the VOF interface compression parameters: the values of kdrift and cdrift are printed in reverse order.

In cs_vof.cpp,

cs_log_printf
(CS_LOG_SETUP,
_("\n"
" Fluid 1:\n"
" ro1: %14.5e (Reference density)\n"
" mu1: %14.5e (Ref. molecular dyn. visc.)\n"
" Fluid 2:\n"
" rho2: %14.5e (Reference density)\n"
" mu2: %14.5e (Ref. molecular dyn. visc.)\n"
" Surface tension:\n"
" sigma: %14.5e (surface tension)\n"
" Drift velocity:\n"
" idrift: %10d (0: disabled; > 0: enabled)\n"
" kdrift %14.5e (Diffusion effect coeff.)\n"
" cdrift %14.5e (Diffusion flux coeff.)\n"),

vp->rho1, vp->mu1, vp->rho2, vp->mu2, vp->sigma_s,
vp->idrift, vp->cdrift, vp->kdrift);

Best regards,
Wenhao
Yvan Fournier
Posts: 4300
Joined: Mon Feb 20, 2012 3:25 pm

Re: A small printing bug in setup.log for the VOF interface compression parameters

Post by Yvan Fournier »

Hello,

Thanks for the feedback. This is now fixed in the master branch, an I'll fix it in v9.0 also if it appears there also.

Best regards,

Yvan
Post Reply