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 / novo 0
Último post
Para obter mais informações sobre otimizações de compiladores, consulte Aviso sobre otimizaçõ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

Retired 12/31/2016

Use FSPLIT.

James

Deixar um comentário

Faça login para adicionar um comentário. Não é membro? Inscreva-se hoje mesmo