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
Post Reply