diff options
author | Oliver Borm (oli) <oli.borm@web.de> | 2009-03-13 20:48:59 +0000 |
---|---|---|
committer | Oliver Borm (oli) <oli.borm@web.de> | 2009-03-13 20:48:59 +0000 |
commit | 214f4b9f89d96ca8780970403abe871c58f699d2 (patch) | |
tree | dafc6c97ad2346f9df9ef4c64105aba83ff88d3d /sci-libs | |
parent | sci-libs/openfoam-solvers: Version bump (diff) | |
download | sunrise-reviewed-214f4b9f89d96ca8780970403abe871c58f699d2.tar.gz sunrise-reviewed-214f4b9f89d96ca8780970403abe871c58f699d2.tar.bz2 sunrise-reviewed-214f4b9f89d96ca8780970403abe871c58f699d2.zip |
sci-libs/openfoam-utilities: Version bump
svn path=/sunrise/; revision=8068
Diffstat (limited to 'sci-libs')
-rw-r--r-- | sci-libs/openfoam-utilities/ChangeLog | 5 | ||||
-rw-r--r-- | sci-libs/openfoam-utilities/Manifest | 9 | ||||
-rw-r--r-- | sci-libs/openfoam-utilities/files/OpenFOAM-1.5-ggi.patch | 233 | ||||
-rw-r--r-- | sci-libs/openfoam-utilities/openfoam-utilities-1.5_p20090311.ebuild (renamed from sci-libs/openfoam-utilities/openfoam-utilities-1.5_p20090204.ebuild) | 9 |
4 files changed, 248 insertions, 8 deletions
diff --git a/sci-libs/openfoam-utilities/ChangeLog b/sci-libs/openfoam-utilities/ChangeLog index 55bf8bdb8..6acaa8781 100644 --- a/sci-libs/openfoam-utilities/ChangeLog +++ b/sci-libs/openfoam-utilities/ChangeLog @@ -2,6 +2,11 @@ # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 # $Header: $ + 13 Mar 2009; Oliver Borm (boroli) <oli.borm@web.de> + -openfoam-utilities-1.5_p20090204.ebuild, + +openfoam-utilities-1.5_p20090311.ebuild, +files/OpenFOAM-1.5-ggi.patch: + Version bump + 13 Feb 2009; Oliver Borm (boroli) <oli.borm@web.de> -openfoam-utilities-1.4.1_p20080827.ebuild, -files/openfoam-utilities-compile-1.4.1_p20080827.patch: diff --git a/sci-libs/openfoam-utilities/Manifest b/sci-libs/openfoam-utilities/Manifest index 0247014d1..6087d2330 100644 --- a/sci-libs/openfoam-utilities/Manifest +++ b/sci-libs/openfoam-utilities/Manifest @@ -1,7 +1,8 @@ AUX OpenFOAM-1.5-compile.patch 15006 RMD160 ba8423526b5244e3c30d9d38830a2fe79e3c2a1a SHA1 7d275039cea1fe8a3c28fafeda1fef3665360f83 SHA256 6cb940b6c559a846ec65184db8f7c7966d1bef105d5bdad6ca4afd3f1b4d5b89 +AUX OpenFOAM-1.5-ggi.patch 5907 RMD160 9a678e2fd7d36e862ffa1ed7e18aa4a073b77ea3 SHA1 2053a2e4e0c96500330b8ec233673391cb7487cf SHA256 e592d47ffee2fe9495378860932630936d5d838cf7290fb10d1e298986729b6c +DIST OpenFOAM-1.5-git-1.5_p20090311.patch 711366 RMD160 ac9f6710aa9c92473068c18cf97ca2b25dc904e8 SHA1 068ade9111558adf4b2330e6acb5aabfe55f58fe SHA256 393ad127f9bd2cf6eb8826d65e2528d83ad8b6cceeab3de5ed04fb01746e3201 +DIST OpenFOAM-1.5-svn.patch 4002548 RMD160 75b28c0c9c03b3e3886d0d90e8c631233d0734a2 SHA1 349e50a91095e0ff0e75b41f8eb8453623d5e4a8 SHA256 2a5872a4dbb8f58cb55b1ec64bcdc6f8e462ce2a541d21f1a8fc5faeb345d7d4 DIST OpenFOAM-1.5.General.tgz 117334661 RMD160 bccaa9f8f99d31aa6c791d40b30dd9ad4f534041 SHA1 3577f562dc1f54bb32e1e0ef43f979418212c2f7 SHA256 d4cba2d9475523a53cea80b8d39da70d12bfffb9f46e2d1442946ba4a23efd31 -DIST openfoam-kernel-1.5_p20090204.patch 368420 RMD160 de935d4163cc893c8ac7ca13ea4badcd22945f8b SHA1 7352c1fc74721a083310e49f79a1c79ac9526dce SHA256 d5240d11101de7cba0c9c90cfcf940e86040095b11c975f92e4c8c3c530007d2 -DIST openfoam-utilities-1.5_p20090204.patch 1052376 RMD160 d2f7f507667b6767f7ca5a111a1d48fa8bbe4c8c SHA1 73faf2117f942818cf145fb898197e8e08aecab3 SHA256 697c7e720b1455b767d0984c31f7d8d1deffa4b232126fa31299432b2cd49bc3 -EBUILD openfoam-utilities-1.5_p20090204.ebuild 2409 RMD160 cbf6050b962a0735ce04f99e8c8dd5911f7bf3fa SHA1 091037ac19588531634be1a69363dab1cd9464b9 SHA256 0e4ce7c5503ad2b4066a681dc764f212f89b6b46cecd89e435575d7a2c13b51b -MISC ChangeLog 3243 RMD160 2abc277e097124fc7f0d112f30bf6a76b275654c SHA1 9985c45148bbff74a1a04811fb2fdc026c63c13d SHA256 f67380f4fa8f57ca0dace4095501df8eb99200f2167b0ad8a656d5651e00d6d0 +EBUILD openfoam-utilities-1.5_p20090311.ebuild 2456 RMD160 942823d55e129c880a23545ca9c475b2d33f2dfb SHA1 407834483fcd9ee228fbb980774cf95088771359 SHA256 8d71d4e7ff5b316abaa6d9fd1e94031ec74d1474f389e8dc56cb6a251c06f39f +MISC ChangeLog 3432 RMD160 80a3953a4dea560fb997572791ddafdd3dc6c4af SHA1 a88d6b579cf00dd83f331e3876ce579cb1c07ffb SHA256 977bfeb4838e5aa4a3b98e17fb614113de8eabfa94b8207988fd4144258b2a6a MISC metadata.xml 170 RMD160 645927a396fdc21cdeb089fe42c5397332420ea6 SHA1 ac7f48a14fec325926f9ce1be8fbf1f311b4f2e4 SHA256 d797a2ec6f9dc516c9f9c1a758ee87ad3e8c43101b5dc76c2f872d5bd4639b42 diff --git a/sci-libs/openfoam-utilities/files/OpenFOAM-1.5-ggi.patch b/sci-libs/openfoam-utilities/files/OpenFOAM-1.5-ggi.patch new file mode 100644 index 000000000..155905018 --- /dev/null +++ b/sci-libs/openfoam-utilities/files/OpenFOAM-1.5-ggi.patch @@ -0,0 +1,233 @@ +--- OpenFOAM-1.5/src/OpenFOAM/meshes/polyMesh/polyPatches/basic/coupled/coupledPolyPatch.H 2009-03-12 16:57:20.000000000 +0100 ++++ OpenFOAM-1.5-dev/src/OpenFOAM/meshes/polyMesh/polyPatches/basic/coupled/coupledPolyPatch.H 2009-01-21 13:25:35.000000000 +0100 +@@ -54,9 +54,14 @@ + : + public polyPatch + { +- // Private data ++protected: ++ ++ // Protected data ++ ++ // Alowing derived classes to create their own transformation ++ // HJ, 24/Oct/2008 + +- //- offset (distance) vector from one side of the couple to the other ++ //- Offset (distance) vector from one side of the couple to the other + mutable vectorField separation_; + + //- Face transformation tensor +--- OpenFOAM-1.5/src/OpenFOAM/meshes/primitiveMesh/PrimitivePatch/PrimitivePatch.H 2009-03-12 16:57:20.000000000 +0100 ++++ OpenFOAM-1.5-dev/src/OpenFOAM/meshes/primitiveMesh/PrimitivePatch/PrimitivePatch.H 2009-01-21 13:25:37.000000000 +0100 +@@ -173,6 +173,11 @@ + mutable Field<PointType>* pointNormalsPtr_; + + ++ // Static Private Data ++ ++ static const bool nSquaredProjection_; ++ ++ + // Private Member Functions + + //- Calculate edges of the patch +@@ -412,6 +417,22 @@ + labelHashSet* setPtr = NULL + ) const; + ++ //- Write VTK patch, HJ, 14/Jan/2009 ++ static void writeVTK ++ ( ++ const fileName& name, ++ const FaceListType& faces, ++ const Field<PointType>& points ++ ); ++ ++ //- Write VTK patch normals, HJ, 14/Jan/2009 ++ static void writeVTKNormals ++ ( ++ const fileName& name, ++ const FaceListType& faces, ++ const Field<PointType>& points ++ ); ++ + + // Edit + +--- OpenFOAM-1.5/src/OpenFOAM/meshes/primitiveMesh/PrimitivePatch/PrimitivePatchCheck.C 2009-03-12 16:57:20.000000000 +0100 ++++ OpenFOAM-1.5-dev/src/OpenFOAM/meshes/primitiveMesh/PrimitivePatch/PrimitivePatchCheck.C 2009-01-21 13:25:37.000000000 +0100 +@@ -30,6 +30,7 @@ + #include "PrimitivePatch.H" + #include "Map.H" + #include "ListOps.H" ++#include "OFstream.H" + + // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +@@ -331,6 +332,166 @@ + } + + ++template ++< ++ class Face, ++ template<class> class FaceList, ++ class PointField, ++ class PointType ++> ++void PrimitivePatch<Face, FaceList, PointField, PointType>::writeVTK ++( ++ const fileName& name, ++ const FaceListType& faces, ++ const Field<PointType>& points ++) ++{ ++ // Write patch and points into VTK ++ OFstream mps(name + ".vtk"); ++ ++ mps << "# vtk DataFile Version 2.0" << nl ++ << name << ".vtk" << nl ++ << "ASCII" << nl ++ << "DATASET POLYDATA" << nl ++ << "POINTS " << points.size() << " float" << nl; ++ ++ // Write points ++ List<float> mlpBuffer(3*points.size()); ++ ++ label counter = 0; ++ forAll (points, i) ++ { ++ mlpBuffer[counter++] = float(points[i].x()); ++ mlpBuffer[counter++] = float(points[i].y()); ++ mlpBuffer[counter++] = float(points[i].z()); ++ } ++ ++ forAll (mlpBuffer, i) ++ { ++ mps << mlpBuffer[i] << ' '; ++ ++ if (i > 0 && (i % 10) == 0) ++ { ++ mps << nl; ++ } ++ } ++ ++ // Write faces ++ label nFaceVerts = 0; ++ ++ forAll (faces, faceI) ++ { ++ nFaceVerts += faces[faceI].size() + 1; ++ } ++ labelList mlfBuffer(nFaceVerts); ++ ++ counter = 0; ++ forAll (faces, faceI) ++ { ++ const Face& f = faces[faceI]; ++ ++ mlfBuffer[counter++] = f.size(); ++ ++ forAll (f, fpI) ++ { ++ mlfBuffer[counter++] = f[fpI]; ++ } ++ } ++ mps << nl; ++ ++ mps << "POLYGONS " << faces.size() << ' ' << nFaceVerts << endl; ++ ++ forAll (mlfBuffer, i) ++ { ++ mps << mlfBuffer[i] << ' '; ++ ++ if (i > 0 && (i % 10) == 0) ++ { ++ mps << nl; ++ } ++ } ++ mps << nl; ++} ++ ++ ++template ++< ++ class Face, ++ template<class> class FaceList, ++ class PointField, ++ class PointType ++> ++void PrimitivePatch<Face, FaceList, PointField, PointType>::writeVTKNormals ++( ++ const fileName& name, ++ const FaceListType& faces, ++ const Field<PointType>& points ++) ++{ ++ // Write patch and points into VTK ++ OFstream mps(name + ".vtk"); ++ ++ mps << "# vtk DataFile Version 2.0" << nl ++ << name << ".vtk" << nl ++ << "ASCII" << nl ++ << "DATASET POLYDATA" << nl ++ << "POINTS " << faces.size() << " float" << nl; ++ ++ // Write points ++ List<float> mlPointBuffer(3*faces.size()); ++ ++ label counter = 0; ++ forAll (faces, i) ++ { ++ const vector c = faces[i].centre(points); ++ ++ mlPointBuffer[counter++] = float(c.x()); ++ mlPointBuffer[counter++] = float(c.y()); ++ mlPointBuffer[counter++] = float(c.z()); ++ } ++ ++ forAll (mlPointBuffer, i) ++ { ++ mps << mlPointBuffer[i] << ' '; ++ ++ if (i > 0 && (i % 10) == 0) ++ { ++ mps << nl; ++ } ++ } ++ mps << nl; ++ ++ // Write normals ++ mps << "POINT_DATA " << faces.size() << nl ++ << "FIELD attributes " << 1 << nl ++ << "normals" << " 3 " ++ << faces.size() << " float" << nl; ++ ++ List<float> mlNormalBuffer(3*faces.size()); ++ ++ counter = 0; ++ forAll (faces, i) ++ { ++ const vector n = faces[i].normal(points); ++ ++ mlNormalBuffer[counter++] = float(n.x()); ++ mlNormalBuffer[counter++] = float(n.y()); ++ mlNormalBuffer[counter++] = float(n.z()); ++ } ++ ++ forAll (mlNormalBuffer, i) ++ { ++ mps << mlNormalBuffer[i] << ' '; ++ ++ if (i > 0 && (i % 10) == 0) ++ { ++ mps << nl; ++ } ++ } ++ mps << nl; ++} ++ ++ + // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + + } // End namespace Foam diff --git a/sci-libs/openfoam-utilities/openfoam-utilities-1.5_p20090204.ebuild b/sci-libs/openfoam-utilities/openfoam-utilities-1.5_p20090311.ebuild index 3213ceda0..754a24a28 100644 --- a/sci-libs/openfoam-utilities/openfoam-utilities-1.5_p20090204.ebuild +++ b/sci-libs/openfoam-utilities/openfoam-utilities-1.5_p20090311.ebuild @@ -13,8 +13,8 @@ MY_P="${MY_PN}-${MY_PV}" DESCRIPTION="OpenFOAM - utilities" HOMEPAGE="http://www.opencfd.co.uk/openfoam/" SRC_URI="mirror://sourceforge/foam/${MY_P}.General.gtgz -> ${MY_P}.General.tgz - http://omploader.org/vMTdrOQ/${P}.patch - http://omploader.org/vMTdrZA/openfoam-kernel-${PVR}.patch" + http://omploader.org/vMWRlMQ/${MY_P}-git-${PVR}.patch + http://omploader.org/vMWRlMA/${MY_P}-svn.patch" LICENSE="GPL-2" SLOT="1.5" @@ -39,8 +39,9 @@ pkg_setup() { src_prepare() { epatch "${FILESDIR}"/${MY_P}-compile.patch - epatch "${DISTDIR}"/${P}.patch - epatch "${DISTDIR}"/openfoam-kernel-${PVR}.patch + epatch "${DISTDIR}"/${MY_P}-svn.patch + epatch "${DISTDIR}"/${MY_PN}-git-${PVR}.patch + epatch "${FILESDIR}"/${MY_P}-ggi.patch chmod +x applications/utilities/postProcessing/graphics/ensightFoamReader/Allwmake } |