Ask Your Question
0

Help with compiling FORTRAN Models

asked 2019-01-15 07:44:09 -0500

jmaurio gravatar image

I received user defined DLLs that were compiled for PSSE 33. I am running PSSE 34 and it appears that I can't use this precompiled files (see the post on this forum "library-not-found-error"). I tried compiling the source code and I get the error below:

usrmdl_all.FOR(4947): error #6385: The highest data type rank permitted is INTEGER(KIND=8). [DLTCHG] IF(MIDTRM.AND..NOT.DLTCHG) RETURN ----------------------------^

I know MIDTRM is a PSSE flag but I cannot find any reference to DLTCHG in the PSSE 34 POM. Can anyone assist me with this?

Is there anyway for PSSE 34 to use DLLs compiled for PSSE 33?

Any help at all is greatly appreciated!

  • Joe
edit retag flag offensive close merge delete

Comments

hello, I use PSS/E 33.10 which Visual Stuido version and IVF version can I use to wirte a model? any download link?

Gloria.Z gravatar imageGloria.Z ( 2019-03-03 02:32:43 -0500 )edit

2 answers

Sort by ยป oldest newest most voted
0

answered 2019-01-16 20:46:58 -0500

jconto gravatar image

updated 2019-01-18 06:32:48 -0500

On your question:"Is there anyway for PSSE 34 to use DLLs compiled for PSSE 33?"

No, Fortran code have to be recompiled into DLL for the PSSE version in which is going to be used.

edit flag offensive delete link more
0

answered 2019-01-15 11:36:55 -0500

jfconroy gravatar image

DLTCHG is the flag for a variable step size in an extended term simulation. The line of code that you posted is saying that the model execution should end if you select extended term simulation mode with a fixed time step. Are you intending to use extended term simulation mode with a variable time step? That would be MIDTRM=1 and DLTCHG=1. If not, then you can remove all references to DLTCHG in your code, and try a compile in v33. You won't lose any relevant functionality.

edit flag offensive delete link more

Comments

Thank you! Unfortunately, this flag (DLTCHG) appears in many place in the code in different conditional statements. Can you point me to any reference describing DLTCHG? I can't find any mention of it in the POM.

jmaurio gravatar imagejmaurio ( 2019-01-15 13:31:34 -0500 )edit

As far as I am aware, DLTCHG is only relevant for extended term simulations. You should be able to use a statement like IF(MIDTRM) RETURN to avoid extended term simulations, which you are most likely not interested in. User-defined modelling is not very well documented in PSSE.

jfconroy gravatar imagejfconroy ( 2019-01-16 02:19:28 -0500 )edit

Use IF(MIDTRM) RETURN and remove all references to the DLTCHG parameter, and your model should compile and run correctly in dynamic simulations in v33.

jfconroy gravatar imagejfconroy ( 2019-01-18 02:12:56 -0500 )edit

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

1 follower

Stats

Asked: 2019-01-15 07:44:09 -0500

Seen: 585 times

Last updated: Jan 18 '19