- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I recently switched to a new Intel compiler and subsequently changed from this command:
I1 = SYSTEM("./Simulation < simu.dat")
to this:
CALL SYSTEM("./Simulation < simu.dat", I1).
It compiles fine now but I get this error
MPI: bl0.psc.teragrid.org: 0x24ec000052496c5b: forrtl: severe (174): SIGSEGV, segmentation fault occurred.
Any thoughts on what I'm doing wrong?
Thanks
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Why did you make that change? It is incorrect. In particular, what you did was make the SYSTEM routine think that the address of variable I1 was the length of the command string. Go back to what you had before. As an aid to correctness, add:
USE IFPORT
to the program unit that calls SYSTEM or other portability routines.
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page