Merge branch 'master' of ssh://noisy/home/noisy3/OpenFOAM/OpenFOAM-dev

This commit is contained in:
andy
2009-08-28 18:39:01 +01:00
11 changed files with 35 additions and 13 deletions

View File

@ -131,6 +131,19 @@ void Foam::Pstream::exit(int errnum)
delete[] buff; delete[] buff;
# endif # endif
if (PstreamGlobals::outstandingRequests_.size())
{
label n = PstreamGlobals::outstandingRequests_.size();
PstreamGlobals::outstandingRequests_.clear();
WarningIn("Pstream::exit(int)")
<< "There are still " << n << " outstanding MPI_Requests." << endl
<< "This means that your code exited before doing a"
<< " Pstream::waitRequests()." << endl
<< "This should not happen for a normal code exit."
<< endl;
}
if (errnum == 0) if (errnum == 0)
{ {
MPI_Finalize(); MPI_Finalize();

View File

@ -2560,7 +2560,7 @@ Foam::triSurface Foam::triSurfaceTools::delaunay2D(const List<vector2D>& pts)
// Triangulate // Triangulate
int nTris = 0; int nTris = 0;
dtris2 int err = dtris2
( (
pts.size(), pts.size(),
geompackVertices.begin(), geompackVertices.begin(),
@ -2569,6 +2569,13 @@ Foam::triSurface Foam::triSurfaceTools::delaunay2D(const List<vector2D>& pts)
triangle_neighbor.begin() triangle_neighbor.begin()
); );
if (err != 0)
{
FatalErrorIn("triSurfaceTools::delaunay2D(const List<vector2D>&)")
<< "Failed dtris2 with vertices:" << pts.size()
<< abort(FatalError);
}
// Trim // Trim
triangle_node.setSize(3*nTris); triangle_node.setSize(3*nTris);
triangle_neighbor.setSize(3*nTris); triangle_neighbor.setSize(3*nTris);

View File

@ -355,7 +355,7 @@ void Foam::streamLineParticle::hitWallPatch
streamLineParticle::trackData& td streamLineParticle::trackData& td
) )
{ {
// Keep particle // Remove particle
td.keepParticle = false; td.keepParticle = false;
} }

View File

@ -15,7 +15,7 @@ FoamFile
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
#include "initialConditions" #include "include/initialConditions"
dimensions [0 1 -1 0 0 0 0]; dimensions [0 1 -1 0 0 0 0];
@ -23,7 +23,7 @@ internalField uniform $flowVelocity;
boundaryField boundaryField
{ {
#include "fixedInlet" #include "include/fixedInlet"
outlet outlet
{ {
@ -44,7 +44,7 @@ boundaryField
value uniform (0 0 0); value uniform (0 0 0);
} }
#include "frontBackUpperPatches" #include "include/frontBackUpperPatches"
} }

View File

@ -14,7 +14,7 @@ FoamFile
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
#include "initialConditions" #include "include/initialConditions"
dimensions [0 2 -2 0 0 0 0]; dimensions [0 2 -2 0 0 0 0];
@ -22,7 +22,7 @@ internalField uniform $turbulentKE;
boundaryField boundaryField
{ {
#include "fixedInlet" #include "include/fixedInlet"
outlet outlet
{ {
@ -41,7 +41,7 @@ boundaryField
type kqRWallFunction; type kqRWallFunction;
} }
#include "frontBackUpperPatches" #include "include/frontBackUpperPatches"
} }

View File

@ -14,7 +14,7 @@ FoamFile
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
#include "initialConditions" #include "include/initialConditions"
dimensions [0 0 -1 0 0 0 0]; dimensions [0 0 -1 0 0 0 0];
@ -22,7 +22,7 @@ internalField uniform $turbulentOmega;
boundaryField boundaryField
{ {
#include "fixedInlet" #include "include/fixedInlet"
outlet outlet
{ {
@ -41,7 +41,7 @@ boundaryField
type omegaWallFunction; type omegaWallFunction;
} }
#include "frontBackUpperPatches" #include "include/frontBackUpperPatches"
} }

View File

@ -14,7 +14,7 @@ FoamFile
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
#include "initialConditions" #include "include/initialConditions"
dimensions [0 2 -2 0 0 0 0]; dimensions [0 2 -2 0 0 0 0];
@ -43,7 +43,7 @@ boundaryField
type zeroGradient; type zeroGradient;
} }
#include "frontBackUpperPatches" #include "include/frontBackUpperPatches"
} }
// ************************************************************************* // // ************************************************************************* //

View File

@ -14,6 +14,8 @@ FoamFile
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
libs ("libincompressibleRASModels.so");
application simpleFoam; application simpleFoam;
startFrom latestTime; startFrom latestTime;