What is your PSSe version (v33.xx.y), What is your Fortran compiler version?
PSSe v33 shall be installed in its default folder, same as the corresponding Fortran compiler. When compiling fails, questions first your set up, next, your code.
Check the forum for "Fortran" or "User Defined", or directly:
- "Model writing and Create User DLL"
- "I want to use user-defined model with fortran"
- "BASIC MODEL WRITING EXAMPLE IN FORTRAN FOR PSS/E"
In my setup, as shown by double clicking on the PSSe tool "Create User DLL":
------------- PSS(R)E 33 Environment settings, EM 9.0.1, Py 2.7.13 [x86]
Fortran PATH paths (IVF 12.1.325):
c:\program files (x86)\intel\composer xe 2011 sp1\bin\ia32
c:\program files (x86)\intel\composer xe 2011 sp1\redist\ia32\compiler
Visual Studio PATH paths (VS 2010):
c:\program files (x86)\microsoft visual studio 10.0\intel fortran\microsoft files\vc\bin
C:\Program Files (x86)\windows kits\10\bin\10.0.18362.0\x86
c:\program files (x86)\microsoft visual studio 10.0\common7\ide
Fortran LIB paths (IVF 12.1.325):
c:\program files (x86)\intel\composer xe 2011 sp1\compiler\lib\ia32
Visual Studio LIB paths (VS 2010):
c:\program files (x86)\microsoft visual studio 10.0\intel fortran\microsoft files\vc\lib
C:\Program Files (x86)\windows kits\10\Lib\10.0.18362.0\um\x86
Successfully added PSSE paths to local PATH and LIB environment.