Creating separate routine files from one file

Creating separate routine files from one file

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.

3 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

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

Retired 12/31/2016

Use FSPLIT.

James

Leave a Comment

Please sign in to add a comment. Not a member? Join today