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

Stephane Popinet popinet at users.sf.net
Fri May 15 02:54:14 UTC 2009


The following commit has been merged in the upstream branch:
commit cd3b670c5df1d4f7894f12a1d4e4927f1c9f83ad
Author: Stephane Popinet <popinet at users.sf.net>
Date:   Fri Apr 13 12:00:20 2007 +1000

    New tool gfs2gfs to convert old simulations to the current format
    
    darcs-hash:20070413020020-d4795-a6d8a1d9f526eeb2d3ad947df14b3ce9467edcbf.gz

diff --git a/tools/Makefile.am b/tools/Makefile.am
index 9daacfa..e018f6f 100644
--- a/tools/Makefile.am
+++ b/tools/Makefile.am
@@ -17,7 +17,8 @@ bin_PROGRAMS = \
 bin_SCRIPTS = \
 	darcs2dist \
 	bat2gts \
-	ppm2mpeg
+	ppm2mpeg \
+	gfs2gfs
 
 EXTRA_DIST = $(bin_SCRIPTS)
 
diff --git a/tools/gfs2gfs b/tools/gfs2gfs
new file mode 100755
index 0000000..849f96a
--- /dev/null
+++ b/tools/gfs2gfs
@@ -0,0 +1,34 @@
+#!/bin/sh
+
+usage()
+{
+	cat <<EOF
+Usage: gfs2gfs [OPTIONS] < OLDFILE > NEWFILE
+
+Converts old Gerris simulation files to the current format.
+
+Options:
+        [--help]    display this message and exits
+EOF
+	exit $1
+}
+
+while test $# -gt 0; do
+  case "$1" in
+  -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
+  *) optarg= ;;
+  esac
+
+  case $1 in
+    --help)
+      usage 0 1>&2
+      ;;
+    *)
+      usage 0 1>&2
+      ;;
+  esac
+  shift
+done
+
+sed 's/^ *GtsSurface/GfsSurface {}/g' | \
+sed 's/GtsSurfaceFile/GfsSurface/g'

-- 
Gerris Flow Solver



More information about the debian-science-commits mailing list