Skip to content
Snippets Groups Projects
Commit b42db6ce authored by Darrin Stephens's avatar Darrin Stephens Committed by Kutalmış Berçin
Browse files

BUG: reconstructPar: prevent crashes when operating on processor cases (#1143)

From OpenFOAM Foundation https://github.com/OpenFOAM/OpenFOAM-dev/commit/e4d89daf5de85f31c98012102c7dea2e29351ff2



The main issue here was that reconstructPar is serial but coupled() in
cyclicAMIFvPatch.C could return true if both sides of the patch was present
(this->size() && neighbFvPatch().size()). However, this would result in an
evaluate call in cyclicAMIFvPatchField. This would only work if both sides
were completely contained on the same processor. The change in logic prevents
coupled() from returning true when called in serial for a decomposed case.

Signed-off-by: default avatarKutalmis Bercin <kutalmis.bercin@esi-group.com>
parent d392bf98
Branches
Tags
1 merge request!387Miscellaneous code changes - Nov 20
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment