Details Ticket 4546


Comment | Reply | Open


Serial Number 4546
Subject r.sim.water segmentation fault
Area grass6
Queue grass
Requestors andreas.philipp@geo.uni-augsburg.de
Owner hmitasova
Status resolved
Last User Contact Sat May 12 17:52:52 2007 (1 yr ago)
Current Priority 30
Final Priority 70
Due No date assigned
Last Action Sat May 12 17:52:52 2007 (1 yr ago)
Created Wed Jun 7 09:49:42 2006 (2 yr ago)

Transaction History Ticket 4546


Wed, Jun 7 2006 09:49:42    Request created by guest  
Subject: r.sim.water segmentation fault

Platform: GNU/Linux/x86_64
grass obtained from: Trento Italy site
grass binary for platform: Compiled from Sources
GRASS Version: grass-6.1.cvs_src_snapshot_2006_06_03

when running r.sim.water by:  
-----------------  
GRASS 6.1.cvs (spearfish60):~ > r.sim.water elevin=elevation.10m  
dxin=elevation.10m_dx dyin=elevation.10m_dy rain=elevation.10m_rain  
manin=elevation.10m_manin infil=elevation.10m_infil depth=elevation.10m_depth
disch=elevation.10m_disch  
-----------------  
  
it stops with output:   
------------------  
Authors: original version L.Mitas, H.Mitasova  
         GRASS implementation J. Hofierka  
see references in manual page or at:  
http://www2.gis.uiuc.edu:2280/modviz/papers/listsj.html  
  
Running MAY 10 version  
Segmentation fault  
-------------------  
 
This applies to many 6.x versions (including stable) and also to 32bit 
installations (including precompiled ones). 
 
 
The input maps "rain", "manin" and "infil" have been created artificially as
constant fields by the following script:  
-------------------  
#!/bin/sh 
dem=elevation.10m  
g.region rast=${dem}  
r.slope.aspect --o elevation=$dem dx=${dem}_dx dy=${dem}_dy  
r.mapcalc "${dem}_rain=if(${dem},0.0001,null())"  
r.mapcalc "${dem}_manin=if(${dem},0.04,null())"  
r.mapcalc "${dem}_infil=if(${dem},0.9,null())"  
  
echo r.sim.water  elevin=${dem} dxin=${dem}_dx dyin=${dem}_dy \  
rain=${dem}_rain manin=${dem}_manin infil=${dem}_infil \  
depth=${dem}_depth disch=${dem}_disch  
  
r.sim.water  elevin=${dem} dxin=${dem}_dx dyin=${dem}_dy \  
rain=${dem}_rain manin=${dem}_manin infil=${dem}_infil \  
depth=${dem}_depth disch=${dem}_disch  
---------------------  
 
Many thanks for looking at it,  
Andreas  
Wed, Jun 7 2006 10:16:29    Mail sent by hamish_nospam@yahoo.com  
Return-Path <hamish_nospam@yahoo.com>
Delivered-To grass-bugs@lists.intevation.de
Date Wed, 7 Jun 2006 20:16:18 +1200
From Hamish <hamish_nospam@yahoo.com>
To Request Tracker <grass-bugs@intevation.de>
Cc grass-dev@grass.itc.it
Subject Re: [GRASS-dev] [bug #4546] (grass) r.sim.water segmentation fault
Message-Id <20060607201618.1fe65bfb.hamish_nospam@yahoo.com>
In-Reply-To <20060607074942.203DE1005AC@lists.intevation.de>
References <20060607074942.203DE1005AC@lists.intevation.de>
X-Mailer Sylpheed version 1.0.4 (GTK+ 1.2.10; i386-pc-linux-gnu)
X-Face M<EoB)"*Z~u!,vFhXmw}R_KbdBta*P_=T|rbBL'e1/CQ9;/1g\BU3&!=y8ria$2Uk!HT&BB 8i?|X_+7~1jsy}F~g$2va%3fV`*=L(*cem[@3\yg,G,@rg6/QMJ
Mime-Version 1.0
Content-Type text/plain; charset=US-ASCII
Content-Transfer-Encoding 7bit
X-Spam-Status No, hits=-4.0 tagged_above=-999.0 required=3.0 tests=BAYES_00, FORGED_YAHOO_RCVD
X-Spam-Level
> this bug's URL: http://intevation.de/rt/webrt?serial_num=4546
> ---------------------------------------------------------------------
> 
> Subject: r.sim.water segmentation fault
> 
> Platform: GNU/Linux/x86_64
> grass obtained from: Trento Italy site
> grass binary for platform: Compiled from Sources
> GRASS Version: grass-6.1.cvs_src_snapshot_2006_06_03

try with today's CVS -- Glynn fixed the startup problem yesterday.

cd raster/simwe/
cvs update
make



Hamish


Wed, Jun 7 2006 13:05:19    Mail sent by glynn@gclements.plus.com  
Return-Path <glynn@gclements.plus.com>
Delivered-To grass-bugs@lists.intevation.de
From Glynn Clements <glynn@gclements.plus.com>
MIME-Version 1.0
Content-Type text/plain; charset=us-ascii
Content-Transfer-Encoding 7bit
Message-ID <17542.45786.44325.740519@cerise.gclements.plus.com>
Date Wed, 7 Jun 2006 12:04:58 +0100
To Hamish <hamish_nospam@yahoo.com>
Cc Request Tracker <grass-bugs@intevation.de>, grass-dev@grass.itc.it
Subject Re: [GRASS-dev] [bug #4546] (grass) r.sim.water segmentation fault
In-Reply-To <20060607201618.1fe65bfb.hamish_nospam@yahoo.com>
References <20060607074942.203DE1005AC@lists.intevation.de> <20060607201618.1fe65bfb.hamish_nospam@yahoo.com>
X-Mailer VM 7.07 under 21.4 (patch 15) "Security Through Obscurity" XEmacs Lucid
X-Spam-Status No, hits=-4.9 tagged_above=-999.0 required=3.0 tests=BAYES_00
X-Spam-Level
Hamish wrote:

> > this bug's URL: http://intevation.de/rt/webrt?serial_num=4546
> > ---------------------------------------------------------------------
> > 
> > Subject: r.sim.water segmentation fault
> > 
> > Platform: GNU/Linux/x86_64
> > grass obtained from: Trento Italy site
> > grass binary for platform: Compiled from Sources
> > GRASS Version: grass-6.1.cvs_src_snapshot_2006_06_03
> 
> try with today's CVS -- Glynn fixed the startup problem yesterday.

I doubt that's relevant here.

My fix simply removed a "banner" which was being printed even when the
--tcltk switch was used, thus interfering with gis.m.

-- 
Glynn Clements <glynn@gclements.plus.com>


Wed, Jun 7 2006 13:29:17    Mail sent by guest  
yes indeed, just the the printout of authors is omitted now and the ordering
of libs in the makefiles are changed. The segmentation fault still appears. 
Are there any "realistic" (non constant) example input fields for spearfish?
Did anyone succeed in running it at all? 
Thanks, Andreas 
Wed, Jun 7 2006 14:16:11    Mail sent by guest  
yes indeed, just the the printout of authors is omitted now and the ordering
of libs in the makefiles are changed. The segmentation fault still appears. 
Are there any "realistic" (non constant) example input fields for spearfish?
Did anyone succeed in running it at all? 
Thanks, Andreas 
Wed, Jun 7 2006 21:38:37    Mail sent by andreas.philipp@geo.uni-augsburg.de  
Return-Path <andreas.philipp@geo.uni-augsburg.de>
Delivered-To grass-bugs@lists.intevation.de
From Andreas Philipp <andreas.philipp@geo.uni-augsburg.de>
Reply-To andreas.philipp@geo.uni-augsburg.de
Organization Universitaet Augsburg
To Hamish via RT <grass-bugs@intevation.de>
Subject Re: [bug #4546] (grass) r.sim.water segmentation fault
Date Wed, 7 Jun 2006 21:38:29 +0200
User-Agent KMail/1.8
References <20060607081629.BDBE71006AA@lists.intevation.de>
In-Reply-To <20060607081629.BDBE71006AA@lists.intevation.de>
MIME-Version 1.0
Content-Type text/plain; charset="utf-8"
Content-Transfer-Encoding 7bit
Content-Disposition inline
Message-Id <200606072138.29363.andreas.philipp@geo.uni-augsburg.de>
X-ClamAV-Scanned 9f02cdf771963b31845617722616e892
X-Virus-Scanned 1705b20ceacacde17d1e59a74e24db2b
X-Spam-Status No, hits=-4.9 tagged_above=-999.0 required=3.0 tests=BAYES_00
X-Spam-Level
Hi Hamish,

where and how should I report on findings about the bug?

I've found out that the segfault results from memory allocation using float 
instead of double (while arrays of double are used) and that it only occurs 
on my 64bit system and not on my 32bit notebook.
After replacing all occurences of "float" by "double" (via sed) in all source
files of simwe, it runs with certain arguments and sometimes produces a 
single walker map.

BUT often a floating point exception occurs (on both the unchanged 32bit cvs
distribution and the modified 64bit compilation), which seems to be another 
bug, with option "-t" it crashes everytime, sequences of maps are not 
produced, and it tries to write filenames with a point "." which seems to 
produce trouble and has conflicts with the new vector model it seems and so 
on, depending on the arguments.

I really try to find out more, but I'm no c-programmer (just fortran90). 
Should I post any findings the bug tracker website? Or where is the right 
place to help in solving the problems with "simwe"?

Many thanks for your help,
Cheers,
Andreas


Am Wednesday 07 June 2006 10:16 schrieb Hamish via RT:
> > this bug's URL: http://intevation.de/rt/webrt?serial_num=4546
> > ---------------------------------------------------------------------
> >
> > Subject: r.sim.water segmentation fault
> >
> > Platform: GNU/Linux/x86_64
> > grass obtained from: Trento Italy site
> > grass binary for platform: Compiled from Sources
> > GRASS Version: grass-6.1.cvs_src_snapshot_2006_06_03
>
> try with today's CVS -- Glynn fixed the startup problem yesterday.
>
> cd raster/simwe/
> cvs update
> make
>
>
>
> Hamish
>
>
> --- Headers Follow ---
>
> >From hamish_nospam@yahoo.com  Wed Jun  7 10:16:29 2006
>
> Return-Path: <hamish_nospam@yahoo.com>
> Delivered-To: grass-bugs@lists.intevation.de
> Received: from mail.intevation.de (aktaia [212.95.126.10])
> 	by lists.intevation.de (Postfix) with ESMTP id 66DBB1006A5
> 	for <grass-bugs@lists.intevation.de>; Wed,  7 Jun 2006 10:16:29 +0200
> (CEST) Received: from localhost (localhost [127.0.0.1])
> 	by mail.intevation.de (Postfix) with ESMTP id F286036DD0
> 	for <grass-bugs@lists.intevation.de>; Wed,  7 Jun 2006 10:16:28 +0200
> (CEST) Received: from mailhub1.otago.ac.nz (mailhub1.otago.ac.nz
> [139.80.64.218]) by mail.intevation.de (Postfix) with ESMTP id 1741736D89
> 	for <grass-bugs@intevation.de>; Wed,  7 Jun 2006 10:16:27 +0200 (CEST)
> Received: from galadriel.otago.ac.nz (galadriel.otago.ac.nz
> [139.80.64.213]) by mailhub1.otago.ac.nz (8.13.6/8.13.6) with ESMTP id
> k578GJrC021331; Wed, 7 Jun 2006 20:16:19 +1200
> Received: from taihua.otago.ac.nz ([139.80.35.27] helo=taihua)
> 	by galadriel.otago.ac.nz with smtp (Exim 4.50)
> 	id 1FntD7-0006dR-AO; Wed, 07 Jun 2006 20:16:17 +1200
> Date: Wed, 7 Jun 2006 20:16:18 +1200
> From: Hamish <hamish_nospam@yahoo.com>
> To: Request Tracker <grass-bugs@intevation.de>
> Cc: grass-dev@grass.itc.it
> Subject: Re: [GRASS-dev] [bug #4546] (grass) r.sim.water segmentation fault
> Message-Id: <20060607201618.1fe65bfb.hamish_nospam@yahoo.com>
> In-Reply-To: <20060607074942.203DE1005AC@lists.intevation.de>
> References: <20060607074942.203DE1005AC@lists.intevation.de>
> X-Mailer: Sylpheed version 1.0.4 (GTK+ 1.2.10; i386-pc-linux-gnu)
> X-Face:
> M<EoB)"*Z~u!,vFhXmw}R_KbdBta*P_=T|rbBL'e1/CQ9;/1g\BU3&!=y8ria$2Uk!HT&BB
> 8i?|X_+7~1jsy}F~g$2va%3fV`*=L(*cem[@3\yg,G,@rg6/QMJ
> Mime-Version: 1.0
> Content-Type: text/plain; charset=US-ASCII
> Content-Transfer-Encoding: 7bit
> X-Spam-Status: No, hits=-4.0 tagged_above=-999.0 required=3.0
> tests=BAYES_00, FORGED_YAHOO_RCVD
> X-Spam-Level:
>
> -------------------------------------------- Managed by Request Tracker

-- 
-----------------------------------------------------------
Dr. Andreas Philipp
Institute of Geography
University of Augsburg
Universitaetsstrasse 10
D - 86135 Augsburg
Germany

Phone:   ++49/821/598-2266
Fax:     ++49/821/598-2264
Email:   andreas.philipp@geo.uni-augsburg.de
Web:     www.geo.uni-augsburg.de/lehrstuehle/phygeo
-----------------------------------------------------------


Sun, Jun 11 2006 13:34:52    Mail sent by msieczka  
Andreas,

Please post any findings to the bugtracker, like you already did, but also CC
the grass-dev@grass.itc.it (and other emails if you want to make sure they
peariculare peeple read it). Otherwise the message goes to the tracker only.
Please consider re-posting your recent comments using the hints I gave you.
Best,
Maciek
Tue, Jul 4 2006 15:48:45    Owner changed to hmitasova by mneteler  
Tue, Jul 4 2006 15:48:45    Mail sent by mneteler  
Andreas,

the bug is still there.

It crashes in simlib/input.c line 403, function grad_check():

 if (cchez[k][l] != 0.) {
 
   with k=700 and l=0

I have stored your sample script in CVS to:
raster/r.sim.water/spearfish.sh

BTW: this should be fixed as well:
input.c: In function `input_data':
input.c:259: warning: suggest explicit braces to avoid ambiguous `else'
input.c:266: warning: suggest explicit braces to avoid ambiguous `else'
input.c:273: warning: suggest explicit braces to avoid ambiguous `else'
input.c:286: warning: suggest explicit braces to avoid ambiguous `else'
input.c:293: warning: suggest explicit braces to avoid ambiguous `else'
input.c:300: warning: suggest explicit braces to avoid ambiguous `else'
input.c:307: warning: suggest explicit braces to avoid ambiguous `else'


Markus
Tue, Jul 4 2006 16:08:01    Mail sent by mneteler  
Hi again,

here a backtrace:

(gdb) r elevin=elevation.10m  dxin=elevation.10m_dx dyin=elevation.10m_dy
rain=elevation.10m_rain  manin=elevation.10m_manin infil=elevation.10m_infil
depth=elevation.10m_depthdisch=elevation.10m_disch
Starting program:
/nfsmnt/bartok0/ssi/neteler/software/cvsgrass61/dist.x86_64-unknown-linux-gnu/bin/r.sim.water
elevin=elevation.10m  dxin=elevation.10m_dx dyin=elevation.10m_dy
rain=elevation.10m_rain  manin=elevation.10m_manin infil=elevation.10m_infil
depth=elevation.10m_depthdisch=elevation.10m_disch
[Thread debugging using libthread_db enabled]
[New Thread 183405377024 (LWP 10189)]
Running MAY 10 version

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 183405377024 (LWP 10189)]
0x0000002a9555c75f in grad_check () at input.c:403
403                 if (cchez[k][l] != 0.) {
(gdb) bt full
#0  0x0000002a9555c75f in grad_check () at input.c:403
        k = 700
        l = 0
        i = 1899
        j = 1398
        zx = -9999
        zy = -9999
        zd2 = 14140.721410168577
        zd4 = 118.91476531603877
        sinsl = 0.99999999749949997
        cc = 5.5216776579217714e-320
        cmul2 = 9810
        sheer = 2.71084960169355e-312
        vsum = 17730886.973829061
        vmax = 40.129607348525397
        chsum = 33150075
        zmin = 1136.5421142578125
        zmax = 1846.743408203125
        zd2min = 6.0788408414191736e-05
        zd2max = 14140.721410168577
        smin = 0.0001
        smax = 0.0001
        infmin = 0.90000000000000002
        infmax = 0.90000000000000002
        sigmax = -1000000000000
        cchezmax = 25
        rhow = 1000
        gacc = 9.8100000000000005
        hh = 1
        deltaw = 1000000000000
#1  0x000000000040322c in main (argc=8, argv=0x7fbfffef38) at main.c:374
        i = 1899
        ii = 4202555
        j = 1398
        l = 1398
        ret_val = 1
        x_orig = 590010
        y_orig = 4914020
        rand1 = 12345
        rand2 = 67891
(gdb)

I don't see cchez in that list?

Markus
Wed, Jul 5 2006 11:55:01    Comments added by mneteler  
Hi,

Glynn fixed some declarations. r.sim.water now starts, but
crashes a bit later:

GRASS 6.1.cvs (spearfish60):~/grass61/raster/simwe/r.sim.water > gdb `which
r.sim.water`
GNU gdb Red Hat Linux (6.3.0.0-1.96rh)
...
This GDB was configured as "x86_64-redhat-linux-gnu"...Using host libthread_db
library "/lib64/tls/libthread_db.so.1".

(gdb) r elevin=elevation.10m dxin=elevation.10m_dx dyin=elevation.10m_dy    
rain=elevation.10m_rain manin=elevation.10m_manin infil=elevation.10m_infil 
depth=elevation.10m_depth disch=elevation.10m_disch
Starting program:
/nfsmnt/bartok0/ssi/neteler/software/cvsgrass61/dist.x86_64-unknown-linux-gnu/bin/r.sim.water
elevin=elevation.10m dxin=elevation.10m_dx dyin=elevation.10m_dy      
rain=elevation.10m_rain manin=elevation.10m_manin infil=elevation.10m_infil 
depth=elevation.10m_depth disch=elevation.10m_disch
[Thread debugging using libthread_db enabled]
[New Thread 183405377024 (LWP 21172)]
Running MAY 10 version
Detaching after fork from child process 21176.
Detaching after fork from child process 21177.
WARNING: Infiltration exceeds the rainfall rate everywhere! No overland
         flow.


 zmin,zmax 1061.093872 1846.743408
 simean,vmean,chmean,deltap,deltaw 0.000100 10.903006 24.937943 0.229295
1000000000000.000000
 MITER, timec 0 4.000000
 maxwa, nblock 2000000 1
 barea,sarea,rwalk,sisum: 100.000000 4.000000 2000000.000000 264.821200
 number of written walkers: 13241
 nwalk, maxw 2648212 7000000
 walkwe (walk weight),frac 1999999.999909 0.800000
 deldif,factor 0.383078 3.036103e-05


Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 183405377024 (LWP 21172)]
0x0000003be57691de in _int_malloc () from /lib64/tls/libc.so.6
(gdb) bt full
#0  0x0000003be57691de in _int_malloc () from /lib64/tls/libc.so.6
No symbol table info available.
#1  0x0000003be576ac52 in malloc () from /lib64/tls/libc.so.6
No symbol table info available.
#2  0x0000003be5c048a0 in deflateInit2_ () from /usr/lib64/libz.so.1
No symbol table info available.
#3  0x0000003be5c04ab4 in deflateInit_ () from /usr/lib64/libz.so.1
No symbol table info available.
#4  0x0000002ab2cb7844 in G_zlib_compress (src=0x230863c0 "", src_sz=7596,
dst=0x2634dee0 "",
    dst_sz=7596) at flate.c:349
        err = 587752384
        nbytes = 0
        buf_sz = 7683
        buf = (unsigned char *) 0x2634fca0 ""
        c_stream = {next_in = 0x230863c0 "", avail_in = 7596, total_in = 0,
next_out = 0x2634fca0 "",
  avail_out = 7683, total_out = 257248241210, msg = 0x0, state = 0x0, zalloc
=
0x3be5c07920 <zcalloc>,
  zfree = 0x3be5c07930 <zcfree>, opaque = 0x0, data_type = -449796862, adler
=
640999136,
  reserved = 7596}
#5  0x0000002ab2cb7550 in G_zlib_write (fd=6, src=0x230863c0 "", nbytes=7596)
at flate.c:224
        dst_sz = 7596
        nwritten = 0
        err = 6
        dst = (unsigned char *) 0x2634dee0 ""
---Type <return> to continue, or q <return> to quit---
        compressed = 0 '\0'
#6  0x0000002ab2cd5b6b in G__write_data_compressed (fd=6, row=0, n=1899) at
put_row.c:337
        fcb = (struct fileinfo *) 0x2ab2e12640
        nwrite = 7596
#7  0x0000002ab2cd6036 in put_fp_data (fd=6, rast=0x26341060, row=0, col=0,
n=1899, data_type=1)
    at put_row.c:477
        fcb = (struct fileinfo *) 0x2ab2e12640
        random = 0
        compressed = 1
        xdrs = (XDR *) 0x2ab2e129a8
#8  0x0000002ab2cd6810 in put_raster_data (fd=6, rast=0x26341060, row=0,
col=0, n=1899,
    zeros_r_nulls=0, map_type=1) at put_row.c:710
No locals.
#9  0x0000002ab2cd7142 in put_raster_row (fd=6, buf=0x26341060, data_type=1,
zeros_r_nulls=0)
    at put_row.c:918
        fcb = (struct fileinfo *) 0x2ab2e12640
        convert_and_write_FtypeOtype = {{0, 0x2ab2cd6ad9 <convert_and_write_if>,
0x2ab2cd6cac <convert_and_write_id>}, {0x2ab2cd6e6e <convert_and_write_fi>, 0,
0x2ab2cd6d88 <convert_and_write_fd>}, {0x2ab2cd6f5f <convert_and_write_di>,
0x2ab2cd6bc8 <convert_and_write_df>, 0}}
#10 0x0000002ab2cd57d0 in G_put_raster_row (fd=6, buf=0x26341060, data_type=1)
at put_row.c:222
No locals.
#11 0x0000002ab2cd5814 in G_put_f_raster_row (fd=6, buf=0x26341060) at
put_row.c:232
---Type <return> to continue, or q <return> to quit---
No locals.
#12 0x0000002a95560bcc in output_data (tt=0, ft=1) at output.c:235
        cell6 = (FCELL *) 0x26341060
        cell7 = (FCELL *) 0x263477a0
        cell8 = (FCELL *) 0x0
        cell14 = (FCELL *) 0x7fbfffe730
        cell15 = (FCELL *) 0x0
        cell16 = (FCELL *) 0x2
        fd6 = 6
        fd7 = 7
        fd8 = 0
        fd14 = 11176
        fd15 = 42
        fd16 = -1789556728
        i = 1397
        iarc = 0
        j = 1899
        gsmax = 0
        dismax = 0
        gmax = 0
        ermax = -9.99999996e+11
        ermin = 9.99999996e+11
        zx = 2.7108496006658934e-312
---Type <return> to continue, or q <return> to quit---
        zy = 0
        zd = 0
        sinsl = 2.71084960169355e-312
        msg =
"W\037P\v³/b@£7#ÜÐ*è?\232\001úÿ\177\204>A\000\000\000\000\000\000\020@\000\000\000\000\000\000Y@!ÐL¶
ËÈQ?¸£ø/úÕÿ>\000\000\000\000\000\000\000\000Ø}@B/\206ó?\b\fÑ\035¡\205×?\b\210U\225*\000\000\000\230g
U\225*\000\000\000\000\000\000"
colors = {version = -1789560880, shift = 2.2232954062856094e-322,
invert = -1278225448,
  is_float = 42, null_set = 0, null_red = 0 '\0', null_grn = 0 '\0', null_blu
= 0 '\0',
  undef_set = -1073746624, undef_red = 127 '\177', undef_grn = 0 '\0',
undef_blu = 0 '\0', fixed = {
    rules = 0x401418, n_rules = 217277393, lookup = {red = 0x40198e
"output_data", grn = 0x0,
      blu = 0x3be5415cf0 "X\\Aå;", set = 0x7fbfffed80 "`îÿ¿\177", nalloc =
-1073746624, active = 127},
    fp_lookup = {vals = 0xcf363d1, rules = 0x40198e, nalloc = 0, active = 0},
min = 1.2709751262670769e-312, max = 0}, modular = {rules = 0x2a00000001,
n_rules = 0, lookup = {
      red = 0x1 <Address 0x1 out of bounds>, grn = 0x1caf71c4 "G\001", blu =
0x0,
      set = 0x3ff3862f42407dd8 <Address 0x3ff3862f42407dd8 out of bounds>,
nalloc = 0, active = 1},
    fp_lookup = {vals = 0x0, rules = 0x3be5415cf0, nalloc = -1073746520,
active = 127},
    min = 1.2709805919473345e-312, max = 1.3194861940138276}, cmin =
0.75522654529207889,
  cmax = 0.99651099986565672}
        hist = {
  mapid =
"\000\000\000\000\000\000\000\000Nx0å;\000\000\000¨Ùϳ*\000\000\000\222ârå;\000\000\000\001\000\000\
000\000\000\000\000\001\000\000\000\000\000\000\000ÿþþþþþþþðÒÿ¿\000\000\000\000ðÃ\t#\000\000\000\000
\000å\222å;\000\000",
title =
"\000\000\000\000ÿÿÿÿ\021\000\000\000\000\000\000\000¨+\000\000\001\000\000\0000²Î²*",
'\0' <r---Type <return> to continue, or q <return> to quit---
epeats 11 times>, "\220Úÿ¿\177\000\000\000Ä\t å;\000\000\000\220v0å;", '\0'
<repeats 11 times>, "\200;˲*\000\000",
  mapset =
"\002\000±\034\001\000\000\000\000\000\000\024\177\000\000\000\200ãrå;", '\0'
<repeats 19 times>, "\001", '\0' <repeats 23 times>,
"1²Î²*\000\000\000\000\000\000\000\002\000\000",
  creator = '\0' <repeats 16 times>,
"\220¨¯\034\000\000\000\000Ö\213våu\032i\tàÙÿ¿\177\000\000\000\220v0å;", '\0'
<repeats 34 times>,
  maptype = '\0' <repeats 11 times>,
"\020\000\000\000\000`Ûÿ¿\177\000\000\000\020\215\006#\000\000\000\000¤\035\000\000\000\000\000\000y
MͲ*\000\000\000\220¨¯\034\000\000\000\000¹R\000\000\006",
'\0' <repeats 18 times>,
  datsrc_1 = "\000\000\000\000\000\000\000\000
Q\b#\000\000\000\000\200ßÿ¿\177\000\000\000\222Q̲*\000\000\000\220¨¯\034\000\000\000\000
Q\b#\000\000\000\000/ssi0/ssi/neteler\000\b#\000\000\000\000ÀT\b#\000\000\000",
datsrc_2 =
"\026\000\000\000\000\000\000\000\020\000\000\000\000\000\000\000\027\000\000\000\000\000\000\000-\0
00\000\000\000\000\000\000ÀT\b#\000\000\000\000e\001så;",
'\0' <repeats 11 times>,
"¤\035\000\000\000\000\000\000\220âÿ¿\177\000\000\000\020\215\006#\000\000\000",
keywrd =
"0ïÿ¿\177\000\000\000¹õså;\000\000\000PÝÿ¿\177\000\000\000c\215β*", '\0'
<repeats 19 times>,
"\200ßÿ¿\177\000\000\000ÙÊuå;\000\000\000\001\200­û\000\000\000\000¤\035\000\000\000\000\000",
edlinecnt = -1073749264, edhist = {
   
"\177\000\000\000\020\215\006#\000\000\000\0000ïÿ¿\177\000\000\000¹õså;\000\000\000ÿÿÿÿÿÿÿÿPÞÿ¿\177\
000\000\000ÿÿÿÿÿÿÿÿ",
'\0' <repeats 27 times>,
    '\0' <repeats 12 times>, "YZ\b#\000\000\000\000aZ\b#", '\0' <repeats 20
times>,
"\200ãrå;\000\000\000\001\000\000\000\000\000\000\000\204É\t³*\000\000\000ÿÿÿÿ;\000\000\000\204É\t³"
,
"*\000\000\000\220v0å;\000\000\000\002\000\b#\000\000\000\000ÜZ\b#u\032i\t\002\000\000\000\000\000\0
---Type
<return> to continue, or q <return> to quit---
00\000ÀØ\222å;", '\0' <repeats 11 times>,
"\210ãpå\000\000\000\000t0qå\000\000\000\000\002\000\000\000\000\000\000\000\200Ýÿ¿",
"\177\000\000\000`\002\000\000\000\000\000\000A\002\000\000\000\000\000\000\226\200tå;",
'\0' <repeats 11 times>, "
âÿ¿\177\000\000\000ù\215β*\000\000\000\220©É²*\000\000\000@Wɲ*\000\000\000-\000\000\000\000\000\00
0\000\220¨¯\034",
"\000\000\000\000\002\000\000\000\000\000\000\000°ßÿ¿\177\000\000\000h9vå;\000\000\000
Två;", '\0' <repeats 20 times>,
"ãÿ¿\177\000\000\000H\215β*\000\000\000]\215β*\000\000\000PÞÿ¿",
    "\177", '\0' <repeats 19 times>, "Ö\213vå;\000\000\000
Q\b#\000\000\000\000I§uå;", '\0' <repeats 11times>,
"¤\035\000\000\000\000\000\000\200ßÿ¿\177\000\000\000\020\215\006#\000\000\000\0000ïÿ¿",
"\177\000\000\000©h˲*", '\0' <repeats 11 times>,
"@\030`²*\000\000\000(ßÿ¿\001", '\0' <repeats 11 times>,
"/ssi0/ssi/neteler/GIS_ERROR_LOG\000ware",
    "/cvsgrass61/dist.x86_64-unknown-linux-gnu/GIS_ERROR_LOG", '\0' <repeats
21 times>, "x ɲ",
    "*\000\000\000ø\024`²*", '\0' <repeats 11 times>,
"ð¡ß²*\000\000\000\020\215\006#\000\000\000\0000ïÿ¿\177", '\0' <repeats 19
times>, "Ðãÿ¿\177\000\000\000:¦0å;\000\000\000\001\000\000",
    '\0' <repeats 20 times>, "x
ɲ*\000\000\000¤\035\000\000\000\000\000\000\002¥0å;\000\000\000\001\000\000\000\000\000\000\000P\02
04&",
'\0' <repeats 12 times>, "°ßÿ¿\177\000\000\000*\213«D",
   
"\000\000\000\000\220¨¯\034\000\000\000\000PÞÿ¿\000\000\000\000Päÿ¿\177\000\000\000Ðãÿ¿\177\000\000\
0006h˲*\000\000\000ãßÿ¿\177\000\000\000Ðùÿ¿\177\000\000\000\220¨¯\034\000\000\000\000*\213«D\000\00
0\000\000/ssi",
"0/ssi/neteler/grass61/raster/simwe/r.sim.water\000\000\000\000\000\000  
     tr_TR.ISO-8859-9\000\n\nu",
    "sing the `glibcbug' script
to\n\000re\n\000\000¹\236rå;\000\000\000\200àÿ¿\177\000\000\000
\006\223å;\000\000\000¸+\000\000\000\000\000\000 \006\223å;\000\000\0000\000\000",
---Type <return> to continue, or q <return> to quit---
    '\0' <repeats 12 times>, "0Ö\a#", '\0' <repeats 20 times>,
"\235#wå;\000\000\000Ðàÿ¿\177\000\000\000
\000\000\000\000\000\000\000\201\000\000\000\000\000\000\0000¸rå;\000\000\0000ïÿ¿",
"\177", '\0' <repeats 19 times>, "R¬vå;\000\000\000\020@á²*\000\000\000
\006\223å;\000\000\000àÜÇ´*\000\000\000,¹\002\000\000\000\000\000sâÿ¿\177\000\000\000pâÿ¿\177\000\00
0\000U\000\000",
"\000\000\000\000 \006\223å;\000\000\000t\000\000\000\000\000\000\000
\006\223å;\000\000\000Àb\b#",'\0' <repeats 20 times>,
"°ë\b#\000\000\000\000\200âÿ¿\177\000\000\000Ö\213vå;\000\000\0000Ö\a#",
    "\000\000\000\000@·rå;", '\0' <repeats 11 times>,
"Ϻ0å;\000\000\000\001\000\000\000\177\000\000\000\001N¸å;\000\000\000\204É\t³*\000\000\000\220v0å;\
000\000\000sâÿ¿\177\000\000\000pâÿ¿u\032i\t\002\000\000",
"\000\000\000\000\200âÿ¿\177", '\0' <repeats 11 times>,
"\220O\b#\000\000\000\000t0qå;\000\000\000\210ãpå;\000\000\000\210)på;\000\000\000-\000\000\000\000\
000\000\000ØÓϳ*\000\000\000¨Ùϳ*\000\000\000\020ãÿ¿",
"\177\000\000\000`\224ɲ*\000\000\000¹\213\t\a\000\000\000\000tÂɲ*", '\0'
<repeats 11 times>, "@\030`²*", '\0' <repeats 11 times>,
"Ðâÿ¿\177\000\000\000\002", '\0' <repeats 15 times>, "lâÿ¿",
    "\177\000\000\000ðäÿ¿\177", '\0' <repeats 11 times>,
"r\\tå;\000\000\000\001\000\000\000\000\000\000\000ðäÿ¿\177\000\000\0003.036103e-05;\000\000\0000.38
3078
ãÿ¿\177\000\000\000\210w\200å",
   
";\000\000\0003\000\000\000.\000\000\0000\000\000\0003\000\000\0006\000\000\0001\000\000\0000\000\00
0\0003\000\000\000e\000\000\000-\000\000\0000\000\000\0005\000\000\000\233\\tå;",
'\0' <repeats 11 times>, "r\\tå;\000\000\000\000\000\000",
   
"\000\000$ô\000\000\000\000\000\000\000\0004.000000ÂJtå;\000\000\0000\000\000\0000\000\000\0000\000\
000\0000\000\000\0000\000\000\0000\000\000\0004\000\000\000.\000\000\000À(4±\\8ø$\f\000\000\000\000\
000\000\000\000\000\000",
"\000\000\000\000\\Ctå;\000\000\000\003\034\177\025\004\000\001", '\0'
<repeats 13 times>, "\020¥Ôè\---Type <return> to continue, or q <return> to
quit---
000\000\000\000\000\000\000\000\0000äeÝDmz\003\000\000\000\000\000\000\000\000\003\034\177\025\004\0
00\001\000\021\023\032\000\022\017\027¸£ø/",
"úÕÿ>\221@tå;", '\0' <repeats 12 times>, "
rN\030\t\000\000\000\000\000\000\000\000\000\000¸£ø/úÕÿ>\000\003\034\177\025\004\000\001\000\021\023
\032\000\022\017\027\026\000\000\000ôÿÿÿ\000öϳ*\000\000\000\000\000\000",
"\000\000\000\000\210âÿ¿\177\000\000\000¤\035\000\000\000\000\000\000\001\000\000\000ÿÿÿ\177\001\000
\000\000\001\000\000\000\016\000\000\000\000\000\000\000\210âÿ¿\177\000\000\000\200âÿ¿\177",
'\0' <repeats 11 times>, "\005\000\000\000\006\000\000\000\000\000\000",
    "\f", '\0' <repeats 11 times>, "ïc˲", '\0' <repeats 16 times>,
".\000\000\000ç\003\201å;\000\000\000\000çÿ¿\177\000\000\000Àè\222å;\000\000\000¸£ø/úÕ\037\000HNvå;\
000\000\000\bãÿ¿",
"\177\000\000\000Àè\222å;\000\000\000\002\000\000\000\000\000\000\000\000Ø\222å;\000\000\000\000`ö²*
\000\000\000\204>vå;\000\000\000Àè\222å;\000\000\000Àè\222å;\000\000\000\000Ø\222å;\000\000\000¦?V\2
25*\000\000\000\000\000\000",
"\000\000\000\000²Ovå;\000\000\000\000\000\000\000\000\000\020\000\000Ø\222å;\000\000\000\220ëÿ¿\177
\000\000\000¦?V\225*\000\000\000\001",
'\0' <repeats 15 times>, "Àè\222å;\000\000\000îùså;\000\000\000@ãÿ¿",
   
"\177\000\000\000?\rx\221ù+J<\a-\202\223/\002\214¿Àãÿ¿\177\000\000\000\000\000\000\000\000\000\020@\
205ÐOj\224iÜ?\000\000\000\000\000\000\000\000pçÿ¿\177\000\000\000\000ìÿ¿\177",
'\0' <repeats 14 times>,'\0' <repeats 12 times>,
"Àè\222å;\000\000\000îùså;\000\000\000\037\000\000\000\000\000\000\000\001\000\000\000µb$Ä\000\000\0
00\000\000\000\000\000fX\n#\000\000\000\000\017\036\n#",
'\0' <repeats 15 times>,
   
"\000\000\000\000àçÿ¿\177\000\000\000\a\000\000\000\000\000\000\000\025×\a#\000\000\000\000\002\000\
000\000\000\000\000\000µ\217Àå;\000\000e
v\v#\000\000\000\000
\006\223å;\000\000\000ðæÿ¿\177\000\000\000¨+\000\000\000\000\000\000ÿÿÿÿ",
---Type <return> to continue, or q <return> to quit---
    '\0' <repeats 40 times>,
"\n\000\000\000\001\000\000\000\000\000\000\000\002\000\000\000\000\000\000\000Xëÿ¿\177\000\000\000¦
?V\225*\000\000\000
\000\000",
    "\001\000\000\000ÿÿÿÿÿÿÿÿ\000\000\000\000\000\000\000\000
ëÿ¿\177\000\000\000¥?V\225*", '\0' <repeats 39 times>,
"\n\000\000\000\001\000\000",
   
"\000\000\000\000\002\000\000\000\002\000\000\000Èëÿ¿\177\000\000\000b=V\225*\000\000\0000ïÿ¿\031\00
0\000\000ÿÿÿÿÿÿÿÿ\000\000\000\000\000\000\000\000\020ìÿ¿\177\000\000\000S=V\225*\000\000\000
çÿ¿\177\000\000\000\000\000\000",
    "\000\000\000\000¦?V\225*\000\000\000Lßɲ*", '\0' <repeats 11 times>,
"ÿÿÿÿ\000\000\000\000e\000\000\000\000\000\000\000 \000\000\000*", '\0'
<repeats 11 times>,
"¸£ø/úÕÿ>à\202U\225*\000\000\000ð\214uå",";\000\000\000Àè\222å;\000\000\000\000\000\000\000\177",
'\0' <repeats 11 times>,
"\b\000\000\0000\000\000\000\200ìÿ¿\177\000\000\000Àëÿ¿\177", '\0' <repeats 11
times>, "ÿÿÿÿ\000\000\000\000f\000\000\000\000\000\000\000 \000\000",
   
"\000\000\000\000\001\000\000\000\t\000\000\000\000\000\000\000\000\000\020@\001\000\000\000\000\000
\000\000ð\214uå;\000\000\000Àè\222å;\000\000\000\000\000\000\000;",
'\0' <repeats 11 times>, "\b\000\000\0000\000\000\000ðìÿ¿\177\000\000\0000ìÿ¿",
"\177\000\000\000\230gU\225*\000\000\000\001\000\000\000k\a\000\000\200Í\t#\000\000\000\000°\034\001
\000\000\000\000\000
\006\223å;\000\000\000`Y\n#\000\000\000\000±\034\001\000\000\000\000\000À\\\t#\000\000\000\000\032\2
06vå;\000\000\000`\033\000",
"\000\000\000\000\001\000\000\000\001\000\000\000\001\000\000\000\000\000\000\000\001\000\000\000u\0
05\000\000\220ɰ\034\000\000\000\000ø\024`²\t\000\000\000\200\203ɲ*\000\000\000ø\024`²*\000\000\000
\020éÿ¿\177\000\000\000hVf\225*\000\000\000¨+\000",
"\000\000\000\000
\006\223å;\000\000\000Ðèÿ¿\177\000\000\000¨+\000\000\000\000\000\0000ïÿ¿\177",
'\0' <repeats 19 times>,
"Ø7á²*\000\000\000Ðèÿ¿\177\000\000\000\004vͲ*\000\000\000\020±\034",
---Type <return> to continue, or q <return> to quit---
   
"\000\000\000\000Ø7á²*\000\000\000ðèÿ¿\177\000\000\000X¸Ê²*\000\000\000\024AP\000\000\000\000\000\b\
000\000\000\t\000\000\000\020éÿ¿\177\000\000\000;µÊ²*\000\000\000\001\000\000\000\000\000\000\000\00
1\000\000\000\t\000\000\000\000îÿ¿",
"\177\000\000\000RÂU\225*\000\000\000\000\000\000\000\001\000\000\000\000\000\000\000\000\000à?\000\
000\000\000\000\000\000\000ðëÿ¿\000\000\000\0000ïÿ¿\177\000\000\000Óãÿ¿\177\000\000\000ØÓϳ*",
'\0' <repeats 11 times>, "\002\000ÿ¿",
    "\177\000\000\000`êÿ¿\001", '\0' <repeats 19 times>,
"t0qå;\000\000\000\210ãpå;\000\000\000\210)på;\000\000\000-\000\000\000\000\000\000\000ØÓϳ\000\000\
000\000¨Ùϳ*\000\000\000àêÿ¿",
"\177\000\000\000Ϻ0å;\000\000\000\000\000\000\000\001\000\000\000\001\000\000\000\000\000\000\000\2
04É\t³*\000\000\000\220v0å;",
'\0' <repeats 15 times>,
"u\032i\t\002\000\000\000\000\000\000\000Ϻ0å;\000\000\000\000\000\000",
    "\000\000\000\000\001\000\000\000\000\000\000\000¸6 å;\000\000\0000/
å;\000\000\000 \017
å;\000\000\000-\000\000\000\000\000\000\000ØÓϳ*\000\000\000ÐÕϳ*\000\000\000pëÿ¿\177\000\000\000\20
0\177U\225*\000\000\000Ws\000",
"\000\000\000\000©\216U\225*\000\000\000ÐwU\225*\000\000\000àjU\225*\000\000\000°ëÿ¿\177\000\000\000
pëÿ¿\177\000\000\000Ws\000\000\000\000\000\000©\216U\225*",
'\0' <repeats 11 times>, "Nx0å;\000\000\000ÐÕϳ",
    "*\000\000\000\001\000\000\000*", '\0' <repeats 11 times>,
"\001\000\000\000\177\000\000\000Æ\232Ø\006\000\000\000\000¢\216U\225*", '\0'
<repeats 15 times>, "\001\000\000\000ÐÕϳ*\000\000\000àjU\225*\000\000\000Øëÿ¿",
"\177\000\000\000\230gU\225*", '\0' <repeats 11 times>,
"@\030`²*\000\000\000øëÿ¿\177\000\000\000\000\000\000\000\001", '\0' <repeats
11 times>,
"àjU\225*\000\000\000\030ìÿ¿\177\000\000\000\230gU\225*\000\000\000\000\000\000",
---Type <return> to continue, or q <return> to quit---
    "\000\000\000\000Nx0å;\000\000\000\0007000000\001", '\0' <repeats 15
times>, "Äq¯\034\000\000\000\000\020»\n#\000\000\000\0000ïÿ¿\177", '\0'
<repeats 20 times>, "îÿ¿",
   
"\177\000\000\000x\177tå;\000\000\000\b\000\000\0000\000\000\0009u0å;\000\000\000Àëÿ¿\177\000\000\00
0:¦0å;\000\000\000\001\000\000\000\000\000\000\000\034\005",
'\0' <repeats 14 times>, "Äq¯\034\000\000\000\000~\222U\225"}}
        hist1 = {
  mapid =
"\220Ö\a#\000\000\000\000ÿÿÿÿÿÿÿÿ\220Ö\a#\000\000\000\000\220Ö\a#\000\000\000\000\000Éÿ¿\177\000\000
\000\020Èÿ¿\177\000\000\000`Òÿ¿\177\000\000\000ÿÿÿÿÿÿÿÿ`Òÿ¿\177\000\000\000`Òÿ¿\177\000\000",
title = "0Éÿ¿\177\000\000\000¨\216β*", '\0' <repeats 19 times>,
"@Îÿ¿\177\000\000\000ÙÊuå;\000\000\000\001\200­ûÿÿÿÿ`Òÿ¿\177\000\000\000`Òÿ¿\177\000\000\000`Òÿ¿\177
\000\000",
mapset =
"`Òÿ¿\177\000\000\000\220Òÿ¿\177\000\000\000ÿÿÿÿÿÿÿÿ`Òÿ¿\177\000\000\000ÿÿÿÿÿÿÿÿ",
'\0' <repeats 39 times>,
  creator = "@v\v#\000\000\000\000ÿÿÿÿ;", '\0' <repeats 19 times>,
"6pö²*\000\000\000\216^vå;\000\000\000@v\v#\000\000\000\000ÿÿÿÿ;", '\0'
<repeats 11 times>, "\001\000\000\000\n\000\000",
  maptype =
"pÉÿ¿\177\000\000\000\033\000\000\000\000\000\000\000\000Êÿ¿\177\000\000\000ÀØ\222å;",
'\0'<repeats 11 times>, "\226\200tå;\000\000\000
\000\000\0000\000\000\0008@á²*\000\000\000@Îÿ¿\177\000\000\000\000\ná²*\000\000",
datsrc_1 = "0ïÿ¿\177\000\000\000\226\200tå;\000\000\000
\000\000\0000\000\000\000\020Êÿ¿\177\000\000\000PÉÿ¿\177\000\000\000mdsdkdqÿ\220Íÿ¿\177\000\000\000
\006\223å;\000\000\000\220Ö\a#\000\000\000\000°é\n#\000\000\000",
  datsrc_2 = "ÿþþþþþþþ°Ãÿ¿\177", '\0' <repeats 11 times>,
"R¬vå;\000\000\000\033\000\000\000\000\000\000\000ÐÉÿ¿\177\000\000\000\000\ná²*\000\000\000
\006\223å;\000\000\000\000Êÿ¿\177\000\000\000\000\ná²*\000\000",
---Type <return> to continue, or q <return> to quit---
  keywrd = "0ïÿ¿\177", '\0' <repeats 19 times>,
"Ö\213vå;\000\000\0008@á²*\000\000\000\036cʲ*\000\000\000
Ìÿ¿\177\000\000\000\220Ö\a#\000\000\000\000@Îÿ¿\177\000\000\000ão˲*\000\000",
edlinecnt = -1073754560, edhist = {
   
"\177\000\000\000\220Ö\a#\000\000\000\000\000Ëÿ¿\177\000\000\000¨\216β*\000\000\000/ssi0/ssi/netele
r/grassd
Êÿ¿\177\000\000\000\220¨¯\034\000\000\000\000ÿÿÿÿÿÿÿÿ\220¨¯\034",
   
"\000\000\000\000\220¨¯\034\000\000\000\000ÀËÿ¿\177\000\000\000ÐÊÿ¿\177\000\000\000@Õÿ¿\177\000\000\
000ÿÿÿÿÿÿÿÿ@Õÿ¿\177\000\000\000@Õÿ¿\177\000\000\000ðËÿ¿\177\000\000\000¨\216β*\000\000\000\000\000\
000",
'\0' <repeats 13 times>,
"Ñÿ¿\177\000\000\000ÙÊuå;\000\000\000\001\200­ûÿÿÿÿ@Õÿ¿\177\000\000\000@Õÿ¿\177\000\000\000@Õÿ¿\177\
000\000\000@Õÿ¿\177\000\000\000pÕÿ¿\177\000\000\000ÿÿÿÿ",
"ÿÿÿÿ@Õÿ¿\177\000\000\000ÿÿÿÿÿÿÿÿ", '\0' <repeats 40 times>,
"\v\000\000\000\000\000\000\000ÿÿÿÿ\000\000\000\000\000\000\000",
    '\0' <repeats 12 times>, "­\216β*\000\000\000
Òÿ¿\177\000\000\000\a\000\000\000\000\000\000\000ÿÿÿÿ;", '\0' <repeats 11
times>,
"àËÿ¿\177\000\000\000\020Îÿ¿\177\000\000\000\033\000\000\000\000\000\000\000ÀÌÿ¿",
"\177\000\000\000ÀØ\222å;", '\0' <repeats 11 times>,
"\226\200tå;\000\000\000
\000\000\0000\000\000\000\020±\034\000\000\000\000\000Ñÿ¿\177\000\000\000¨+\000\000\000\000\000\000
0ïÿ¿\177\000\000\000\226\200tå;\000\000\000
\000\000",
   
"0\000\000\000ÐÌÿ¿\177\000\000\000\020Ìÿ¿\177\000\000\000mdsdkdqÿp\006\223å;\000\000\000
\006\223å;\000\000\000\220¨¯\034\000\000\000\000PÖ\a#\000\000\000\000ÿþþþþþþþpÆÿ¿\177\000\000\000\00
0\000\000",
"\000\000\000\000R¬vå;\000\000\000\033\000\000\000\000\000\000\000\220Ìÿ¿\177\000\000\000¨+\000\000\
000\000\000\000
\006\223å;\000\000\000ÀÌÿ¿\177\000\000\000¨+\000\000\000\000\000\0000ïÿ¿\177",
'\0' <repeats 14 times>,
---Type <return> to continue, or q <return> to quit---
   
"\000\000\000\000Ö\213vå;\000\000\000\020±\034\000\000\000\000\036cʲ*\000\000\000àÎÿ¿\177\000\000\
000\220¨¯\034\000\000\000\000\000Ñÿ¿\177\000\000\000ão˲*",
'\0' <repeats 11 times>, "\220¨¯\034\000\000\000\000\000Òÿ¿",
   
"\177\000\000\000\000\ná²*\000\000\0000ïÿ¿\177\000\000\000\f\000\000\000\000\000\000\000`Íÿ¿\177\000
\000\000Â9vå;\000\000\000
Två;\000\000\000Í]vå;", '\0' <repeats 11 times>, "
\006\223å\000\000\000\000@v\v#",
    "\000\000\000\000\000\ná²*\000\000s ", '\0' <repeats 23 times>, "
\006\223å\000\000\000\000ÿÿÿÿ", '\0' <repeats 11 times>, "s ", '\0' <repeats
18 times>,
    '\0' <repeats 12 times>, "ÿÿÿÿ", '\0' <repeats 40 times>,
"ÿÿÿÿ\000\000\000\000\000\000\000\000\002\000\000\000\002\000\000\000øÒÿ¿",
"\177\000\000\000¨\216β*\000\000\000\033\000\000\000/\000\000\000ÿÿÿÿÿÿÿÿ\000\000\000\000\000\000\0
00\000`Ôÿ¿\177\000\000\000¨\216β*",
'\0' <repeats 19 times>, "Ö\213vå;\000\000\000°é\n#",
   
"\000\000\000\000\222Ýβ*\000\000\000ðÖÿ¿\177\000\000\000`Òÿ¿\177\000\000\000\200Öÿ¿\177\000\000\000
ש̲*\000\000\000\220Òÿ¿\f\000\000\000M¹Î²*\000\000\000M¹Î²*",
'\0' <repeats 11 times>, "\v\000\000",
    "\000\000\000\000P¦¯\034", '\0' <repeats 12 times>,
"­\216β*\000\000\000­\216β*", '\0' <repeats 11 times>,
"\a\000\000\000\000\000\000\000 »å²*", '\0' <repeats 11 times>,
"vüså;\000\000\000\020\000\000",
    "0\000\000\000\020Õÿ¿\177\000\000\000PÔÿ¿\177", '\0' <repeats 27 times>,
"\020\000\000\0000\000\000\000@Õÿ¿\177\000\000\000\200Ôÿ¿\177", '\0' <repeats
14 times>,
    '\0' <repeats 12 times>, "ÿÿÿÿ", '\0' <repeats 52 times>,
"\002\000\000\000\001\000\000s Ôÿ¿",
   
"\177\000\000\000\217Ýβ*\000\000\000d\000\000\000\035\000\000\000ÿÿÿÿ\000\000\000\000ÿÿÿÿ",
'\0' <repeats 11 times>, "s ", '\0' <repeats 31 times>, "ÿÿÿÿ",
    '\0' <repeats 40 times>,
"ÿÿÿÿ\000\000\000\000\000\000\000\000\002\000\000\000\002\000\000\000@Ðÿ¿\1---Type
<return> to continue, or q <return> to quit---
77\000\000\000@\000\000\000\000\000\000\000!\000\000",
   
"\000\000\000\000ÿÿÿÿÿÿÿÿ\000\000\000\000\000\000\000\000\200Öÿ¿\177\000\000\000¨\216β*",
'\0' <repeats 11 times>, "\a\000\000\000\000\000\000\000Ц¯\034", '\0'
<repeats 12 times>, "X_vå;\000\000\000M¹Î²",
   
"*\000\000\000\020×ÿ¿\177\000\000\000\v\000\000\000\000\000\000\000P¦¯\034",
'\0' <repeats 12 times>,
"X_vå;\000\000\000­\216β*\000\000\000@×ÿ¿\177\000\000\000\a\000\000\000\000\000\000\000PÖ\a#\000\00
0\000\000\000\000\000",
"\000\000\000\000vüså;", '\0' <repeats 11 times>,
"ðÒÿ¿\177\000\000\000rfish60/Pé\n#\000\000\000\000Pé\n#\000\000\000\000\b",
'\0' <repeats 15 times>, " Óÿ¿\177\000\000\000Pé\n#",
   
"\000\000\000\000PÖ\a#\000\000\000\000PÙÿ¿\177\000\000\000Lr˲*\000\000\000\020\000\000\0000\000\000
\000Pé\n#\000\000\000\000
Öÿ¿\177\000\000\000\220×ÿ¿\177\000\000\000PÖ\a#\000\000\000\000\203¬Î²\000\000\000\000\000ÿÿÿ",
'\0' <repeats 11 times>, "s ", '\0' <repeats 31 times>, "ÿÿÿÿ", '\0'
<repeats 11 times>, "s ", '\0'<repeats 18 times>,
    '\0' <repeats 12 times>, "ÿÿÿÿ", '\0' <repeats 40 times>,
"ÿÿÿÿ\000\000\000\000\000\000\000\000\002\000\000\000\002\000\000\000\b×ÿ¿",
"\177\000\000\000¨\216β*\000\000\000\000\000\000\000/\000\000\000ÿÿÿÿÿÿÿÿ\000\000\000\000\000\000\0
00\000pØÿ¿\177\000\000\000¨\216β*",
'\0' <repeats 11 times>, "0ïÿ¿\177", '\0' <repeats 14 times>,
   
"\000\000\000\000£¤uå;\000\000\0008@á²*\000\000\000ÀÖÿ¿\177\000\000\000\000\ná²*\000\000\000T\216Ͳ*
\000\000\000/ssi0/ssM¹Î²*\000\000\000r/grassd\000\000\000\000\000\000\000\000rfis",
"\001", '\0' <repeats 11 times>,
"round\000is­\216β*\000\000\000ion.10m_\000\000\000\000\000\000\000\000quant\000ss\020Óÿ¿\177\000\0
00\000\220Ö\a#\000\000\000\000ÿÿÿÿÿÿÿÿ\020\000\000",
"0\000\000\000
Ùÿ¿\177\000\000\000`Øÿ¿\177\000\000\000@Óÿ¿\177\000\000\000°Ýÿ¿\177\000\000\000ÿÿÿÿÿÿ---Type
<return> to continue, or q <return> to quit---
ÿÿ\020\000\000\0000\000\000\000PÙÿ¿\177\000\000\000\220Øÿ¿\177\000\000\000¨\216β*\000\000\000\000\0
00\000",
'\0' <repeats 12 times>,
"pÙÿ¿\177\000\000\000ÙÊuå;\000\000\000\000\200­ûÿÿÿÿ°Ýÿ¿\177\000\000\000°Ýÿ¿\177\000\000\000°Ýÿ¿\177
\000\000\000°Ýÿ¿\177\000\000\000àÝÿ¿\177\000\000\000ÿÿÿÿ",
"ÿÿÿÿ°Ýÿ¿\177\000\000\000ÿÿÿÿÿÿÿÿ", '\0' <repeats 40 times>,
"àØÿ¿\000\000\000\000ÿÿÿÿ\000\000\000\000\000\000ÿ¿",
    "\177", '\0' <repeats 11 times>, "
\000\000\0000\000\000\000°Ôÿ¿\177\000\000\000ðÓÿ¿\177\000\000\000ÿÿÿÿ;", '\0'
<repeats 11 times>, "
\006\223å;\000\000\000\220¨¯\034\000\000\000\000\033\000\000\000\000\000\000\0000Õÿ¿",
"\177\000\000\000ÀØ\222å;", '\0' <repeats 11 times>,
"\226\200tå;\000\000\000
\000\000\0000\000\000\000\020±\034\000\000\000\000pÙÿ¿\177\000\000\000¨+\000\000\000\000\000\0000ïÿ
¿\177\000\000\000\226\200tå;\000\000\000
\000\000",
   
"0\000\000\000@Õÿ¿\177\000\000\000\200Ôÿ¿\177\000\000\000\f\000\000\000\000\000\000\000ðÖÿ¿\177\000\
000\000
\006\223å;\000\000\000\220Ö\a#\000\000\000\000PÖ\a#\000\000\000\000ÿþþþþþþþàÎÿ¿\177\000\000\000\000\
000\000",
"\000\000\000\000R¬vå;\000\000\000\033\000\000\000\000\000\000\000\000Õÿ¿\177\000\000\000¨+\000\000\
000\000\000\000
\006\223å;\000\000\0000Õÿ¿\177\000\000\000¨+\000\000\000\000\000\0000ïÿ¿\177",
'\0' <repeats 14 times>,
   
"\000\000\000\000Ö\213vå;\000\000\000\020±\034\000\000\000\000\036cʲ*\000\000\000P×ÿ¿\177\000\000\
000\220Ö\a#\000\000\000\000pÙÿ¿\177\000\000\000ão˲*\000\000\000/ssi0/ssi/neteler/gr",
"assdX_vå;\000\000\000e\215β*\000\000\000
Üÿ¿\177\000\000\000\021\000\000\000\000\000\000\000\220¨¯\034", '\0' <repeats
12 times>, "vüså;\000\000\000ll\000ÿÿÿÿÿÐßÿ¿\177\000\000\000ÿÿÿÿ",
    "ÿÿÿÿ", '\0' <repeats 33 times>, "Øÿ¿\177\000\000\000
áÿ¿\000\000\000\000ÿÿÿÿ*\000\000\000\000\000ÿ¿
\177", '\0' <repeats 11 times>, "\030\000\000",
    "0\000\000\000\203Xvå;\000\000\000 Två;\000\000\000ÿÿÿÿ;", '\0' <repeats
11 times>,
"@v\v#\000\000\000\000\f\000\000\000\000\000\000\000\033\000\000\000\000\000\000\000P×ÿ¿\177\000\000
\000ÀØ\222å;\000\000\000\000\000\000",
"\000\000\000\000\226\200tå\000\000\000\000
\000\000\0000\000\000\000\000\ná²*\000\000s
Ûÿ¿\177\000\000\000¨+\000\000\000\000\000\0000ïÿ¿\177\000\000\000\226\200tå\000\000\000\000ÿÿÿÿ",
'\0' <repeats 15 times>,
    '\0' <repeats 24 times>, ";", '\0' <repeats 11 times>,
"\035\000\000\000\001\000\000\000èÛÿ¿\177\000\000\000c\215β*\000\000\000\\\215β\037\000\000\000ÿÿÿ
ÿÿÿÿÿ\000\000\000",
"\000\000\000\000PÝÿ¿\177\000\000\000c\215β*\000\000\000P×ÿ¿\177\000\000\000
áÿ¿\177\000\000\000ÿÿÿÿÿÿÿÿ áÿ¿\177\000\000\000
áÿ¿\177\000\000\000pØÿ¿\177\000\000\000¨\216β*\000\000\000\000\000\000",
    '\0' <repeats 12 times>,
"\200Ýÿ¿\177\000\000\000ÙÊuå;\000\000\000\001\200­ûÿÿÿÿ\202Mvå;\000\000\000
Q\b#\000\000\000\000]@vå;\000\000\000
áÿ¿\177\000\000\000s\215β*\000\000\000\200Úÿ¿",
    "\177", '\0' <repeats 11 times>, "ÿÿÿÿ\000\000\000\000\034Ðtå;", '\0'
<repeats 35 times>, "Pç\n#\000\000\000\000ÿÿÿÿ\000\000\000\000\000\000\000",
'\0' <repeats 12 times>,
"\020\000\000\0000\000\000\0000Þÿ¿\177\000\000\000pÝÿ¿\177\000\000\000ÿÿÿÿ;",
'\0' <repeats 27 times>, "\002\000\000\000\000\000\000\000@Ùÿ¿",
   
"\177\000\000\000\\\215β*\000\000\000\000\000\000\000\001\000\000\000ÿÿÿÿÿÿÿÿ\000\000\000\000\001",

'\0' <repeats 46 times>,
    '\0' <repeats 12 times>,
"\222Ûÿ¿\177\000\000\000ç\003\201å;\000\000\000\001\000\000\000\000\000\000\000\000\000\000\024\000\
000\000\000\200ãrå;\000\000\000\001\000\000\000\000\000\000\000ÿþþþþþþþðÒÿ¿\000\000\000\000ðÃ\t#",
"\000\000\000\000\000å\222å;\000\000\000\000\000\000\000ÿÿÿÿ\021\000\000\000\000\000\000\000¨+\000\0
---Type
<return> to continue, or q <return> to quit---

00\001\000\000\0000²Î²*", '\0' <repeats 11 times>, "\220Úÿ¿\177\000\000\000Ä\t
å;\000\000\000\220v0å;\000\000\000\000\000\000"
,
    "\000\000\000\000Ö\213våu\032i\t\002\000±\034\000\000\000\000 Q\b#", '\0'
<repeats 15 times>, "\024\000\000\000\000\200ãrå;\000\000\000\001", '\0'
<repeats 26 times>, '\0' <repeats 79 times>}}
        depth0 = 0x0
        disch0 = 0x0
        err0 = 0x0
        conc0 = 0x0
        flux0 = 0x0
        erdep0 = 0x0
        outwalk0 = 0x0
        mapst = 0x0
        type = 0x7fbfffc7a0 "\220Ö\a#"
        buf = "ion.10m_infil/f_\020\000\000\0000\000\000\000
Ìÿ¿\177\000\000\000àËÿ¿\177\000\000\000\002\000\000\000\001\000\000\000\230Ëÿ¿\177\000\000\000¿Äβ*\
000\000\000\020\000\000\0000\000\000\000ÐÌÿ¿\177\000\000\000\020Ìÿ¿\177\000\000\000\000Íÿ¿\177\000\0
00\000µÄβ*",
'\0' <repeats 11 times>, "ÿÿÿÿ", '\0' <repeats 40 times>,
"ÿÿÿÿ\000\000\000\000\000\000\000\000\002\000\000\000\002\000\000\000\030Ìÿ¿\177\000\000\000¨\216β*
\000\000\000
Èÿ¿/\000\000\000ÿÿÿÿÿÿÿÿ\000\000\000\000\000\000\000\000pÇÿ¿\177\000\000\000\220¨¯\034\000\000\000".
..
ndigit = 5
        dat1 = 1.10827116e+27
        dat2 = 1.84940106e+31
        a1 = 1.14314111e+27
        a2 = 0
        walkershead = {name = 0x0, desc = 0x0,
  form = 0x73732f306973732f <Address 0x73732f306973732f out of bounds>,
  labels = 0x656c6574656e2f69 <Address 0x656c6574656e2f69 out of bounds>,
  stime = 0x6473736172672f72 <Address 0x6473736172672f72 out of bounds>, time
= 0x2ab2ce8ead}
        sd = (Site *) 0x2ab2ceb94d
#13 0x000000000040324c in main (argc=9, argv=0x7fbfffef38) at main.c:381
        i = 1899
        ii = 4202555
        j = 1398
        l = 1398
        ret_val = 1
        x_orig = 590010
        y_orig = 4914020
        rand1 = 12345
        rand2 = 67891
(gdb)


Markus
Wed, Jul 5 2006 13:53:49    Comments added by mneteler  
I think that I have a functional patch now.

Markus
Thu, Jul 6 2006 14:16:49    Mail sent by mneteler  
Modified patch submitted to CVS.
Seems to work now on 64bit.

Markus
Thu, Jul 6 2006 14:16:51    Status changed to resolved by mneteler  
Fri, Jul 7 2006 14:21:35    Mail sent by andreas.philipp@geo.uni-augsburg.de  
Return-Path <andreas.philipp@geo.uni-augsburg.de>
Delivered-To grass-bugs@lists.intevation.de
From Andreas Philipp <andreas.philipp@geo.uni-augsburg.de>
Reply-To andreas.philipp@geo.uni-augsburg.de
Organization University of Augsburg
To Markus Neteler via RT <grass-bugs@intevation.de>
Subject Re: [bug #4546] (grass) r.sim.water segmentation fault
Date Fri, 7 Jul 2006 14:21:31 +0200
User-Agent KMail/1.8
References <20060706121649.78564100160@lists.intevation.de>
In-Reply-To <20060706121649.78564100160@lists.intevation.de>
MIME-Version 1.0
Content-Type text/plain; charset="utf-8"
Content-Transfer-Encoding 7bit
Content-Disposition inline
Message-Id <200607071421.31278.andreas.philipp@geo.uni-augsburg.de>
X-ClamAV-Scanned fe57dedc485ad757a734419ec3598557
X-Virus-Scanned 54befd1ffddecda4ad26005990a3a82b
X-Virus-Scanned by amavisd-new at intevation.de
X-Spam-Status No, hits=-3.333 tagged_above=-999 required=4 tests=[AWL=1.667, BAYES_00=-5]
X-Spam-Level
Cool, it is running now! Thanks!
Just the vector/sites output "outwalk" is causing still problems:

In line 50 of "output.c" a point (".") is inserted into the filename which 
causes troubles like:
"Illegal vector map name <dem_filled_outwalk.00099>. Character <.> not 
allowed."

If just omitting the point before the the sequence number of outwalk-filenames
the vector files can be written. Thus replacing line 50 with:

sprintf(buf,"%s%.*d",outwalk,ndigit,tt);

solves this bug (append the sequence number directly to the outwalk-prefix, 
using "_" is no good idea since if the prefix is just "" incorrect filenames
are produced as well).


BUT: I still get this error:

---------------------------------------------------------
GRASS 6.1.cvs (wgk05):~ > r.sim.water --o elevin=dem_filled dxin=dem_filled_dx
dyin=dem_filled_dy rain=dem_filled_rain manin=dem_filled_manin 
infil=dem_filled_infil depth=dem_filled_depth disch=dem_filled_disch

Running MAY 10 version

 zmin,zmax 442.060730 1799.675659
 simean,vmean,chmean,deltap,deltaw 0.013313 0.902337 4.617597 24.943901 
1000000000000.000000
 MITER, timec 0 4.000000
 maxwa, nblock 2000000 1
 barea,sarea,rwalk,sisum: 8105.627693 4.000000 2000000.000000 11140.609209
 number of written walkers: 10391
 nwalk, maxw 2078234 7000000
 walkwe (walk weight),frac 1999999.999999 0.800000
 deldif,factor 3.995510 1.389451e-01
   8%
 iblock=1 i=1 miter=12 nwalk=2078234 nwalka=0 WARNING: Adapted sites library
used for vector points (module should be
         updated to GRASS 6 vector library).
WARNING: Site/vector attributes ignored.
  16%
 iblock=1 i=2 miter=12 nwalk=2078234 nwalka=2078234WARNING: Adapted sites 
library used for vector points (module should be
         updated to GRASS 6 vector library).
WARNING: Site/vector attributes ignored.
  25%
 iblock=1 i=3 miter=12 nwalk=2078234 nwalka=0
-------------------------------------------------------------

And if trying to display the vector files:

GRASS 6.1.cvs (wgk05):~ > d.vect dem_filled00099
WARNING: coor files of vector 'dem_filled00099@student' is larger than it
         should be (176661 bytes excess).
WARNING: Cannot display areas, topology not available

though the maps are displayed correctly as it seems!

--------------------------------------------------------------

building topology helps for the second warning:

GRASS 6.1.cvs (wgk05):~ > v.build map=dem_filled00099 
WARNING: coor files of vector 'dem_filled00099@student' is larger than it
         should be (176661 bytes excess).
Building topology ...
10391 primitives registered      
Building areas:  100%
0 areas built      
0 isles built
Attaching islands: 
Attaching centroids:  100%
Topology was built.
Number of nodes     :   10391
Number of primitives:   10391
Number of points    :   10391
Number of lines     :   0
Number of boundaries:   0
Number of centroids :   0
Number of areas     :   0
Number of isles     :   0
GRASS 6.1.cvs (wgk05):~ > d.vect dem_filled00099
WARNING: coor files of vector 'dem_filled00099@student' is larger than it
         should be (176661 bytes excess).

But the "bytes excess" warning remains.

I think the module is very close to be debugged/ported completely (hopefully).
Cheers,
Andreas

BTW: the script which is added to the CVS directory:
raster/simwe/r.sim.water/spearfish.sh
contains no useful parameters for producing the rain, manin and infil maps.
thus the results are nonsense. Can please anyone (Markus or Helena?) set 
meaningful parameters to have a demo helping any new user? Else there is the
danger that any people are totally confused about the functionality of this 
great module.
Thanks a lot!



On Thursday 06 July 2006 14:16, Markus Neteler via RT wrote:
> Modified patch submitted to CVS.
>
> Seems to work now on 64bit.
>
>
>
> Markus
>
> -------------------------------------------- Managed by Request Tracker

-- 
-----------------------------------------------------------
Dr. Andreas Philipp
Institute of Geography
University of Augsburg
Universitaetsstrasse 10
D - 86135 Augsburg
Germany

Phone:   ++49/821/598-2266
Fax:     ++49/821/598-2264
Email:   andreas.philipp@geo.uni-augsburg.de
Web:     www.geo.uni-augsburg.de/lehrstuehle/phygeo
-----------------------------------------------------------


Fri, Jul 7 2006 14:21:35    Status changed to open by _rt_system  
Fri, Jul 7 2006 14:46:13    Mail sent by andreas.philipp@geo.uni-augsburg.de  
Return-Path <andreas.philipp@geo.uni-augsburg.de>
Delivered-To grass-bugs@lists.intevation.de
From Andreas Philipp <andreas.philipp@geo.uni-augsburg.de>
Reply-To andreas.philipp@geo.uni-augsburg.de
Organization University of Augsburg
To Markus Neteler via RT <grass-bugs@intevation.de>
Subject Re: [bug #4546] (grass) r.sim.water segmentation fault
Date Fri, 7 Jul 2006 14:46:10 +0200
User-Agent KMail/1.8
References <20060706121649.78564100160@lists.intevation.de>
In-Reply-To <20060706121649.78564100160@lists.intevation.de>
MIME-Version 1.0
Content-Type text/plain; charset="utf-8"
Content-Transfer-Encoding 7bit
Content-Disposition inline
Message-Id <200607071446.10235.andreas.philipp@geo.uni-augsburg.de>
X-ClamAV-Scanned a524cb6921fd50f92c146e8fd9db215b
X-Virus-Scanned 8a598dcec883fcd09ad32d51e4596b21
X-Virus-Scanned by amavisd-new at intevation.de
X-Spam-Status No, hits=-3.888 tagged_above=-999 required=4 tests=[AWL=1.112, BAYES_00=-5]
X-Spam-Level
just an addendum to the previous mail:

the calling options for the r.sim.water command in the previous mail are not
the one wihch have been used in order to produce the outwalk maps. Sorry.
The right command line used for producing the output above was (including the
"-t" switch, "outiter=100" and "outwalk=dem_filled"):

GRASS 6.1.cvs (wgk05):~ > r.sim.water --o -t elevin=dem_filled \ 
dxin=dem_filled_dx dyin=dem_filled_dy rain=dem_filled_rain \ 
manin=dem_filled_manin infil=dem_filled_infil depth=dem_filled_depth \ 
disch=dem_filled_disch niter=1200 outiter=100 density=200 outwalk=dem_filled
On Thursday 06 July 2006 14:16, Markus Neteler via RT wrote:
> Modified patch submitted to CVS.
>
> Seems to work now on 64bit.
>
>
>
> Markus
>
> -------------------------------------------- Managed by Request Tracker

-- 
-----------------------------------------------------------
Dr. Andreas Philipp
Institute of Geography
University of Augsburg
Universitaetsstrasse 10
D - 86135 Augsburg
Germany

Phone:   ++49/821/598-2266
Fax:     ++49/821/598-2264
Email:   andreas.philipp@geo.uni-augsburg.de
Web:     www.geo.uni-augsburg.de/lehrstuehle/phygeo
-----------------------------------------------------------


Sat, Jul 8 2006 21:53:51    Mail sent by mneteler  
Andreas,

as suggested I have modified the "outwalk" name (-t flag) and removed "."
from the vector map name (not SQL compliant).
Additionally I have simplified G_fatal_error() code snippets in
output.c.

Helena, I would suggest to run

FILE=output.c
 indent -nbad -bap -bbb -nbbo -nbc -br -bli1 -bls -cbi0 -ncdb -nce \
  -ci4 -cli0 -ncs -d0 -di0 -fc1 -nfca -hnl -i4 -ip4 -l80 -lc80 -lp -npcs \
  -pi4 -nprs -npsl -sbi0 -sc -nsob -ss -ts8 $FILE

maybe on all files there to improve indenting of the code.

Markus

PS: I have no idea which values are appropriate for manning, rainfall etc.
to put into raster/simwe/r.sim.water/spearfish.sh
Sun, Jul 9 2006 04:57:54    Mail sent by hmitaso@unity.ncsu.edu  
Return-Path <hmitaso@unity.ncsu.edu>
Delivered-To grass-bugs@lists.intevation.de
Mime-Version 1.0 (Apple Message framework v746.2)
In-Reply-To <20060708195351.5F3D2100160@lists.intevation.de>
References <20060708195351.5F3D2100160@lists.intevation.de>
Content-Type multipart/mixed; boundary=Apple-Mail-2-160494582
Message-Id <27928427-E031-4E23-B2AD-C8680796BC9C@unity.ncsu.edu>
From Helena Mitasova <hmitaso@unity.ncsu.edu>
Subject Re: [bug #4546] (grass) Transaction (mneteler)
Date Sat, 8 Jul 2006 22:57:49 -0400
To Markus Neteler via RT <grass-bugs@intevation.de>
X-Mailer Apple Mail (2.746.2)
X-Virus-Scanned Symantec AntiVirus Scan Engine
X-Virus-Scanned by amavisd-new at intevation.de
X-Spam-Status No, hits=-4.062 tagged_above=-999 required=4 tests=[AWL=0.938, BAYES_00=-5]
X-Spam-Level
--Apple-Mail-2-160494582
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
	charset=US-ASCII;
	delsp=yes;
	format=flowed

Markus,

here is what I ran for spearfish but I am not sure whether it still  
works.
I will get to this after I am back from the conference. I just got a  
little
bit of funding to work on simwe so hopefully I will be able to make it
more friendly.

Helena



--Apple-Mail-2-160494582
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
	x-unix-mode=0644;
	name="runspearfishsimwe.txt"
Content-Disposition: attachment;
	filename=runspearfishsimwe.txt


r.sim.water [-mt] elevin=name dxin=name dyin=name rain=name
   infil=name [traps=name] manin=name [sites=name] [depth=name]
   [disch=name] [err=name] [outwalk=name] [nwalk=value] [niter=value]
   [outiter=value] [density=value] [diffc=value] [hmax=value]
   [halpha=value] [hbeta=value]

r.sim.sediment [-mt] elevin=name wdepth=name dxin=name dyin=name
   detin=name tranin=name tauin=name manin=name [sites=name] [tc=name]
   [et=name] [conc=name] [flux=name] [erdep=name] [nwalk=value]
   [niter=value] [outiter=value] [density=value] [diffc=value]

rain01=0.00001
man05=0.05
infil0=0.

r.sim.water elevin=elevation.dem dxin=elevation.dem dyin=elevation.dem rain=elevation.dem
infil=elevation.dem manin=elevation.dem depth=hh disch=qw 
r.sim.water2 -t elevin=nedorig dxin=nedorig.dx dyin=nedorig.dy rain=rain01 infil=infil0
manin=man05 depth=hhor disch=qwor outw=walkers diffc=2. hmax=0.4 halpha=12 outiter=100
niter=1500
r.sim.water2 -t elevin=ned10.t50 dxin=ned10.t50.dx dyin=ned10.t50.dy rain=rain01
infil=infil0 manin=man05 depth=hht10 disch=qwt10 outw=walkers diffc=2. hmax=0.4
halpha=12 outiter=200 niter=1000

r.mapcalc tranin=0.001
r.mapcalc detin=0.001
r.mapcalc tauin=0.01

r.sim.sediment -t elevin=elev.6 dxin=eldx.6 dyin=eldy.6 rain=rain01 infil=infil0
manin=man05 depth=hhtest.6
r.sim.sediment2 -t elevin=elev.6 dxin=eldx.6 dyin=eldy.6 wdepth=hhtestnul.6.01199
detin=detin 
tranin=tranin tauin=tauin manin=man05 tc=tc.test2 et=et.test2 flux=flux.test2
erdep=erdep.test2
r.sim.sediment2 elevin=elev.6 dxin=eldx.6 dyin=eldy.6 wdepth=hhdif01.6.00899
detin=detin
tranin=tranin tauin=tauin manin=man05 tc=tc.test5 et=et.test5 flux=flux.test5
erdep=erdep.test5
r.sim.sediment2 -t elevin=elev.6t80 dxin=dx.6t80 dyin=dy.6t80 wdepth=hhdif04.6t80.01198
detin=detin
tranin=tranin tauin=tauin manin=man05 tc=tc.test80 et=et.test80 flux=flux.test80
erdep=erdep.test80 diffc=0.2

-t does not work, without it - it is OK.

r.mapcalc veloc="(1./man05)*exp(hhtestnul.6.01199,0.67)*sqrt(sin(elev6.slp))"
o======================================================================================
iblock=1 i=2399 miter=9599 nwalk=2120088 nwalka=7145 ERROR: cannot find file
flux.test2
tries to write a color table for flux but flux was not written

BUGS

r.sim.sediment
-t flag does not work (does not write the first file and then color table assignment
cannot
find it and gives fatal error)

deltap is hardcoded at 0.1 - needs to be computed based on resolution and velocity
give warning if water depth is 

if elevation is in a different mapset than dx and dy the program cannot find
the elevation
file and gives segmentation fault.

UNDEF is -9999, gives crazy values in erdep, sed. flow is OK
Change UNDEF to something else - theoretically it is OK, but somebody could use
it
by mistake in the input parameters

Doxygen notes
doxygen je v libes/raster
pozri rastergraphicslib.dox - kombinacia html a latex




--Apple-Mail-2-160494582
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
	charset=US-ASCII;
	delsp=yes;
	format=flowed


Helena Mitasova
Dept. of Marine, Earth and Atm. Sciences
1125 Jordan Hall, NCSU Box 8208,
Raleigh NC 27695
http://skagit.meas.ncsu.edu/~helena/



On Jul 8, 2006, at 3:53 PM, Markus Neteler via RT wrote:

> this bug's URL: http://intevation.de/rt/webrt?serial_num=4546
>
> Sat, Jul 8 2006 21:53:51: Request 4546 was acted upon.
>
>  Transaction: Mail sent by mneteler
>
>        Queue: grass
>         Area: grass6
>      Subject: r.sim.water segmentation fault
>        Owner: hmitasova
>   Requestors: andreas.philipp@geo.uni-augsburg.de
>       Status: open
>
> ---------------------------------------------------------------------- 
> ---
> Andreas,
>
> as suggested I have modified the "outwalk" name (-t flag) and  
> removed "."
> from the vector map name (not SQL compliant).
> Additionally I have simplified G_fatal_error() code snippets in
> output.c.
>
> Helena, I would suggest to run
>
> FILE=output.c
>  indent -nbad -bap -bbb -nbbo -nbc -br -bli1 -bls -cbi0 -ncdb -nce \
>   -ci4 -cli0 -ncs -d0 -di0 -fc1 -nfca -hnl -i4 -ip4 -l80 -lc80 -lp - 
> npcs \
>   -pi4 -nprs -npsl -sbi0 -sc -nsob -ss -ts8 $FILE
>
> maybe on all files there to improve indenting of the code.
>
> Markus
>
> PS: I have no idea which values are appropriate for manning,  
> rainfall etc.
> to put into raster/simwe/r.sim.water/spearfish.sh
>
> -------------------------------------------- Managed by Request  
> Tracker


--Apple-Mail-2-160494582--


Sun, Dec 3 2006 10:53:20    Comments added by mneteler  
Date: Tue, 28 Nov 2006 09:15:50 +0100
From: Jaro Hofierka <hofierka geomodel sk>
Subject: Re: daily simulations on r.sim.water

Helena Mitasova wrote:

>When Markus tried r.sim.water with spearfish he could not get any output
>unless he increased rainfall to 10 (that would be 10m/s!) so I need  to
>find out
>whether something has changed in GRASS that is messing up the conversion
>or we have a bug somewhere.

I believe that this is because of misunderstanding of "rainfall" and
"infiltration" parameters in this module because both are used here as
excess rates.
I did the same error for baranja region - I set rainfall rate and then
infil. rate > 0 and it did not work (unless infil = 0 or rainfall rate
set very high). It should be stated more clearly in the manual page that
infil. excess rate can be > 0 only for areas with rain excess rate = 0.
Alternatively, the code can be changed to set usual/normal rainfall and
infiltration rate in mm/hr and "excesses" will be computed internally.

Jaro

[answer added by Markus here]
Sun, Dec 3 2006 11:55:01    Mail sent by mneteler  
Andreas,

[https://intevation.de/rt/webrt?serial_num=4546]

I have fixed the r.wim.water example in CVS based on the example
from Helena and Jaro's comment in the bugtracker. At least it is 
now calculating something:

Output water depth raster file:     elevation.10m_depth
  min=0.000312
  max=2.750590

Output water discharge raster file: elevation.10m_disch
  min=0.000000
  max=305.775726

Output simulation error raster file: elevation.10m_err
  min=0.000312
  max=2.750590

I don't know if these results make sense for Spearfish,
but we get maps now. Updated for the upcoming GRASS 6.2.1
as well.

cheers
Markus
Sat, May 12 2007 17:52:52    Status changed to resolved by mneteler  
Sat, May 12 2007 17:52:52    Mail sent by mneteler  
r.sim.water has been updated again in GRASS 6.3. It now wants reasonable
units. The Spearfish sample script is updated, too and it calculated a map.
Closing the report,
Markus
Comment | Reply | Open

You are currently authenticated as guest.
[Show Configuration] [Login as another user]

Users Guide - Mail Commands - Homepage of RequestTracker 1.0.7 - list any request