bug-glpk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-glpk] [Fwd: Bug in GLPK Graph]


From: Chris Matrakidis
Subject: Re: [Bug-glpk] [Fwd: Bug in GLPK Graph]
Date: Tue, 1 Aug 2017 19:29:05 +0300

Andrew,
 
Please note that there is a bug in the original RELAX IV Fortran code,
which I tried to fix with a brute force changes; see
https://lists.gnu.org/archive/html/bug-glpk/2013-04/msg00009.html

Some time ago I came across a different fix for the same bug:
https://github.com/jdleesmiller/relax4_ruby/blob/master/ext/relax4/relax4.c#L3811

This suggests a change in mcfrelax.c like this:
if (n > na)
   csa.prdcsr = xcalloc(1+n, sizeof(int));
else
   csa.prdcsr = xcalloc(1+na, sizeof(int)); 

or maybe a more conservative:
csa.prdcsr = xcalloc(1+n+na, sizeof(int));


Best Regards,

Chris Matrakidis


reply via email to

[Prev in Thread] Current Thread [Next in Thread]