CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (https://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   max command hangs when using scotch decomposition (https://www.cfd-online.com/Forums/openfoam-programming-development/228448-max-command-hangs-when-using-scotch-decomposition.html)

ssa_cfd July 2, 2020 03:55

max command hangs when using scotch decomposition
 
Hi everyone,



In my solver, there is a command as follows
Code:


Info << "max/min Massendefekt: " << max(massendefektFeld).value() << "    " << min(massendefektFeld).value() << endl;


There is no problem, when I run in serial or parallel with simple decomposition.



But when I use scotch decomposition, the solver hangs exactly at this point.

I tried to comment out this line and then it runs smoothly.



Does anyone know why?


Thanks,
ssa.

clapointe July 2, 2020 10:59

If you want to find the max for a parallel case, try using gMax instead of max. There are loads of examples in the code, e.g. https://github.com/OpenFOAM/OpenFOAM...m/setRDeltaT.H.

Caelan


All times are GMT -4. The time now is 11:07.