whizard is hosted by Hepforge, IPPP Durham

Opened 14 years ago

Closed 14 years ago

#406 closed defect (fixed)

SINDARIN loop triggers Fortran runtime error

Reported by: Juergen Reuter Owned by: Juergen Reuter
Priority: P3 Milestone: v2.0.5
Component: core Version: 2.0.4
Severity: normal Keywords: fortran runtime error
Cc:

Description

The following SINDARIN script

model = SM

process bla = e1, E1  => e2, E2

compile

sqrts = 500 GeV
integrate (bla)

scan int id = (1,2) {

 n_events = 1
 $sample = sprintf "foo_%i" (id)
 sample_format = lhef
 $event_normalization = "sigma/n"
 simulate (bla)

}

triggers a Fortran runtime error

$sample = "foo_1"
$event_normalization = "sigma/n"
| Initializing simulation for processes bla:
| Simulation mode = unweighted, event_normalization = 'sigma/n', unpolarized_events
| Requested number of events = 1
| This corresponds to luminosity [fb-1] =   0.2335E-02
| Writing events in LHEF format to file 'foo_1.lhef'
| Writing events in internal format to file 'foo_1.evx'
| No analysis setup has been provided.
| ... 1 events generated. 1 total.
| Simulation finished.
[user variable] id =            2
n_events =            1
$sample = "foo_2"
$event_normalization = "sigma/n"
At line 694 of file rt_data.f90
Fortran runtime error: Attempting to allocate already allocated array 'local'

Change History (3)

comment:1 Changed 14 years ago by Juergen Reuter

Actually, it is the sample_format = lhef which triggers the runtime error. It does not matter whether this in inside or outside the loop.

comment:2 Changed 14 years ago by Juergen Reuter

Owner: changed from kilian to Juergen Reuter
Status: newassigned

Problem found, testing.

comment:3 Changed 14 years ago by Juergen Reuter

Resolution: fixed
Status: assignedclosed

Fixed in r3121.

Note: See TracTickets for help on using tickets.