CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Programming & Development (
-   -   max command hangs when using scotch decomposition (

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

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?


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.


All times are GMT -4. The time now is 04:54.