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

Is there a method to compile just a subroutine?

$
0
0

I am using PSE2016 in Windows 10

Is there a method to just compile a subroutine? At present, I have to include a begin program...end program statements for successful compilation as shown below.

program try

end program try

SUBROUTINE CREEP(....

I am interested to know if there are any alternatives in VS2015 to simply compile the subroutine without adding the program statements. At present I am selecting a Fortran console project as my option in VS 2015.

The reason, I just need just a subroutine compiled is because it will be linked with another finite element analysis program which will access the compiled subroutine. Per the instructions of the finite element analysis program I need to link the compiled subroutine - I am assuming it means that I need to get the .obj file.

Please pardon my ignorance, as I am new to all this. All your helps and tips will be appreciated.

Regards

Animesh


Viewing all articles
Browse latest Browse all 3270

Trending Articles



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