whizard is hosted by Hepforge, IPPP Durham

Opened 15 years ago

Closed 15 years ago

Last modified 14 years ago

#277 closed defect (fixed)

Already opend unit for event files triggeres runtime error

Reported by: Juergen Reuter Owned by: Christian Speckner
Priority: P1 Milestone:
Component: core Version: 2.0.0rc3
Severity: blocker Keywords: runtime error
Cc:

Description

When demanding any special kinds of events (like e.g. LHEF), and having two consecutive simulate statements for the same process (e.g. because of different cuts or beams or whatever), a Fortran runtime error is triggered:

At line 1191 of file commands.f90 (unit = 16, file = '')
Fortran runtime error: File already opened in another unit

Here is the SINDARIN test file for it:

process eemm = e1, E1 => e2, E2
compile
sqrts = 200
integrate(eemm)
n_events = 1
sample_format = lhef
simulate (eemm)
simulate (eemm)

Change History (4)

comment:1 Changed 15 years ago by Juergen Reuter

Also this triggers the error:

sample_format = lhef, lhef
simulate (proc)

comment:2 Changed 15 years ago by Christian Speckner

Status: newassigned

comment:3 Changed 15 years ago by Christian Speckner

Resolution: fixed
Status: assignedclosed

Fixed in r2266. This were two separate issues: a missing close statement and the possibility of multiple requests for an event formats. The first one I fixed, the latter I circumvented by ignoring multiple request for a format with a warning message.

comment:4 Changed 14 years ago by Juergen Reuter

Milestone: v2.0.0final

Milestone v2.0.0final deleted

Note: See TracTickets for help on using tickets.