mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
Merge branch 'master' of ssh://noisy/home/noisy3/OpenFOAM/OpenFOAM-dev
This commit is contained in:
@ -131,6 +131,19 @@ void Foam::Pstream::exit(int errnum)
|
||||
delete[] buff;
|
||||
# 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)
|
||||
{
|
||||
MPI_Finalize();
|
||||
|
||||
@ -2560,7 +2560,7 @@ Foam::triSurface Foam::triSurfaceTools::delaunay2D(const List<vector2D>& pts)
|
||||
|
||||
// Triangulate
|
||||
int nTris = 0;
|
||||
dtris2
|
||||
int err = dtris2
|
||||
(
|
||||
pts.size(),
|
||||
geompackVertices.begin(),
|
||||
@ -2569,6 +2569,13 @@ Foam::triSurface Foam::triSurfaceTools::delaunay2D(const List<vector2D>& pts)
|
||||
triangle_neighbor.begin()
|
||||
);
|
||||
|
||||
if (err != 0)
|
||||
{
|
||||
FatalErrorIn("triSurfaceTools::delaunay2D(const List<vector2D>&)")
|
||||
<< "Failed dtris2 with vertices:" << pts.size()
|
||||
<< abort(FatalError);
|
||||
}
|
||||
|
||||
// Trim
|
||||
triangle_node.setSize(3*nTris);
|
||||
triangle_neighbor.setSize(3*nTris);
|
||||
|
||||
@ -355,7 +355,7 @@ void Foam::streamLineParticle::hitWallPatch
|
||||
streamLineParticle::trackData& td
|
||||
)
|
||||
{
|
||||
// Keep particle
|
||||
// Remove particle
|
||||
td.keepParticle = false;
|
||||
}
|
||||
|
||||
|
||||
@ -15,7 +15,7 @@ FoamFile
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
#include "initialConditions"
|
||||
#include "include/initialConditions"
|
||||
|
||||
dimensions [0 1 -1 0 0 0 0];
|
||||
|
||||
@ -23,7 +23,7 @@ internalField uniform $flowVelocity;
|
||||
|
||||
boundaryField
|
||||
{
|
||||
#include "fixedInlet"
|
||||
#include "include/fixedInlet"
|
||||
|
||||
outlet
|
||||
{
|
||||
@ -44,7 +44,7 @@ boundaryField
|
||||
value uniform (0 0 0);
|
||||
}
|
||||
|
||||
#include "frontBackUpperPatches"
|
||||
#include "include/frontBackUpperPatches"
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -14,7 +14,7 @@ FoamFile
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
#include "initialConditions"
|
||||
#include "include/initialConditions"
|
||||
|
||||
dimensions [0 2 -2 0 0 0 0];
|
||||
|
||||
@ -22,7 +22,7 @@ internalField uniform $turbulentKE;
|
||||
|
||||
boundaryField
|
||||
{
|
||||
#include "fixedInlet"
|
||||
#include "include/fixedInlet"
|
||||
|
||||
outlet
|
||||
{
|
||||
@ -41,7 +41,7 @@ boundaryField
|
||||
type kqRWallFunction;
|
||||
}
|
||||
|
||||
#include "frontBackUpperPatches"
|
||||
#include "include/frontBackUpperPatches"
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -14,7 +14,7 @@ FoamFile
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
#include "initialConditions"
|
||||
#include "include/initialConditions"
|
||||
|
||||
dimensions [0 0 -1 0 0 0 0];
|
||||
|
||||
@ -22,7 +22,7 @@ internalField uniform $turbulentOmega;
|
||||
|
||||
boundaryField
|
||||
{
|
||||
#include "fixedInlet"
|
||||
#include "include/fixedInlet"
|
||||
|
||||
outlet
|
||||
{
|
||||
@ -41,7 +41,7 @@ boundaryField
|
||||
type omegaWallFunction;
|
||||
}
|
||||
|
||||
#include "frontBackUpperPatches"
|
||||
#include "include/frontBackUpperPatches"
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -14,7 +14,7 @@ FoamFile
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
#include "initialConditions"
|
||||
#include "include/initialConditions"
|
||||
|
||||
dimensions [0 2 -2 0 0 0 0];
|
||||
|
||||
@ -43,7 +43,7 @@ boundaryField
|
||||
type zeroGradient;
|
||||
}
|
||||
|
||||
#include "frontBackUpperPatches"
|
||||
#include "include/frontBackUpperPatches"
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -14,6 +14,8 @@ FoamFile
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
libs ("libincompressibleRASModels.so");
|
||||
|
||||
application simpleFoam;
|
||||
|
||||
startFrom latestTime;
|
||||
|
||||
Reference in New Issue
Block a user