I would like to call an executable file and give it variables in my fortran code. for example:
function obj(ii) use omp_lib use ifport implicit none integer,intent(in)::ii integer:: thron real::obj thron=omp_get_thread_num() obj=RUNQQ('C:\pgi\matlab_omp_cuda\test.exe','') return end function obj
In this code, “thron” is the thread no. which is a variable in another executable file.