[SCM] Gerris Flow Solver branch, upstream, updated. b3aa46814a06c9cb2912790b23916ffb44f1f203
Stephane Popinet
popinet at users.sf.net
Fri May 15 02:55:39 UTC 2009
The following commit has been merged in the upstream branch:
commit 2e52802420700b61783de3490ce8e5d9f766ebb0
Author: Stephane Popinet <popinet at users.sf.net>
Date: Thu Aug 7 19:02:21 2008 +1000
VariableFiltered is initialised
This is important if a filtered variable is used for the initial approximate
projection (e.g. for the density).
darcs-hash:20080807090221-d4795-19a45dfa18b6e6baf8c69b9be5c1b9540a9a9a62.gz
diff --git a/src/variable.c b/src/variable.c
index 7628b89..606fd6b 100644
--- a/src/variable.c
+++ b/src/variable.c
@@ -418,6 +418,12 @@ static void variable_filtered_class_init (GtsObjectClass * klass)
GFS_EVENT_CLASS (klass)->event_half = variable_filtered_event_half;
}
+static void variable_filtered_init (GfsEvent * v)
+{
+ /* the variable/event may need to be initialised at the start */
+ v->start = -1;
+}
+
GfsVariableClass * gfs_variable_filtered_class (void)
{
static GfsVariableClass * klass = NULL;
@@ -428,7 +434,7 @@ GfsVariableClass * gfs_variable_filtered_class (void)
sizeof (GfsVariableFiltered),
sizeof (GfsVariableClass),
(GtsObjectClassInitFunc) variable_filtered_class_init,
- (GtsObjectInitFunc) NULL,
+ (GtsObjectInitFunc) variable_filtered_init,
(GtsArgSetFunc) NULL,
(GtsArgGetFunc) NULL
};
--
Gerris Flow Solver
More information about the debian-science-commits
mailing list