First time here? We are a friendly community of Power Systems Engineers. Check out the FAQ!

Ask Your Question
0

User defined model code in different fortran files

asked Nov 29 '18

sofiguer gravatar image

updated Nov 29 '18

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.

2 answers

Sort by » oldest newest most voted
1

answered Dec 1 '18

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

link
0

answered Nov 29 '18

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''

link

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.
Want to format code in your answer? Here is a one minute demo on Youtube

Add Answer

[hide preview]

Question Tools

2 followers

Stats

Asked: Nov 29 '18

Seen: 626 times

Last updated: Nov 30 '18