Closed mathrack closed 6 years ago
After reviewing the code, this might be related to the line below in cs_user_postprocess_values
?
const cs_time_step_t *ts_post = (ts->nt_cur == ts->nt_max) ? NULL : ts;
Hello,
Yes, this is the error in your setup.
You should simply use ts instead of ts_post, as your definition of ts_post is NULL on the last time step, leading to the zero value you observe.
Dear users, developers,
I have set some probes but the last output indicates a time of zero. Attached is the source code used. Last lines of a probe file are:
cs_user_postprocess.c.gz
Thanks, Cedric
EDIT: the issue was not observed on 5.0 but on https://github.com/code-saturne/code_saturne/commit/02f8dec5fafb5549fd55edd5bbf57a8826acd574