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)
Change History (5)
Changed 10 years ago by
Attachment: | script.sin added |
---|
comment:1 Changed 10 years ago by
comment:2 Changed 10 years ago by
Status: | new → assigned |
---|
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
Problem is solved.
The new code is still to be checked in, hopefully today.
comment:4 Changed 10 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
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.
Who is going to look into this one?