[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [TRNSYS-users] Rebuild TRNDll.dll using IVF, runtime errors:"cannot find TNRDll"; "forrtl: severe 151 allocatable array is already allocated"



Dear Matt,

thanks very much for the fast response and solution. Using this approach seems to work fine; I have since built several DLLs that all function as expected.

Does it matter which TRNDll.lib file I include in the solution before building? I've successfully used both the one that came with my version of TRNSYS (in Exe directory), and the one available with the ivf10p1 solution zip. Maybe my Types are not complex enough to make a difference, but I would appreciate knowing whether there are any sensitivities, for future reference.

Kind regards,
Leon Gaillard

On 15 March 2011 20:42, Matt Duffy <duffy@tess-inc.com> wrote:

Dear Leon,

If simply making an external DLL, please use the IVF solution for 10.1 available from the TRNSYS16 Tutorials and Examples website.
http://sel.me.wisc.edu/trnsys/downloads/tutorials_and_examples/ivf10p1.zip


You will have to import that solution into IVF 11.1 to use it. Upon compiling your source code, it should place the MyType.dll externall DLL in the proper directory. I used it all the time when I compiled v16 types.

Best regards,

Matt Duffy

----- Original Message -----
From: "Leon Gaillard" <leon.gaillard@univ-savoie.fr>
Sent: Mon, March 14, 2011 5:52
Subject:! [TRNSYS-users] Rebuild TRNDll.dll using IVF, runtime errors:"cannot find TNRDll";"forrtl: severe 151 allocatable array is already allocated"

Dear All,


I am attempting to use Intel Visual Fortran 11.1 to add my own components to TRNSYS 16.
Any advice on resolving the following problem would be greatly appreciated.

As a fisrt step to building my own external dll, I followed the instructions in the Programmers Guide and rebuilt TRNDll using the project files located in
$Trnsys16\Compilers\Ivf81-Mvs2003.
It was necessary to remove Types 39, 90, 121 and precompiled Type 56 files from the build list to avoid fatal errors.

The compiled TRNDll.dll and TRNDll.lib were copied to the
$Trnsys16\Exe directory as instructed.

In TRNSYS Studio I then tested the rebuild by trying to execute example project Begin.tpf.

TRNSYS.exe crashed with the error: 'cannot find TRNDll.dll'

I then followed the suggested solution posted on trnsys-users, msg01245 and replaced the following libraries with those in my compiler:
libifcoremd.dll
libifcoremmd.dll
libmmd.dll
libmmdd.dll

This enabled TRNSYS.exe to find TRNDll, but resulted in an Intel Fortran run-time error:
forrtl:sever 155: allocated array is already allocated
libifcoremd
TRNDll.Dll
TRNEXE.exe
kernel32.dll
ntdll.dll

Thank you in advance for any suggestions of what to try next in resolving this issue.

Kind regards,
Leon Gaillard






_______________________________________________
TRNSYS-users mailing list
TRNSYS-users@cae.wisc.edu
https://mailman.cae.wisc.edu/listinfo/trnsys-users