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

Sebastien Delaux s.delaux at niwa.co.nz
Fri May 15 02:52:16 UTC 2009


The following commit has been merged in the upstream branch:
commit 376d6a2c1b0a5104e8bdee54416cc966d99ee80b
Author: Sebastien Delaux <s.delaux at niwa.co.nz>
Date:   Sat Jul 9 01:18:47 2005 +1000

    Fix for locale-independent parsing of parameter files
    
    darcs-hash:20050708151847-118cf-23b0c52da4f210b56723cd959764551c0d51bc0d.gz

diff --git a/src/init.c b/src/init.c
index 463df3f..957a057 100644
--- a/src/init.c
+++ b/src/init.c
@@ -26,6 +26,8 @@
 #endif /* HAVE_FPU_SETCW */
 
 #include <stdlib.h>
+#include <locale.h>
+
 #include "boundary.h"
 #include "init.h"
 #include "refine.h"
@@ -95,6 +97,9 @@ void gfs_init (int * argc, char *** argv)
   if (initialized)
     return;
 
+  if (!setlocale (LC_ALL, "POSIX"))
+    g_warning ("cannot set locale to POSIX");
+
 #ifdef HAVE_MPI
   MPI_Initialized (&initialized);
   if (!initialized) {

-- 
Gerris Flow Solver



More information about the debian-science-commits mailing list