diff --git a/Common/Views.cpp b/Common/Views.cpp index 6a714b1c13371bca347237e61c39ddcb8e03f721..cc828cdeba93cc87a702fafbab44c523fbd0ec69 100644 --- a/Common/Views.cpp +++ b/Common/Views.cpp @@ -1,4 +1,4 @@ -// $Id: Views.cpp,v 1.90 2003-03-01 23:18:11 geuzaine Exp $ +// $Id: Views.cpp,v 1.91 2003-03-11 07:16:10 geuzaine Exp $ // // Copyright (C) 1997 - 2003 C. Geuzaine, J.-F. Remacle // @@ -1362,6 +1362,24 @@ static void merge(List_T * a, List_T * b) void MergeViews(int all) { + // sanity check + int first = 1, nbt; + for(int i = 1; i < List_Nbr(CTX.post.list) - 1; i++) { + Post_View *v = (Post_View *) List_Pointer(CTX.post.list, i); + if(all || v->Visible) { + if(first){ + nbt = v->NbTimeStep; + first = 0; + } + else{ + if(v->NbTimeStep != nbt){ + Msg(GERROR, "Cannot merge views having different number of time steps"); + return; + } + } + } + } + Post_View *vm = BeginView(1); for(int i = 0; i < List_Nbr(CTX.post.list) - 1; i++) { Post_View *v = (Post_View *) List_Pointer(CTX.post.list, i); diff --git a/TODO b/TODO index 7bf63be4ca915acbee529f41bfce6be579027329..8b912ae9e357104af927703531d3f1a2c8f5319c 100644 --- a/TODO +++ b/TODO @@ -1,21 +1,8 @@ -$Id: TODO,v 1.13 2003-03-11 03:47:06 geuzaine Exp $ +$Id: TODO,v 1.14 2003-03-11 07:16:10 geuzaine Exp $ ******************************************************************** -Combine view + save view with != nb of time steps - -gmsh tutorial/view*.pos -View->Combine->All -save merged view as ascii view - -The resulting view is corrupted. This is due to the fact that -ascii/binary views do not support different number of time steps per -element type (here, we have e.g. 5 time steps for ST and only 1 for -SS), and the merge routine just adds everything instead of just the -values up to MIN(NbTimeStep for all merged views). - --> need to make merge() more intelligent. First pass on NbTimeStep, -then List_Add() only up to common TimeStep value. +Memory leaks, memory leaks (start with mesh_domain() and the parser) ******************************************************************** @@ -28,10 +15,6 @@ Rewrite the View interface in C++ ******************************************************************** -Memory leaks, memory leaks (start with mesh_domain() and the parser) - -******************************************************************** - Two-field plots <nicolas.moes@ec-nantes.fr> Imagine I would like to plot a temperature field on a deformed @@ -115,23 +98,26 @@ mesh: il faut vraiment que je regarde la relation entre l'orientation des surfaces geometriques et les l'orientation des elements du maillage... -Subject: Re: [Gmsh] surface normals: some point inwards, but most point in the negative direction +Subject: Re: [Gmsh] surface normals: some point inwards, but most +point in the negative direction Date: Thu, 21 Nov 2002 05:59:56 -0500 From: "Matthias G. Imhof" <mgi@vt.edu> - Organization: Virginia Tech: Seismic Reservoir Characterization Laboratory + Organization: Virginia Tech: Seismic Reservoir Characterization +Laboratory To: Christophe Geuzaine <geuzaine@acm.caltech.edu> References: 1 , 2 Christophe, -Thanks for a nice tool! I finally extended my boundary-element method to 3D and -find your mesh generator perfect to make sure the boundary points are placed -uniformly on a sphere instead of clustering up at the poles. +Thanks for a nice tool! I finally extended my boundary-element method +to 3D and find your mesh generator perfect to make sure the boundary +points are placed uniformly on a sphere instead of clustering up at +the poles. -My only gripe is with the visualization of surface normals in gmsh. While -Physical Surface allows change of the normal directions in the mesh file, the -normals are not changed in the visualization which makes identification of wrong -polarity surfaces difficult. +My only gripe is with the visualization of surface normals in +gmsh. While Physical Surface allows change of the normal directions in +the mesh file, the normals are not changed in the visualization which +makes identification of wrong polarity surfaces difficult. Matthias