Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
28386 Discussões

Creating separate routine files from one file

rocketdata
Principiante
396 Visualizações
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 Respostas
Steven_L_Intel1
Funcionário
396 Visualizações
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
james1
Principiante
396 Visualizações
Use FSPLIT.

James
Responder