tags 511907 + patch
thanks

Hello,

There's a out of bound loop:

      DO 5  I=1, LD
    5 ZARRAY( I)=(0.,0.)
      MPCNT=0

LD is 15000, and ZARRAY is 1..NM (10000).  The attached patch fix things
for me on all examples/

The various observed behaviors are probably due to different allocation
roundups.

Samuel
--- nec/nec2.f.orig     2009-02-01 15:28:43.000000000 +0100
+++ nec/nec2.f  2009-02-01 15:30:59.000000000 +0100
@@ -183,7 +183,7 @@
 
 C    4 CONTINUE
 
-      DO 5  I=1, LD
+      DO 5  I=1, NM
     5 ZARRAY( I)=(0.,0.)
       MPCNT=0
 C                                                                       

Reply via email to