[GRASS-dev] [grass-code I][389] problem with r.what at the longitudinal edge

grass-codei at wald.intevation.org grass-codei at wald.intevation.org
Wed May 2 03:51:29 EDT 2007


code I item #389, was opened at 2007-05-02 16:51
Status: Open
Priority: 3
Submitted By: Etsushi Kato (ekato)
Assigned to: Nobody (None)
Summary: problem with r.what at the longitudinal edge  
Issue type: module bug
Issue status: None
GRASS version: 6.2.1
GRASS component: raster
Operating system: Linux
Operating system version: Fedora Core 6
GRASS CVS checkout date, if applies (YYMMDD): 070414


Initial Comment:
I get null '*' value when specifying longitude edge with grass6.2.2cvs (20070414) compiled with Fedora Core 6.

r.what input=mod12 east_north=180W,55N
** note ** 180W 55N is outside your current window
180W|55N||*

If I change r.what/main.c as in the attached file, I get

> r.what input=mod12 east_north=180W,55N
180W|55N||0


I assume this is related to Fedora Core 6's compiler bug or optimization thing. However, I think it is safe to cast the dcol to int in this case.


Here is my system information.

$ cat /proc/version
Linux version 2.6.20-1.2933.fc6 (brewbuilder at hs20-bc2-4.build.redhat.com) (gcc version 4.1.1 20070105 (Red Hat 4.1.1-51)) #1 SMP Mon Mar 19 11:38:26 EDT 2007

$ gcc -v
Using built-in specs.
Target: i386-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-libgcj-multifile --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --enable-plugin --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre --with-cpu=generic --host=i386-redhat-linux
Thread model: posix
gcc version 4.1.1 20070105 (Red Hat 4.1.1-51)

$ cat /proc/cpuinfo
processor       : 0
vendor_id       : GenuineIntel
cpu family      : 15
model           : 4
model name      : Intel(R) Pentium(R) 4 CPU 3.40GHz
stepping        : 1
cpu MHz         : 3391.747
cache size      : 1024 KB
physical id     : 0
siblings        : 2
core id         : 0
cpu cores       : 1
fdiv_bug        : no
hlt_bug         : no
f00f_bug        : no
coma_bug        : no
fpu             : yes
fpu_exception   : yes
cpuid level     : 3
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx constant_tsc pni monitor ds_cpl cid xtpr
bogomips        : 6787.36
clflush size    : 64

processor       : 1
vendor_id       : GenuineIntel
cpu family      : 15
model           : 4
model name      : Intel(R) Pentium(R) 4 CPU 3.40GHz
stepping        : 1
cpu MHz         : 3391.747
cache size      : 1024 KB
physical id     : 0
siblings        : 2
core id         : 0
cpu cores       : 1
fdiv_bug        : no
hlt_bug         : no
f00f_bug        : no
coma_bug        : no
fpu             : yes
fpu_exception   : yes
cpuid level     : 3
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx constant_tsc pni monitor ds_cpl cid xtpr
bogomips        : 6782.97
clflush size    : 64


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

You can respond by visiting: 
http://wald.intevation.org/tracker/?func=detail&atid=204&aid=389&group_id=21




More information about the grass-dev mailing list