Hi,
In mostly python base croco_pytools have a one file called Cgrid_transformation_tools.py inside the prepro/Modules . During reading the code found the Quadratic output shows very suspicious. Its very confused me.
can you please check:
line (519-524)
var_rho[iz, :, :] = 0.5625 * (
var_w[iz + 1, :, :] + var_w[iz, :, :]
) - 0.0625 * (var_w[iz + 2 :, :] + var_w[iz - 1, :, :])
var_rho[0, :, :] = (
-0.125 * var_w[1, :, :] + 0.75 * var_w[1, :, :] + 0.375 * var_w[0, :, :]
)
maybe need to change:
var_rho[iz, :, :] = 0.5625 * (
var_w[iz + 1, :, :] + var_w[iz, :, :]
) - 0.0625 * (var_w[iz + 2, :, :] + var_w[iz - 1, :, :])
var_rho[0, :, :] = (
-0.125 * var_w[2, :, :] + 0.75 * var_w[1, :, :] + 0.375 * var_w[0, :, :]
)
I added only one comma (,) and change one 1 to 2 two. you can check it above. Is it correct ?
can you please check it. then I also change (very confusing for me).
please let me know if that changes needed or not.
Thank you for your kind understanding and help.
Best regards.