whizard is hosted by Hepforge, IPPP Durham

Opened 14 years ago

Closed 14 years ago

Last modified 14 years ago

#185 closed defect (fixed)

W2 crashes due to multple interactions= assignments in one file

Reported by: sschmidt Owned by: kilian
Priority: P3 Milestone:
Component: core Version: 2.0.0rc1
Severity: normal Keywords:
Cc:

Description

W2 crashes in case there are multiple interactions= assignements in one input file:

Runtime Error: commands.f90, line 848: Cannot allocate ALLOCATABLE variable - it is already currently allocated

Solution: Replace

     allocate (it_list%pass (it_list%n_pass))

in whizard.nw, subroutine iterations_list_init, line 58647, by

     if(allocated(it_list%pass)) deallocate(it_list%pass)
     allocate (it_list%pass (it_list%n_pass))

I did it myself but unfortunately I am not allowed to commit my changes :-(

Attachments (1)

bug19.sin (126 bytes) - added by sschmidt 14 years ago.
simple input file

Download all attachments as: .zip

Change History (3)

Changed 14 years ago by sschmidt

Attachment: bug19.sin added

simple input file

comment:1 Changed 14 years ago by Juergen Reuter

Resolution: fixed
Status: newclosed

Fixed this in r1678. WHIZARD now takes the last entry in the list of iterations assignments.

comment:2 Changed 14 years ago by Juergen Reuter

Milestone: v2.0-rc2

Milestone v2.0-rc2 deleted

Note: See TracTickets for help on using tickets.