Quantcast
Channel: Intel® Fortran Compiler
Viewing all articles
Browse latest Browse all 3270

FORTRAN: Opening and reading data from a network location

$
0
0

I am trying to run a simulation using FORTRAN. I have large input data at server A and I want to read input files from server A and run my simulation on server B. I am using a FORTRAN subroutine to assign input into a BCs array. I want to read input file from server A via FTP and assign them into BCs array on server B. I will be grateful if you can suggest me some ways to do so. Thanks

The code I have tried so far is as follows but it gives error.

  FILENAME="//192.255.8.152/home5/nadeem/inflow/Inflow_001"
  OPEN(81,FILE=FILENAME,FORM='UNFORMATTED',STATUS='OLD')

  READ (81)((UBC3(1,J,K),J=1,N2M),K=1,N3M) ! INLET BOUNDARY

  CLOSE(81)

Viewing all articles
Browse latest Browse all 3270

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>