Merge commit 'origin/master' into olesenm
This commit is contained in:
commit
49b6c94f66
@ -1,17 +0,0 @@
|
||||
EXE_INC = \
|
||||
-I$(LIB_SRC)/finiteVolume/lnInclude \
|
||||
-I$(LIB_SRC)/lagrangian/basic/lnInclude \
|
||||
-I$(LIB_SRC)/meshTools/lnInclude \
|
||||
-I$(ParaView_DIR) \
|
||||
-I$(ParaView_DIR)/VTK \
|
||||
-I$(ParaView_INST_DIR)/VTK \
|
||||
-I$(ParaView_INST_DIR)/VTK/Common \
|
||||
-I$(ParaView_INST_DIR)/VTK/Filtering \
|
||||
-I$(ParaView_INST_DIR)/VTK/Rendering \
|
||||
-I../PV3FoamReader
|
||||
|
||||
LIB_LIBS = \
|
||||
-lfiniteVolume \
|
||||
-llagrangian \
|
||||
-lmeshTools \
|
||||
$(GLIBS)
|
@ -230,8 +230,8 @@ void write
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
argList::noParallel();
|
||||
argList::validArgs.append("surface");
|
||||
argList::validArgs.append("output name");
|
||||
argList::validArgs.append("input file");
|
||||
argList::validArgs.append("output file");
|
||||
# include "setRootCase.H"
|
||||
# include "createTime.H"
|
||||
|
||||
|
@ -130,6 +130,8 @@ endif
|
||||
# Communications library
|
||||
# ~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
unset MPI_ARCH_PATH
|
||||
|
||||
switch ("$WM_MPLIB")
|
||||
case OPENMPI:
|
||||
set mpi_version=openmpi-1.2.6
|
||||
|
@ -103,11 +103,7 @@ bool Foam::setEnv
|
||||
const bool overwrite
|
||||
)
|
||||
{
|
||||
# ifdef linux
|
||||
return setenv(envName.c_str(), value.c_str(), overwrite) == 0;
|
||||
# else
|
||||
return putenv((char*)(envName + '=' + value.c_str()).c_str()) == 0;
|
||||
# endif
|
||||
}
|
||||
|
||||
|
||||
|
@ -231,14 +231,22 @@ bool Foam::probes::checkFieldTypes()
|
||||
|
||||
probeFilePtrs_.insert(fldName, sPtr);
|
||||
|
||||
*sPtr<< '#' << setw(IOstream::defaultPrecision() + 6)
|
||||
<< "Time";
|
||||
unsigned int w = IOstream::defaultPrecision() + 7;
|
||||
|
||||
forAll(probeLocations_, probeI)
|
||||
for (direction cmpt=0; cmpt<vector::nComponents; cmpt++)
|
||||
{
|
||||
*sPtr << token::SPACE << probeLocations_[probeI];
|
||||
*sPtr<< '#' << setw(IOstream::defaultPrecision() + 6)
|
||||
<< vector::componentNames[cmpt];
|
||||
|
||||
forAll(probeLocations_, probeI)
|
||||
{
|
||||
*sPtr<< setw(w) << probeLocations_[probeI][cmpt];
|
||||
}
|
||||
*sPtr << endl;
|
||||
}
|
||||
*sPtr << endl;
|
||||
|
||||
*sPtr<< '#' << setw(IOstream::defaultPrecision() + 6)
|
||||
<< "Time" << endl;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -438,6 +438,7 @@ bool triSurface::readSTLASCII(const fileName& STLfileName)
|
||||
|
||||
STLlabels.clear();
|
||||
|
||||
// Stitch all points within SMALL meters.
|
||||
stitchTriangles(rawPoints);
|
||||
|
||||
// Convert solidNames into regionNames
|
||||
|
@ -42,17 +42,16 @@ bool triSurface::stitchTriangles
|
||||
)
|
||||
{
|
||||
// Merge points
|
||||
labelList pointMap(rawPoints.size());
|
||||
|
||||
pointField newPoints(rawPoints.size());
|
||||
|
||||
labelList pointMap;
|
||||
pointField newPoints;
|
||||
bool hasMerged = mergePoints(rawPoints, tol, verbose, pointMap, newPoints);
|
||||
|
||||
if (hasMerged)
|
||||
{
|
||||
if (verbose)
|
||||
{
|
||||
Pout<< "stitchTriangles : Renumbering all triangles" << endl;
|
||||
Pout<< "stitchTriangles : Merged from " << rawPoints.size()
|
||||
<< " points down to " << newPoints.size() << endl;
|
||||
}
|
||||
|
||||
pointField& ps = const_cast<pointField&>(points());
|
||||
@ -73,6 +72,7 @@ bool triSurface::stitchTriangles
|
||||
operator[](newTriangleI)[0] = newA;
|
||||
operator[](newTriangleI)[1] = newB;
|
||||
operator[](newTriangleI)[2] = newC;
|
||||
operator[](newTriangleI).region() = operator[](i).region();
|
||||
newTriangleI++;
|
||||
}
|
||||
else if (verbose)
|
||||
|
@ -651,7 +651,7 @@ surfacePatchList triSurface::calcPatches(labelList& faceMap) const
|
||||
{
|
||||
sortedRegion[faceI] = operator[](faceI).region();
|
||||
}
|
||||
sortedRegion.sort();
|
||||
sortedRegion.stableSort();
|
||||
|
||||
faceMap = sortedRegion.indices();
|
||||
|
||||
@ -1214,7 +1214,11 @@ void triSurface::writeStats(Ostream& os) const
|
||||
{
|
||||
// Calculate bounding box without any additional addressing
|
||||
// Copy of treeBoundBox code. Cannot use meshTools from triSurface...
|
||||
boundBox bb;
|
||||
boundBox bb
|
||||
(
|
||||
point(VGREAT, VGREAT, VGREAT),
|
||||
point(-VGREAT, -VGREAT, -VGREAT)
|
||||
);
|
||||
forAll(*this, triI)
|
||||
{
|
||||
const labelledTri& f = operator[](triI);
|
||||
|
Loading…
Reference in New Issue
Block a user