reconstructPar crashes with cyclicAMI
In a case using cyclicAMI to make the grid periodic across two patches, the simulation runs successfully but crashes when trying to reconstruct the solution at the end of the parallel run, giving the following error:
AMI: Creating addressing and weights between 66 source faces and 45 target faces --> FOAM Warning : From function void Foam::AMIMethod<SourcePatch, TargetPatch>::checkPatches() const [with SourcePatch = Foam::PrimitivePatch<Foam::face, Foam::SubList, const Foam::Field<Foam::Vector> &, Foam::Vector>, TargetPatch = Foam::PrimitivePatch<Foam::face, Foam::SubList, const Foam::Field<Foam::Vector> &, Foam::Vector>] in file lnInclude/AMIMethod.C at line 57 Source and target patch bounding boxes are not similar source box span : (0.05 0 0.001) target box span : (0.0449116 0 0.001) source box : (-0.05 -0.00965 -0.0015) (1.92091e-11 -0.00965 -0.0005) target box : (-0.05 -0.00965 -0.0015) (-0.00508841 -0.00965 -0.0005) inflated target box : (-0.0522461 -0.0118961 -0.00374614) (-0.00284227 -0.00740386 0.00174614)
The same case works fine with an older grid differing only by few cells in the total count.
Please also note this issue has been reported but not solved here:
and discussed here on CFD online:
The issue has been tested and rises with both the v1806 and v1606 releases.