Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
29285 Discussions

Talking with a Intel Linux Fortran App from CVF

sumitm
Beginner
731 Views
Hi,
I am working on a way to do a portion of my calculations on a Linux box (just because it is faster 50-100% as I learnt through usage of ABAQUS FEA software) .
How do I talk back and forth with the Linux app.
Steps are
1. CVF makes an output file during runtime
2. File needs to be sent to Linux box (currently use Fireftp)
3. Run executeable at Linux command line with output file in step 1 as argument and second text file as output
4. Send output file back from Linux box to Windows machine to be read in by CVF
Is there any Win32s that can be used or Systemqq, Winexec or Shellexecute or even ftp to IP address that can be usedfrom within CVF to do all or part of the above 4 steps.
Any help would be appreciated.
Thanks
Sumit
0 Kudos
3 Replies
durisinm
Novice
731 Views
I think that all versions of Windows from 95through XP have FTP built in. You can access it from a DOS prompt and write a DOS batch file to automate it. CVF has the ability to execute operating system commands, although I don't know the name of the appropriate routine to call to do that.
Therefore, you should be able to automate your step 2 by writing a batch file to perform the FTP chores and then writing the necessary Fortran to execute that batch file. You can write the batch file to run Fireftp if it will accept DOS commands.
Mike D.
0 Kudos
sumitm
Beginner
731 Views
Thanks Mike.
That is what we have been attempting to do. There is however one issue.
Is there a way to check in CVF if the output file from the linux box via ftp is back.
What is the best way to track the status of a file which may not be present in the working directory when when the search is started. I delete the output file with defilesqq once CVF has read it in so that for my next loop I do not read the old file in. I do not want to wait a fixed amount of time before continuing with the CVF read in because some loops may be fast and some slow.
Thanks again for your help.
Sumit
0 Kudos
greldak
Beginner
731 Views
Just try to open it and check the IOSTAT variable or use INQUIRE
0 Kudos
Reply