diff options
author | Oliver Borm (oli) <oli.borm@web.de> | 2009-03-13 20:46:58 +0000 |
---|---|---|
committer | Oliver Borm (oli) <oli.borm@web.de> | 2009-03-13 20:46:58 +0000 |
commit | 847481607f22e16b1ccc6c73dd25e8610eab1fc6 (patch) | |
tree | 1fd4f08573d754f65acc2e303cc59a1ad9723c31 /sci-libs | |
parent | sci-libs/openfoam-kernel: Version bump (diff) | |
download | sunrise-reviewed-847481607f22e16b1ccc6c73dd25e8610eab1fc6.tar.gz sunrise-reviewed-847481607f22e16b1ccc6c73dd25e8610eab1fc6.tar.bz2 sunrise-reviewed-847481607f22e16b1ccc6c73dd25e8610eab1fc6.zip |
sci-libs/openfoam-solvers: Version bump
svn path=/sunrise/; revision=8067
Diffstat (limited to 'sci-libs')
-rw-r--r-- | sci-libs/openfoam-solvers/ChangeLog | 5 | ||||
-rw-r--r-- | sci-libs/openfoam-solvers/Manifest | 7 | ||||
-rw-r--r-- | sci-libs/openfoam-solvers/files/OpenFOAM-1.5-ggi.patch | 233 | ||||
-rw-r--r-- | sci-libs/openfoam-solvers/openfoam-solvers-1.5_p20090311.ebuild (renamed from sci-libs/openfoam-solvers/openfoam-solvers-1.5_p20080905.ebuild) | 8 |
4 files changed, 249 insertions, 4 deletions
diff --git a/sci-libs/openfoam-solvers/ChangeLog b/sci-libs/openfoam-solvers/ChangeLog index 074d954de..5abd5dddc 100644 --- a/sci-libs/openfoam-solvers/ChangeLog +++ b/sci-libs/openfoam-solvers/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-solvers-1.5_p20080905.ebuild, + +openfoam-solvers-1.5_p20090311.ebuild, +files/OpenFOAM-1.5-ggi.patch: + Version bump + 13 Feb 2009; Oliver Borm (boroli) <oli.borm@web.de> -openfoam-solvers-1.4.1_p20080827.ebuild, -files/openfoam-solvers-1.4.1_p20080827.patch, diff --git a/sci-libs/openfoam-solvers/Manifest b/sci-libs/openfoam-solvers/Manifest index 903f54b1c..5a58722e0 100644 --- a/sci-libs/openfoam-solvers/Manifest +++ b/sci-libs/openfoam-solvers/Manifest @@ -1,6 +1,9 @@ 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 AUX openfoam-solvers-1.5_p20080905.patch 9009 RMD160 5113997d5f0a9aad94bc66578b632c09e6d1ca31 SHA1 251eab17e96a0426e020d811a72d24c82f4df95d SHA256 18ea1f715e0dae1ed7baf9252d14d738b2a8c6bd0573d46ae849baa1f7075233 +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 -EBUILD openfoam-solvers-1.5_p20080905.ebuild 1845 RMD160 7d15ffea54f17385af732840d650891349edf634 SHA1 badd6a8bf32821b26ff9b03f9041d76fdc6b59d5 SHA256 dde6c6f82f62888f9501b357cb4f1eaa650e42bd495341a6574a483c8f76d737 -MISC ChangeLog 2635 RMD160 f13c114d155c4f0733af39cb08184f8e3b5f07f9 SHA1 935b1e5cb760c3134610c722fc2d1ef7ee2f13a5 SHA256 9090d3cc7a5303e793e327302b011696a11069ea6739b0b93cacbb290be393ea +EBUILD openfoam-solvers-1.5_p20090311.ebuild 2041 RMD160 7a98388748ca5f30190be81d5674a42fdc2d3bbc SHA1 7f020c9916ad14e3e0b0f103fc76cd7f11db89c4 SHA256 90920ef67492e33dd9ba4b2a6f6da9f271202af142c5927d8ba1b5a1c257d393 +MISC ChangeLog 2820 RMD160 161a8983d2bfc993002de264d6a1c05b54b7cc70 SHA1 51609fd7073dd713c493511896cfb4474733de59 SHA256 aeac179ab3b8f825040401f43a9b2b905575917ab8361cd2d72091cdc011fecc MISC metadata.xml 170 RMD160 645927a396fdc21cdeb089fe42c5397332420ea6 SHA1 ac7f48a14fec325926f9ce1be8fbf1f311b4f2e4 SHA256 d797a2ec6f9dc516c9f9c1a758ee87ad3e8c43101b5dc76c2f872d5bd4639b42 diff --git a/sci-libs/openfoam-solvers/files/OpenFOAM-1.5-ggi.patch b/sci-libs/openfoam-solvers/files/OpenFOAM-1.5-ggi.patch new file mode 100644 index 000000000..155905018 --- /dev/null +++ b/sci-libs/openfoam-solvers/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-solvers/openfoam-solvers-1.5_p20080905.ebuild b/sci-libs/openfoam-solvers/openfoam-solvers-1.5_p20090311.ebuild index 93ae81bd0..6487d49aa 100644 --- a/sci-libs/openfoam-solvers/openfoam-solvers-1.5_p20080905.ebuild +++ b/sci-libs/openfoam-solvers/openfoam-solvers-1.5_p20090311.ebuild @@ -12,7 +12,9 @@ MY_P="${MY_PN}-${MY_PV}" DESCRIPTION="OpenFOAM - solvers" HOMEPAGE="http://www.opencfd.co.uk/openfoam/" -SRC_URI="mirror://sourceforge/foam/${MY_P}.General.gtgz -> ${MY_P}.General.tgz" +SRC_URI="mirror://sourceforge/foam/${MY_P}.General.gtgz -> ${MY_P}.General.tgz + http://omploader.org/vMWRlMQ/${MY_P}-git-${PVR}.patch + http://omploader.org/vMWRlMA/${MY_P}-svn.patch" LICENSE="GPL-2" SLOT="1.5" @@ -37,7 +39,9 @@ pkg_setup() { src_prepare() { epatch "${FILESDIR}"/${MY_P}-compile.patch - epatch "${FILESDIR}"/${P}.patch + epatch "${DISTDIR}"/${MY_P}-svn.patch + epatch "${DISTDIR}"/${MY_PN}-git-${PVR}.patch + epatch "${FILESDIR}"/${MY_P}-ggi.patch } src_compile() { |