Updates, compilation
This commit is contained in:
parent
6d0c34e97d
commit
6e54723ee0
11 changed files with 68 additions and 26 deletions
|
@ -38,7 +38,7 @@ export CMAKE_HOME=$WM_THIRD_PARTY_DIR/cmake-2.4.6/platforms/$WM_ARCH
|
||||||
if [ -r $CMAKE_HOME ]; then
|
if [ -r $CMAKE_HOME ]; then
|
||||||
# determine the cmake to be used
|
# determine the cmake to be used
|
||||||
unset CMAKE_HOME
|
unset CMAKE_HOME
|
||||||
for cmake in cmake-2.6.4 cmake-2.6.2 cmake-2.4.6
|
for cmake in cmake-2.8.2 cmake-2.6.4 cmake-2.6.2 cmake-2.4.6
|
||||||
do
|
do
|
||||||
cmake=$WM_THIRD_PARTY_DIR/$cmake/platforms/$WM_ARCH
|
cmake=$WM_THIRD_PARTY_DIR/$cmake/platforms/$WM_ARCH
|
||||||
if [ -r $cmake ]
|
if [ -r $cmake ]
|
||||||
|
|
|
@ -35,7 +35,7 @@
|
||||||
|
|
||||||
# determine the cmake to be used
|
# determine the cmake to be used
|
||||||
unsetenv CMAKE_HOME
|
unsetenv CMAKE_HOME
|
||||||
foreach cmake ( cmake-2.6.4 cmake-2.6.2 cmake-2.4.6 )
|
foreach cmake ( cmake-2.8.2 cmake-2.6.4 cmake-2.6.2 cmake-2.4.6 )
|
||||||
set cmake=$WM_THIRD_PARTY_DIR/$cmake/platforms/$WM_ARCH
|
set cmake=$WM_THIRD_PARTY_DIR/$cmake/platforms/$WM_ARCH
|
||||||
if ( -r $cmake ) then
|
if ( -r $cmake ) then
|
||||||
setenv CMAKE_HOME $cmake
|
setenv CMAKE_HOME $cmake
|
||||||
|
@ -44,8 +44,8 @@ foreach cmake ( cmake-2.6.4 cmake-2.6.2 cmake-2.4.6 )
|
||||||
endif
|
endif
|
||||||
end
|
end
|
||||||
|
|
||||||
if ( ! $?ParaView_MAJOR ) setenv ParaView_MAJOR paraview-3.6
|
if ( ! $?ParaView_MAJOR ) setenv ParaView_MAJOR paraview-3.8
|
||||||
if ( ! $?ParaView_VERSION ) setenv ParaView_VERSION 3.6.1
|
if ( ! $?ParaView_VERSION ) setenv ParaView_VERSION 3.8.0
|
||||||
|
|
||||||
setenv ParaView_INST_DIR $WM_THIRD_PARTY_DIR/paraview-$ParaView_VERSION
|
setenv ParaView_INST_DIR $WM_THIRD_PARTY_DIR/paraview-$ParaView_VERSION
|
||||||
setenv ParaView_DIR $ParaView_INST_DIR/platforms/$WM_ARCH$WM_COMPILER
|
setenv ParaView_DIR $ParaView_INST_DIR/platforms/$WM_ARCH$WM_COMPILER
|
||||||
|
|
|
@ -98,7 +98,9 @@ if ( ! $?WM_ARCH_OPTION ) setenv WM_ARCH_OPTION 64
|
||||||
if ( ! $?WM_PRECISION_OPTION ) setenv WM_PRECISION_OPTION DP
|
if ( ! $?WM_PRECISION_OPTION ) setenv WM_PRECISION_OPTION DP
|
||||||
|
|
||||||
# WM_COMPILE_OPTION = Opt | Debug | Prof
|
# WM_COMPILE_OPTION = Opt | Debug | Prof
|
||||||
if ( ! $?WM_COMPILE_OPTION ) setenv WM_COMPILE_OPTION Opt
|
#if ( ! $?WM_COMPILE_OPTION ) setenv WM_COMPILE_OPTION Opt
|
||||||
|
#setenv WM_COMPILE_OPTION Opt
|
||||||
|
setenv WM_COMPILE_OPTION Debug
|
||||||
|
|
||||||
# WM_MPLIB = | OPENMPI | MPICH | MPICH-GM | HPMPI | GAMMA | MPI | QSMPI
|
# WM_MPLIB = | OPENMPI | MPICH | MPICH-GM | HPMPI | GAMMA | MPI | QSMPI
|
||||||
if ( ! $?WM_MPLIB ) setenv WM_MPLIB OPENMPI
|
if ( ! $?WM_MPLIB ) setenv WM_MPLIB OPENMPI
|
||||||
|
|
|
@ -63,14 +63,13 @@ coordinateSystems/coordinateSystems.C
|
||||||
coordinateSystems/parabolicCylindricalCS.C
|
coordinateSystems/parabolicCylindricalCS.C
|
||||||
coordinateSystems/ellipticCylindricalCS.C
|
coordinateSystems/ellipticCylindricalCS.C
|
||||||
coordinateSystems/toroidalCS.C
|
coordinateSystems/toroidalCS.C
|
||||||
coordinateSystems/cartesianCS.C
|
|
||||||
coordinateSystems/newCoordinateSystem.C
|
coordinateSystems/newCoordinateSystem.C
|
||||||
coordinateSystems/cylindricalCS.C
|
coordinateSystems/cylindricalCS.C
|
||||||
coordinateSystems/sphericalCS.C
|
coordinateSystems/sphericalCS.C
|
||||||
coordinateSystems/coordinateRotation/coordinateRotation/coordinateRotation.C
|
coordinateSystems/coordinateRotation/coordinateRotation.C
|
||||||
coordinateSystems/coordinateRotation/EulerCoordinateRotation/EulerCoordinateRotation.C
|
coordinateSystems/coordinateRotation/EulerCoordinateRotation.C
|
||||||
coordinateSystems/coordinateRotation/STARCDCoordinateRotation/STARCDCoordinateRotation.C
|
coordinateSystems/coordinateRotation/STARCDCoordinateRotation.C
|
||||||
coordinateSystems/coordinateRotation/axisCoordinateRotation/axisCoordinateRotation.C
|
coordinateSystems/coordinateRotation/axisCoordinateRotation.C
|
||||||
|
|
||||||
primitives/random/Random.C
|
primitives/random/Random.C
|
||||||
|
|
||||||
|
@ -98,7 +97,6 @@ $(Streams)/token/tokenIO.C
|
||||||
|
|
||||||
IOstreams = $(Streams)/IOstreams
|
IOstreams = $(Streams)/IOstreams
|
||||||
$(IOstreams)/IOstream.C
|
$(IOstreams)/IOstream.C
|
||||||
$(IOstreams)/versionNumber.C
|
|
||||||
$(IOstreams)/Istream.C
|
$(IOstreams)/Istream.C
|
||||||
$(IOstreams)/Ostream.C
|
$(IOstreams)/Ostream.C
|
||||||
|
|
||||||
|
@ -206,9 +204,6 @@ dimensionedTypes/dimensionedTensor/dimensionedTensor.C
|
||||||
matrices/solution/solution.C
|
matrices/solution/solution.C
|
||||||
matrices/constraint/scalarConstraint.C
|
matrices/constraint/scalarConstraint.C
|
||||||
|
|
||||||
scalarMatrix = matrices/scalarMatrix
|
|
||||||
$(scalarMatrix)/scalarMatrix.C
|
|
||||||
|
|
||||||
LUscalarMatrix = matrices/LUscalarMatrix
|
LUscalarMatrix = matrices/LUscalarMatrix
|
||||||
$(LUscalarMatrix)/LUscalarMatrix.C
|
$(LUscalarMatrix)/LUscalarMatrix.C
|
||||||
$(LUscalarMatrix)/procLduMatrix.C
|
$(LUscalarMatrix)/procLduMatrix.C
|
||||||
|
|
|
@ -162,9 +162,9 @@ int Foam::debug::optimisationSwitch(const char* name, const int defaultValue)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
double Foam::debug::debugTolerance
|
double Foam::debug::tolerances
|
||||||
(
|
(
|
||||||
const char* switchName,
|
const char* name,
|
||||||
const double defaultValue
|
const double defaultValue
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
@ -174,10 +174,5 @@ double Foam::debug::debugTolerance
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
} // End namespace debug
|
|
||||||
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
||||||
|
|
||||||
|
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
|
|
|
@ -75,7 +75,7 @@ namespace debug
|
||||||
int optimisationSwitch(const char* name, const int defaultValue = 0);
|
int optimisationSwitch(const char* name, const int defaultValue = 0);
|
||||||
|
|
||||||
//- Lookup tolerances switch or add default value.
|
//- Lookup tolerances switch or add default value.
|
||||||
double optimisationSwitch(const char* name, const double defaultValue = 0);
|
double tolerances(const char* name, const double defaultValue = 0);
|
||||||
|
|
||||||
//- Internal function to lookup a sub-dictionary from controlDict.
|
//- Internal function to lookup a sub-dictionary from controlDict.
|
||||||
dictionary& switchSet(const char* subDictName, dictionary*& subDictPtr);
|
dictionary& switchSet(const char* subDictName, dictionary*& subDictPtr);
|
||||||
|
|
|
@ -35,6 +35,12 @@ Global
|
||||||
Description
|
Description
|
||||||
OpenFOAM version number static string.
|
OpenFOAM version number static string.
|
||||||
|
|
||||||
|
Global
|
||||||
|
Foam::FOAMbuild
|
||||||
|
|
||||||
|
Description
|
||||||
|
OpenFOAM version number static string with build information
|
||||||
|
|
||||||
SourceFiles
|
SourceFiles
|
||||||
global.Cver
|
global.Cver
|
||||||
|
|
||||||
|
@ -48,7 +54,7 @@ SourceFiles
|
||||||
namespace Foam
|
namespace Foam
|
||||||
{
|
{
|
||||||
extern const char* const FOAMversion;
|
extern const char* const FOAMversion;
|
||||||
extern const char* const FOAMDevRevisionNumber;
|
extern const char* const FOAMbuild;
|
||||||
}
|
}
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
@ -56,3 +62,4 @@ namespace Foam
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
|
|
||||||
|
|
|
@ -37,7 +37,6 @@ Description
|
||||||
|
|
||||||
const char* const Foam::FOAMversion = "VERSION_STRING";
|
const char* const Foam::FOAMversion = "VERSION_STRING";
|
||||||
const char* const Foam::FOAMbuild = "BUILD_STRING";
|
const char* const Foam::FOAMbuild = "BUILD_STRING";
|
||||||
const char* const Foam::FOAMDevRevisionNumber = STR_FOAM_DEV_REVISION_NUMBER(FOAM_DEV_REVISION_NUMBER);
|
|
||||||
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
44
src/OpenFOAM/primitives/Lists/wordIOList.C
Normal file
44
src/OpenFOAM/primitives/Lists/wordIOList.C
Normal file
|
@ -0,0 +1,44 @@
|
||||||
|
/*---------------------------------------------------------------------------*\
|
||||||
|
========= |
|
||||||
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
|
\\ / O peration |
|
||||||
|
\\ / A nd | Copyright held by original author
|
||||||
|
\\/ M anipulation |
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
License
|
||||||
|
This file is part of OpenFOAM.
|
||||||
|
|
||||||
|
OpenFOAM is free software; you can redistribute it and/or modify it
|
||||||
|
under the terms of the GNU General Public License as published by the
|
||||||
|
Free Software Foundation; either version 2 of the License, or (at your
|
||||||
|
option) any later version.
|
||||||
|
|
||||||
|
OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
|
||||||
|
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||||
|
for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with OpenFOAM; if not, write to the Free Software Foundation,
|
||||||
|
Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
|
|
||||||
|
Description
|
||||||
|
Declaration of IOList ClassNames for IOLists that do not have .C files.
|
||||||
|
|
||||||
|
\*---------------------------------------------------------------------------*/
|
||||||
|
|
||||||
|
#include "wordIOList.H"
|
||||||
|
#include "addToRunTimeSelectionTable.H"
|
||||||
|
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
namespace Foam
|
||||||
|
{
|
||||||
|
defineCompoundTypeName(List<word>, wordList);
|
||||||
|
addCompoundToRunTimeSelectionTable(List<word>, wordList);
|
||||||
|
|
||||||
|
defineTemplateTypeNameAndDebugWithName(wordIOList, "wordList", 0);
|
||||||
|
defineTemplateTypeNameAndDebugWithName(wordListIOList, "wordListList", 0);
|
||||||
|
}
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
|
@ -5,7 +5,7 @@ LD = ld
|
||||||
|
|
||||||
FOAM_DEV_REVISION_NUMBER = $(shell foamVersion -revision)
|
FOAM_DEV_REVISION_NUMBER = $(shell foamVersion -revision)
|
||||||
|
|
||||||
GFLAGS = -D$(WM_ARCH) -D$(WM_PRECISION_OPTION) -DFOAM_DEV_REVISION_NUMBER=$(FOAM_DEV_REVISION_NUMBER)
|
GFLAGS = -D$(WM_ARCH) -DWM_$(WM_PRECISION_OPTION)
|
||||||
GINC =
|
GINC =
|
||||||
GLIBS = -lm
|
GLIBS = -lm
|
||||||
GLIB_LIBS =
|
GLIB_LIBS =
|
||||||
|
|
Reference in a new issue