Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
28435 Discussions

Creating separate routine files from one file

rocketdata
Beginner
406 Views
Is there an easy way to create individual files from a file that contains multiple Functions and/or Subroutines. For example, if I have a file called Programx.for that contains 20 subroutines, is there a way to break that file up into 20 individual files, each with its own Subroutine_name.for ? I know I could do this manually, but I am hoping there is a more automated technique.
0 Kudos
2 Replies
Steven_L_Intel1
Employee
406 Views
If you have CVF, there are tools called FSPLIT and FSPLIT90 provided (just start a Fortran Command Prompt session and they'll be available for you) that will do this. FSPLIT90 is for free-form source.

Steve
0 Kudos
james1
Beginner
406 Views
Use FSPLIT.

James
0 Kudos
Reply