parallelization issues in the cs_user_extra_operations.c
Posted: Mon Dec 04, 2023 1:30 pm
Dear Code_Saturne users,
I am struggling with the parallelization in the cs_user_extra_operations.c. I am using Version 7 and set up the case by SRC.
Firstly, I calculate the shortest distance by using cs_geom_closest_point of each grid cell (domain->mesh_quantities->cell_cen) to the wall surface (domain->mesh_quantities->b_face_cog). Secondly, I try to calculate the difference between the reaction progress variable (boundary_RPV) and dimensionless temperature (boundary_theta) at the boundary surface and then calculate the corresponding value at each grid cell in the whole mesh domain based on the shortest distance away from the wall surface (from step 1) .
Currently, the code run perfectly well in sequence. However, when I run it in parallel and the error jumps as shown in figure.
I am not very skilful in MPI and any suggestions are appreciated. The cs_user_extra_operations.c has been attached.
Best regards
Liyuan
I am struggling with the parallelization in the cs_user_extra_operations.c. I am using Version 7 and set up the case by SRC.
Firstly, I calculate the shortest distance by using cs_geom_closest_point of each grid cell (domain->mesh_quantities->cell_cen) to the wall surface (domain->mesh_quantities->b_face_cog). Secondly, I try to calculate the difference between the reaction progress variable (boundary_RPV) and dimensionless temperature (boundary_theta) at the boundary surface and then calculate the corresponding value at each grid cell in the whole mesh domain based on the shortest distance away from the wall surface (from step 1) .
Currently, the code run perfectly well in sequence. However, when I run it in parallel and the error jumps as shown in figure.
I am not very skilful in MPI and any suggestions are appreciated. The cs_user_extra_operations.c has been attached.
Best regards
Liyuan