Merge branch 'master' of /home/dm4/OpenFOAM/OpenFOAM-dev

This commit is contained in:
andy
2011-11-22 16:02:01 +00:00
7 changed files with 22 additions and 8 deletions

View File

@ -1,3 +0,0 @@
redistributeMeshPar.C
EXE = $(FOAM_APPBIN)/redistributeMeshPar

View File

@ -0,0 +1,3 @@
redistributePar.C
EXE = $(FOAM_APPBIN)/redistributePar

View File

@ -22,7 +22,7 @@ License
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
Application
redistributeMeshPar
redistributePar
Description
Redistributes existing decomposed mesh and fields according to the current
@ -42,7 +42,7 @@ Description
cp -r constant processor0
# Distribute
mpirun -np ddd redistributeMeshPar -parallel
mpirun -np ddd redistributePar -parallel
\endverbatim
\*---------------------------------------------------------------------------*/

View File

@ -235,7 +235,11 @@ tmp<Field<Type> > volPointInterpolation::flatBoundaryField
{
label bFaceI = bm[patchI].patch().start() - mesh.nInternalFaces();
if (!isA<emptyFvPatch>(bm[patchI]) && !bm[patchI].coupled())
if
(
!isA<emptyFvPatch>(bm[patchI])
&& !vf.boundaryField()[patchI].coupled()
)
{
SubList<Type>
(

View File

@ -31,6 +31,8 @@ License
#include "coupledPointPatchFields.H"
#include "pointConstraint.H"
#include "surfaceFields.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
namespace Foam
@ -75,11 +77,19 @@ void volPointInterpolation::calcBoundaryAddressing()
const polyBoundaryMesh& pbm = mesh().boundaryMesh();
// Get precalculated volField only so we can use coupled() tests for
// cyclicAMI
const surfaceScalarField& magSf = mesh().magSf();
forAll(pbm, patchI)
{
const polyPatch& pp = pbm[patchI];
if (!isA<emptyPolyPatch>(pp) && !pp.coupled())
if
(
!isA<emptyPolyPatch>(pp)
&& !magSf.boundaryField()[patchI].coupled()
)
{
label bFaceI = pp.start()-mesh().nInternalFaces();

View File

@ -25,7 +25,7 @@ cp system/decomposeParDict-4proc system/decomposeParDict
# Unset floating point trapping since creating processor directories
unset FOAM_SIGFPE
unset FOAM_SETNAN
runParallel redistributeMeshPar 4 -overwrite
runParallel redistributePar 4 -overwrite
runParallel renumberMesh 4 -overwrite
# Add wildcard entries for meshes patches since not preserved