From 703dfe62da76c1caee31fbb1b2a4c827980706aa Mon Sep 17 00:00:00 2001 From: Christophe Geuzaine <cgeuzaine@ulg.ac.be> Date: Wed, 5 Feb 2003 02:05:21 +0000 Subject: [PATCH] Note on Combine view + save bug --- Common/Views.cpp | 4 ++-- TODO | 21 ++++++++++++++++++++- 2 files changed, 22 insertions(+), 3 deletions(-) diff --git a/Common/Views.cpp b/Common/Views.cpp index dc3bc6f26a..d6a1b7cf81 100644 --- a/Common/Views.cpp +++ b/Common/Views.cpp @@ -1,4 +1,4 @@ -// $Id: Views.cpp,v 1.85 2003-01-23 20:19:17 geuzaine Exp $ +// $Id: Views.cpp,v 1.86 2003-02-05 02:05:21 geuzaine Exp $ // // Copyright (C) 1997 - 2003 C. Geuzaine, J.-F. Remacle // @@ -1270,7 +1270,7 @@ void MergeViews(int all){ merge(v->SY,vm->SY); vm->NbSY += v->NbSY; merge(v->VY,vm->VY); vm->NbVY += v->NbVY; merge(v->TY,vm->TY); vm->NbTY += v->NbTY; - /* this more complicted: have to change the indices + /* this more complicated: have to change the indices merge(v->T2D,vm->T2D); merge(v->T2C,vm->T2C); v->NbT2 += vm->NbT2; merge(v->T3D,vm->T3D); diff --git a/TODO b/TODO index 92cb819970..c42943246f 100644 --- a/TODO +++ b/TODO @@ -1,4 +1,23 @@ -$Id: TODO,v 1.8 2003-01-29 17:36:55 geuzaine Exp $ +$Id: TODO,v 1.9 2003-02-05 02:05:21 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. + +================================================================================= * Two-field plots <nicolas.moes@ec-nantes.fr> -- GitLab