From b8fc4b2922008a83e89869131636f1b46a56a801 Mon Sep 17 00:00:00 2001 From: Christophe Geuzaine <cgeuzaine@ulg.ac.be> Date: Sat, 24 Apr 2004 05:27:06 +0000 Subject: [PATCH] pretty print --- Plugin/OctreePost.cpp | 6 ++++-- Plugin/StreamLines.cpp | 12 ++++++------ 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/Plugin/OctreePost.cpp b/Plugin/OctreePost.cpp index 0949d015e7..80f4ff5a27 100644 --- a/Plugin/OctreePost.cpp +++ b/Plugin/OctreePost.cpp @@ -1,4 +1,4 @@ -// $Id: OctreePost.cpp,v 1.4 2004-04-24 05:22:50 geuzaine Exp $ +// $Id: OctreePost.cpp,v 1.5 2004-04-24 05:27:06 geuzaine Exp $ // // Copyright (C) 1997-2004 C. Geuzaine, J.-F. Remacle // @@ -212,13 +212,14 @@ OctreePost::OctreePost(Post_View *v) PostTriangleBB, PostTriangleCentroid, PostTriangleInEle); + addListOfStuff(ST, v->ST, 9 + 3 * v->NbTimeStep); - addListOfStuff(ST, v->ST, 9 + 3* v->NbTimeStep); VT = Octree_Create(1000, min, size, PostTriangleBB, PostTriangleCentroid, PostTriangleInEle); addListOfStuff(VT, v->VT, 9 + 9 * v->NbTimeStep); + TT = Octree_Create(2, min, size, PostTriangleBB, PostTriangleCentroid, @@ -230,6 +231,7 @@ OctreePost::OctreePost(Post_View *v) PostSimplexCentroid, PostSimplexInEle); addListOfStuff(SS, v->SS, 12 + 4 * v->NbTimeStep); + VS = Octree_Create(1000, min, size, PostSimplexBB, PostSimplexCentroid, diff --git a/Plugin/StreamLines.cpp b/Plugin/StreamLines.cpp index 015cde2ad7..f36431784e 100644 --- a/Plugin/StreamLines.cpp +++ b/Plugin/StreamLines.cpp @@ -1,4 +1,4 @@ -// $Id: StreamLines.cpp,v 1.4 2004-04-24 04:46:20 geuzaine Exp $ +// $Id: StreamLines.cpp,v 1.5 2004-04-24 05:22:50 geuzaine Exp $ // // Copyright (C) 1997-2004 C. Geuzaine, J.-F. Remacle // @@ -116,7 +116,7 @@ int GMSH_StreamLinesPlugin::getNbV()const return (int)StreamLinesOptions_Number[10].def; } -void GMSH_StreamLinesPlugin::getPoint(int iU, int iV, double *X )const +void GMSH_StreamLinesPlugin::getPoint(int iU, int iV, double *X) const { double u = (double)iU / (double)(getNbU ()); double v = (double)iV / (double)(getNbV ()); @@ -163,10 +163,10 @@ Post_View * GMSH_StreamLinesPlugin::GenerateView(Post_View * v) const while (ITER++ < (int) StreamLinesOptions_Number[11].def){ // dX/dt = V - // X1 = X + a1 * DT * V ( X ) - // X2 = X + a2 * DT * V ( X1 ) - // X3 = X + a3 * DT * V ( X2 ) - // X4 = X + a4 * DT * V ( X3 ) + // X1 = X + a1 * DT * V(X) + // X2 = X + a2 * DT * V(X1) + // X3 = X + a3 * DT * V(X2) + // X4 = X + a4 * DT * V(X3) // X = X + b1 X1 + b2 X2 + b3 X3 + b4 x4 double sizeElem = 0.033; o.searchVector(X[0], X[1], X[2], VALUES, &sizeElem, 0); -- GitLab