Showing results for 
Search instead for 
Did you mean: 
1 View

System command in Intel Fortran 10.1


I am using Intel fortran compiler 10.1 to develop user defined feature in LS-DYNA (LS-DYNA still doesn't support the newer versions) with Microsoft Visual Studio 2008 on a Windows 7 Intel Xeon workstation. I was wondering if I could call an external .exe file (this .exe file will perform some numerical computation) from my fortran code in LS-DYNA. If so, could you please let me know appropriate command / function for this purpose, as for example, I didn't find documentation for Intel Fortran 10.1 unfortunately. If anyone could share it, I would appreciate that.

0 Kudos
1 Reply
Retired Employee
1 View

You almost certainly can use

You almost certainly can use newer versions of the compiler with LS-DYNA. Often these third-party library developers never bother to update their documentation or test with newer versions.

You can use SYSTEM, but should add USE IFPORT to make it available. Here's an example from the manual:

   INTEGER(4) I, errnum
   I = SYSTEM("dir > file.lst")
   If (I .eq. -1) then
     errnum = ierrno( )
     print *, 'Error ', errnum
   end if

The call will not return until the program you specify finishes.

Steve (aka "Doctor Fortran") -
0 Kudos