Ask Your Question
0

User defined model code in different fortran files

asked 2018-11-29 11:16:45 -0500

sofiguer gravatar image

updated 2018-11-29 12:02:14 -0500

Hi everybody,

I am writting a very long user defined model code for PSS/E, so I would like to know if is possible to separate the code in different fortran files and then compiled them together with the PSS/E compiler? It is really annoying fix a bug with such amount of lines in the same file.

Thanks in advance.

edit retag flag offensive close merge delete

2 answers

Sort by » oldest newest most voted
1

answered 2018-11-30 18:45:21 -0500

txc gravatar image

Wha you could do is break down your user written fortran code into multiple subroutines and then go ahead and create the dll. You can simply create just one dll for all the different fortran .for files. By clicking on Show Progress in Environment manger, and using a text editor eg: notepad++ or ultraedit, the Environment manager shall be able to tell you exactly which line is your code incorrect

edit flag offensive delete link more
0

answered 2018-11-29 15:40:41 -0500

jconto gravatar image

The compiling of different pieces of Fortran code is done by the Fortran compiler, which creates *.obj for each piece of code. Break the code into subroutines. The final aggregation of all *.obj or *.lib files (from the PSSe library set) is done by the linker, creating a final dll file. There is no a 'PSS/e compiler''

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

[hide preview]

Question Tools

2 followers

Stats

Asked: 2018-11-29 11:16:45 -0500

Seen: 542 times

Last updated: Nov 30 '18