Displaying 1 result from an estimated 1 matches for "jper".
Did you mean:
aper
2007 Feb 08
1
supsmu(periodic=TRUE) can crash R by reading before start of array (PR#9502)
...sq=0xffffeffe, smo=0xb68e8020,
acvr=0x9c7e7c8) at ppr.f:1087
1087 xti=x(j)
Current language: auto; currently fortran
(gdb) list
1082 if (ibw.lt.2) ibw=2
1083 it=2*ibw+1
1084 do 20 i=1,it
1085 j=i
1086 if (jper.eq.2) j=i-ibw-1
-> 1087 xti=x(j)
1088 if (j.ge.1) go to 10
1089 j=n+j
1090 xti=x(j)-1d0
1091 10 wt=w(j)
(gdb) print jper
$1 = 2
(gdb) print j
$2 = -4099
If you use 'R -d valgrind' it stops in the same spot...