diff --git a/applications/utilities/surface/surfaceFeatureConvert/surfaceFeatureConvert.C b/applications/utilities/surface/surfaceFeatureConvert/surfaceFeatureConvert.C index 47ba9eb2a9..03c18cd3e9 100644 --- a/applications/utilities/surface/surfaceFeatureConvert/surfaceFeatureConvert.C +++ b/applications/utilities/surface/surfaceFeatureConvert/surfaceFeatureConvert.C @@ -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" diff --git a/etc/settings.csh b/etc/settings.csh index 865d486ad0..6b1631073c 100644 --- a/etc/settings.csh +++ b/etc/settings.csh @@ -130,6 +130,8 @@ endif # Communications library # ~~~~~~~~~~~~~~~~~~~~~~ +unset MPI_ARCH_PATH + switch ("$WM_MPLIB") case OPENMPI: set mpi_version=openmpi-1.2.6 diff --git a/src/OSspecific/Unix/Unix.C b/src/OSspecific/Unix/Unix.C index 830f48e71a..e50444a236 100644 --- a/src/OSspecific/Unix/Unix.C +++ b/src/OSspecific/Unix/Unix.C @@ -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 } diff --git a/src/sampling/probes/probes.C b/src/sampling/probes/probes.C index 2fcd9688e6..b47f52e1f0 100644 --- a/src/sampling/probes/probes.C +++ b/src/sampling/probes/probes.C @@ -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(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) diff --git a/src/triSurface/triSurface/triSurface.C b/src/triSurface/triSurface/triSurface.C index 265b08d9c8..b58c2f6f58 100644 --- a/src/triSurface/triSurface/triSurface.C +++ b/src/triSurface/triSurface/triSurface.C @@ -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);