コード例 #1
0
import KCore.Dist as Dist
from KCore.config import *
(hdf, hdfIncDir, hdfLibDir) = Dist.checkHdf(additionalLibPaths,
                                            additionalIncludePaths)
(png, pngIncDir, pngLibDir) = Dist.checkPng(additionalLibPaths,
                                            additionalIncludePaths)

#==============================================================================
# Fichiers c++
#==============================================================================
cpp_srcs = [
    'Converter/Converter1.cpp', 'Converter/copy.cpp',
    'Converter/extractVars.cpp', 'Converter/initVars.cpp',
    'Converter/addVars.cpp', 'Converter/randomizeVar.cpp',
    'Converter/Converter7.cpp', 'Converter/ediff.cpp', 'Converter/norm.cpp',
    'Converter/normalize.cpp', 'Converter/magnitude.cpp',
    'Converter/convertBAR2Struct.cpp', 'Converter/convertStruct2Tetra.cpp',
    'Converter/convertStruct2TetraBary.cpp',
    'Converter/convertStruct2Hexa.cpp', 'Converter/convertStruct2NGon.cpp',
    'Converter/convertHexa2Struct.cpp', 'Converter/convertUnstruct2NGon.cpp',
    'Converter/convertUnstruct2Hexa.cpp', 'Converter/convertHexa2Tetra.cpp',
    'Converter/convertPrism2Tetra.cpp', 'Converter/convertPyra2Tetra.cpp',
    'Converter/convertNGon2TetraBary.cpp',
    'Converter/convertArray2TetraBary.cpp', 'Converter/convertTri2Quad.cpp',
    'Converter/getValue.cpp', 'Converter/center2Node.cpp',
    'Converter/node2Center.cpp', 'Converter/node2ExtCenter.cpp',
    'Converter/extCenter2Node.cpp', 'Converter/center2ExtCenter.cpp',
    'Converter/convertFilePyTree.cpp', 'Converter/setPartialFields.cpp',
    'Converter/IO/DynArrayIO.cpp', 'Converter/IO/GenIO.cpp',
    'Converter/IO/GenIO_endian.cpp', 'Converter/IO/GenIO_fmt.cpp',
    'Converter/IO/GenIO_fmttp.cpp', 'Converter/IO/GenIO_fmtv3d.cpp',
コード例 #2
0
ファイル: t1.py プロジェクト: guillaume-florent/cassiopee-ce
# Generator installation test
import KCore.Dist as Dist
Dist.checkModuleImport('Generator')
コード例 #3
0
# RigidMotion installation test
import KCore.Dist as Dist
Dist.checkModuleImport('RigidMotion')
コード例 #4
0
ファイル: t1.py プロジェクト: guillaume-florent/cassiopee-ce
# Dist2Walls installation test
import KCore.Dist as Dist
Dist.checkModuleImport('Dist2Walls')
コード例 #5
0
# Intersector installation test
import KCore.Dist as Dist
Dist.checkModuleImport('Intersector')    
コード例 #6
0
# Connector installation test
import KCore.Dist as Dist
Dist.checkModuleImport('Connector')    
コード例 #7
0
ファイル: t1.py プロジェクト: guillaume-florent/cassiopee-ce
# Post installation test
import KCore.Dist as Dist
Dist.checkModuleImport('Post')
コード例 #8
0
ファイル: setup.py プロジェクト: MicK7/cassiopee_anaconda
#!/usr/bin/env python
from distutils.core import setup, Extension
import os, sys

#=============================================================================
# Converter requires:
# ELSAPROD variable defined in environment
# C++ compiler
# Fortran compiler: defined in config.py
# Numpy
# KCore library
#=============================================================================

# Write setup.cfg file
import KCore.Dist as Dist
Dist.writeSetupCfg()

# Test if numpy exists =======================================================
(numpyVersion, numpyIncDir, numpyLibDir) = Dist.checkNumpy()

# Test if kcore exists =======================================================
(kcoreVersion, kcoreIncDir, kcoreLibDir) = Dist.checkKCore()

from KCore.config import *

# Test if libhdf5 exists ======================================================
(hdf, hdfIncDir, hdfLibDir) = Dist.checkHdf(additionalLibPaths,
                                            additionalIncludePaths)

# Test if libpng exists ======================================================
(png, pngIncDir, pngLibDir) = Dist.checkPng(additionalLibPaths,
コード例 #9
0
import KCore.Dist as Dist
from KCore.config import *
mpi, mpiIndDic, mpiLibDir = Dist.checkMpi(additionalLibPaths, additionalIncludePaths)
#==============================================================================
# Fichiers C++
#==============================================================================
cpp_srcs = ['Connector/KInterp/BlkInterp.cpp',
            'Connector/KInterp/KMesh.cpp',
            'Connector/KInterp/BlkIntTreeNode.cpp',
            'Connector/KInterp/BlkInterpData.cpp',
            'Connector/KInterp/BlkInterpDataStruct.cpp',        
            'Connector/KInterp/BlkInterpWithKMesh.cpp',
            'Connector/KInterp/BlkInterpAdt.cpp',
            'Connector/KInterp/BlkInterpAdt_getCell.cpp',
            'Connector/optimizeOverlap.cpp',
            'Connector/maximizeBlankedCells.cpp',
            'Connector/maskXRay.cpp',
            'Connector/maskGen.cpp',
            'Connector/blankCells.cpp',
            'Connector/blankCellsTetra.cpp',
            'Connector/getIntersectingDomainsAABB.cpp',
            'Connector/changeWall.cpp',
            'Connector/changeWallEX.cpp',
            'Connector/setDoublyDefinedBC.cpp',
            'Connector/getInterpolatedPoints.cpp',
            'Connector/getInterpolatedEXPoints.cpp',
            'Connector/setInterpolations.cpp',
            'Connector/setInterpData.cpp',
            'Connector/setInterpDataCons.cpp',
            'Connector/setInterpDataForGhostCells.cpp',
            'Connector/initNuma.cpp',
コード例 #10
0
#=============================================================================
# CPlot requires:
# C++ compiler
# Numpy
# KCore
# GL
# optional: PNG, MPEG, OSMesa
#=============================================================================

# If you want to use CPlot as a offscreen plotter (as on clusters)
# set UseOSMesa to True (requires mesa)
UseOSMesa = KCore.config.CPlotOffScreen

# Write setup.cfg
import KCore.Dist as Dist
Dist.writeSetupCfg()

# Test if numpy exists =======================================================
(numpyVersion, numpyIncDir, numpyLibDir) = Dist.checkNumpy()

# Test if kcore exists =======================================================
(kcoreVersion, kcoreIncDir, kcoreLibDir) = Dist.checkKCore()

libraries = ["GLU", "kcore", "Xi", "Xmu", "rt"]
from KCore.config import *
if not UseOSMesa: libraries += ["GL"]

#libraryDirs = [kcoreLibDir]
libraryDirs = [kcoreLibDir, '/usr/X11R6/lib64']
includeDirs = [numpyIncDir, kcoreIncDir]
コード例 #11
0
#=============================================================================
# CPlot requires:
# C++ compiler
# Numpy
# KCore
# GL
# optional: GLEW, PNG, MPEG, OSMesa
#=============================================================================

# If you want to use CPlot as a offscreen plotter (as on clusters)
# set UseOSMesa to True (requires mesa)
UseOSMesa = KCore.config.CPlotOffScreen

# Write setup.cfg
import KCore.Dist as Dist
Dist.writeSetupCfg()

# Test if numpy exists =======================================================
(numpyVersion, numpyIncDir, numpyLibDir) = Dist.checkNumpy()

# Test if kcore exists =======================================================
(kcoreVersion, kcoreIncDir, kcoreLibDir) = Dist.checkKCore()

mySystem = Dist.getSystem()
if mySystem[0] == 'mingw' and mySystem[1] == '32':
    libraries = ["cplot", "kcore", "wsock32", "winmm", "gdi32"]
    libGL = ['opengl32', 'glu32']
elif mySystem[0] == 'mingw' and mySystem[1] == '64':
    libraries = ["cplot", "kcore", "wsock32", "winmm", "gdi32"]
    libGL = ['opengl32', 'glu32']
elif mySystem[0] == 'Darwin':
コード例 #12
0
#!/usr/bin/env python
from distutils.core import setup, Extension
import os

#=============================================================================
# Connector requires:
# C++ compiler
# Fortran compiler
# Numpy
# KCore
#=============================================================================

# Write setup.cfg file
import KCore.Dist as Dist
Dist.writeSetupCfg()

# Test if numpy exists =======================================================
(numpyVersion, numpyIncDir, numpyLibDir) = Dist.checkNumpy()

# Test if kcore exists =======================================================
(kcoreVersion, kcoreIncDir, kcoreLibDir) = Dist.checkKCore()

from KCore.config import *

# Test if libmpi exists ======================================================
(mpi, mpiIncDir, mpiLibDir) = Dist.checkMpi(additionalLibPaths,
                                            additionalIncludePaths)

# Compilation des fortrans ===================================================
prod = os.getenv("ELSAPROD")
if prod is None: prod = 'xx'
コード例 #13
0
# Distributor2 installation test
import KCore.Dist as Dist
Dist.checkModuleImport('Distributor2')    
コード例 #14
0
import KCore.Dist as Dist
from KCore.config import *
(png, pngIncDir, pngLib) = Dist.checkPng(additionalLibPaths,
                                         additionalIncludePaths)
(mpeg, mpegIncDir, mpegLib) = Dist.checkMpeg(additionalLibPaths,
                                             additionalIncludePaths)

#==============================================================================
# Fichiers C++
#==============================================================================
cpp_srcs = [
    'CPlot/render.cpp',
    'CPlot/delete.cpp',
    'CPlot/add.cpp',
    'CPlot/replace.cpp',
    'CPlot/createDL.cpp',
    'CPlot/configure.cpp',
    'CPlot/DataInstance.cpp',
    'CPlot/DataDL.cpp',
    'CPlot/displayNew.cpp',
    'CPlot/displayAgain.cpp',
    'CPlot/fitView.cpp',
    'CPlot/finalizeExport.cpp',
    'CPlot/getStringsFromPyObj.cpp',
    'CPlot/pressKey.cpp',
    'CPlot/getAllVars.cpp',
    'CPlot/get.cpp',
    'CPlot/set.cpp',
    'CPlot/setFileName.cpp',
    'CPlot/getFileExt.cpp',
    'CPlot/Data.cpp',
コード例 #15
0
# - check (Dist) -
# Check all dependencies of Cassiopee on external libs
print 'Checking all dependencies of Cassiopee'
import KCore.Dist as Dist
Dist.checkAll()
コード例 #16
0
#!/usr/bin/env python
from distutils.core import setup, Extension
import os, sys

#=============================================================================
# Converter requires:
# ELSAPROD variable defined in environment
# C++ compiler
# Fortran compiler: defined in config.py
# Numpy
# KCore library
#=============================================================================

# Write setup.cfg file
import KCore.Dist as Dist
Dist.writeSetupCfg()

# Test if numpy exists =======================================================
(numpyVersion, numpyIncDir, numpyLibDir) = Dist.checkNumpy()

# Test if kcore exists =======================================================
(kcoreVersion, kcoreIncDir, kcoreLibDir) = Dist.checkKCore()

from KCore.config import *

# Test if libhdf5 exists ======================================================
(hdf, hdfIncDir, hdfLibDir) = Dist.checkHdf(additionalLibPaths,
                                            additionalIncludePaths)

# Test if libpng exists ======================================================
(png, pngIncDir, pngLibDir) = Dist.checkPng(additionalLibPaths,
コード例 #17
0
# CPlot installation test
import KCore.Dist as Dist
Dist.checkModuleImport('CPlot')    
コード例 #18
0
# Compressor installation test
import KCore.Dist as Dist
Dist.checkModuleImport('Compressor')    
コード例 #19
0
ファイル: t1.py プロジェクト: guillaume-florent/cassiopee-ce
# Initiator installation test
import KCore.Dist as Dist
Dist.checkModuleImport('Initiator')
コード例 #20
0
ファイル: t1.py プロジェクト: guillaume-florent/cassiopee-ce
# Converter installation test
import KCore.Dist as Dist
Dist.checkModuleImport('Converter')    
コード例 #21
0
import CPlot.Tk as CTK

# CASSIOPEE var
# doit etre le chemin des sources avec les tests unitaires
CASSIOPEE = os.getenv('CASSIOPEE_SOURCES')
if CASSIOPEE is None or CASSIOPEE == '':
    CASSIOPEE = os.getenv('CASSIOPEE')
    if CASSIOPEE is None or CASSIOPEE == '':
        print('Error: CASSIOPEE must be present in your environement.')
        sys.exit()

# CFD Base
CFDBASEPATH = '/Validation/Cases'

# Systeme
mySystem = Dist.getSystem()[0]

# Support MPI?
try: 
    import mpi4py
    isMpi = True
except: isMpi = False

# Regexprs
regDiff = re.compile('DIFF')
regFailed = re.compile('FAILED')
regError = re.compile('Error:')
separator = ':'
separatorl = separator+' '
expTest1 = re.compile("_t") # normal tests
expTest2 = re.compile(".py")
コード例 #22
0
ファイル: setup.py プロジェクト: MicK7/cassiopee_anaconda
#!/usr/bin/env python
from distutils.core import setup, Extension
import os, sys

#=============================================================================
# Post requires:
# C++ compiler
# Fortran compiler
# Numpy
# KCore
#=============================================================================

# Write setup.cfg
import KCore.Dist as Dist
Dist.writeSetupCfg()

# Test if numpy exists =======================================================
(numpyVersion, numpyIncDir, numpyLibDir) = Dist.checkNumpy()

# Test if kcore exists =======================================================
(kcoreVersion, kcoreIncDir, kcoreLibDir) = Dist.checkKCore()

# Compilation des fortrans ===================================================
from KCore.config import *
if (f77compiler == "None"):
    print "Error: a fortran 77 compiler is required for compiling Post."
    sys.exit()
args = Dist.getForArgs(); opt = ''
for c in xrange(len(args)):
    opt += 'FOPT'+str(c)+'='+args[c]+' '
os.system("make -e FC="+f77compiler+" F90=true WDIR=Post/Fortran "+opt)
コード例 #23
0
# Transform installation test
import KCore.Dist as Dist
Dist.checkModuleImport('Transform')