Operating System - HP-UX
1753704 Members
4668 Online
108799 Solutions
New Discussion

Fortran and Shared Memory

 
JUP
Regular Advisor

Fortran and Shared Memory

Hi everyone

We have 2 programs - one in C and one in Fortran (F90) that access the same shared memory. The C prog creates it and the Fortran program accesses it. This works well on the HP9000 D Class HP-UX 11.00 E.
We moved the binaries to our new server - rp2470 HP9000 A Class HP-UX 11.00 U.

This is what happens on the new server:

1. The C program successfully creates the shared memory.
2. The Fortran program successfully attaches to it. But just as the Fortran program exits (the last line of the program) it releases the shared memory.

This is obviously a problem because other programs need to use it.

The biaries work well on the first server but the Fortran removes the shared memory on exit on the new server.

Does anyone have any ideas why this is happening or what I could do to overcome it.

Thanks in advance
PA