- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
if (gr_myPE .NE. 0 .AND. gr_numProcs .GT. 8) return
open (unit=35, &
& file='amr_runtime_parameters.dump', &
& status='UNKNOWN', &
& action='WRITE', &
& form='formatted')
write (35,*) maxblocks ,', maxblocks'
-----------------
Looking at the numproc condition for 8, I executed with mpiexec -np 10 myapp.exe and that worked. So basically, what happens when I execute with 2 process ? Why does it give me that error ?
The compiler options used while compiling the code are:
ifort -c -traceback -real_size:64 -MD -assume:underscore -names:lowercase -fpp
I am using MSMPI and working in the cygwin environment.
Is this issue with the code or msmpi or intel compiler ?
Thanks & Regards,
Kunal
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
What do you want to happend when say 2 applications write to the same file?
a) 2nd app errors out
b) writes ofone app overwriting writes ofother app?
c) writes are interleaved?
d) writes write to different files? (same name, different folder)
e) other?
When multiple applications write to same file you need to use direct access file modes (shared record I/O)
(using SHARED or SHARE='DENYNONE')
When you want multiple applications to append tothe file, you will have synchronization issues. These issues can be overcome with additional programming, by interpreting error status, or by other programming techniques (e.g. predefined records for use per process).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
If you add SHARED, to your list of open keywords and you should be able to share the files between the two processes.
-- Lorri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
SHARED is no longer accepted in the Fortran 2003 standard. Is there something that replaces it? I would like to have another program read my Fortran output files while the Fortran program is running. The other application should have read-only access.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
SHARED was never standard - it is an extension. You can continue to use it in Intel Fortran.
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page