# 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, additionalIncludePaths) # Test if libmpi exists ====================================================== (mpi, mpiIncDir, mpiLibDir) = Dist.checkMpi(additionalLibPaths, additionalIncludePaths) (mpi4py, mpi4pyIncDir, mpi4pyLibDir) = Dist.checkMpi4py(additionalLibPaths, additionalIncludePaths) # Compilation des fortrans ==================================================== if (f77compiler == "None"): print "Error: a fortran 77 compiler is required for compiling Converter." args = Dist.getForArgs() opt = '' for c in xrange(len(args)): opt += 'FOPT' + str(c) + '=' + args[c] + ' ' os.system("make -e FC=" + f77compiler + " WDIR=Converter/Fortran " + opt) prod = os.getenv("ELSAPROD") if prod is None: prod = 'xx' # Setting libraryDirs, include dirs and libraries =============================
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',