[SCM] Gerris Flow Solver branch, upstream, updated. b3aa46814a06c9cb2912790b23916ffb44f1f203

Stephane Popinet popinet at users.sf.net
Fri May 15 02:53:59 UTC 2009


The following commit has been merged in the upstream branch:
commit 153dcf9efb1205193b391d1da95e9dc10606be18
Author: Stephane Popinet <popinet at users.sf.net>
Date:   Wed Feb 28 14:32:00 2007 +1100

    Temporary bug fix for GfsEventStop
    
    For more "complex" variables (e.g. VariableTracerVOF) EventStop will
    not work properly if adaptivity is used. There is no simple solution
    to this problem.
    
    darcs-hash:20070228033200-d4795-b46125c909ebd21bb7fad6feec33df024b89b494.gz

diff --git a/src/event.c b/src/event.c
index 5a88ee2..2fda25c 100644
--- a/src/event.c
+++ b/src/event.c
@@ -1401,8 +1401,11 @@ static void gfs_event_stop_read (GtsObject ** o, GtsFile * fp)
   }
   s->max = atof (fp->token->str);
   s->oldv = gfs_domain_add_variable (domain, NULL, NULL);
-  s->oldv->fine_coarse = s->v->fine_coarse;
-  s->oldv->coarse_fine = s->v->coarse_fine;
+  /* fixme: the lines below are necessary in the general case (e.g. when dealing with a VOF tracer)
+   * but will crash if s->oldv is not of the same class as s->v.
+   * s->oldv->fine_coarse = s->v->fine_coarse;
+   * s->oldv->coarse_fine = s->v->coarse_fine;
+   */
 
   if (fp->next_token != '\n') {
     gts_file_next_token (fp);

-- 
Gerris Flow Solver



More information about the debian-science-commits mailing list