whizard is hosted by Hepforge, IPPP Durham

Opened 10 years ago

Closed 10 years ago

#700 closed defect (fixed)

open-file clash with beam_events

Reported by: kilian Owned by: kilian
Priority: P1 Milestone: v2.2.4
Component: core Version:
Severity: normal Keywords:
Cc:

Description

Using beam_events with two processes that are to be simulated in a single run, the programs apparently opens the file twice (or doesn't close it properly).

Reported by Moritz Habermehl.

Attachments (1)

script.sin (374 bytes) - added by kilian 10 years ago.

Download all attachments as: .zip

Change History (5)

Changed 10 years ago by kilian

Attachment: script.sin added

comment:1 Changed 10 years ago by Juergen Reuter

Who is going to look into this one?

comment:2 Changed 10 years ago by kilian

Status: newassigned

Reproduced the problem with a smaller testcase. It doesn't occur w/ the NAG compiler, but I guess that the code violates the Fortran standard. It does occur with gfortran. I'll try to fix it, should be straightforward.

comment:3 Changed 10 years ago by kilian

Problem is solved.

The new code is still to be checked in, hopefully today.

comment:4 Changed 10 years ago by kilian

Resolution: fixed
Status: assignedclosed

Fixed in r6505.

Beam-event files are now managed by a file registry, which ensures that the same file is not opened twice. The registry code might be useful elsewhere, if only as a template.

Note: See TracTickets for help on using tickets.