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

R: [TRNSYS-users] legacy-mode



Dear David,

First, thank you for your information. 
But where can I find the instruction to link my type with the main
TRNSYS Dll? On the Trnsys web site I found only for Trnsys 15

Many greetings

pietro

-----Messaggio originale-----
Da: David Chèze [mailto:david.cheze@clipsol.com] 
Inviato: mercoledì 12 gennaio 2005 14.22
A: pietro finocchiaro
Oggetto: Re: [TRNSYS-users] legacy-mode

pietro finocchiaro a écrit :
> Dear trnsys users,
> 
>  
> 
> I?m trying to update an existing Trnsys 15 TYPE and link it in Trnsys
16 
> in legacy mode, but I?m not able to run it. I followed the instruction

> reported in the programmer?s guide, so I added the following lines in 
> the .for file:
> 
>  
> 
> !DEC$ATTRIBUTES DLLEXPORT :: TYPEnnn
> 
>  
> 
> and
> 
>  
> 
> ! Set the version information for TRNSYS
> 
> if (INFO(7) == -2) then
> 
> INFO(12) = 15
> 
> return 1
> 
> endif
> 
>  
> 
> Then I updated the old trnsys 15 proformas file .tmf and added to the 
> new trnsys 16 proformas folder, but when I start the simulation, I get

> the following TRNSYS Message 105 : /A TYPE was called in the TRNSYS 
> input file but was either not linked into trndll.dll or was not found
in 
> an external dll. A dummy subroutine was called in its place. Please
link 
> the TYPE or remove it from the input file/
> 
> / /
> 
> Any suggestions are welcome
> 
> Thanks a lot in advance
> 
>  
> 
> Kind regards
> 
>  
> 
> pietro
> 
> --------------------------------------------------------------
> Pietro Finocchiaro
> Department of Energy and Environmental Researches  
> Università degli Studi di Palermo
> E-mail: finocchiaro@dream.unipa.it <mailto:finocchiaro@dream.unipa.it>
>  
>  
> 
>  
> 
> 
>
------------------------------------------------------------------------
> 
> _______________________________________________
> TRNSYS-users mailing list
> TRNSYS-users@engr.wisc.edu
> https://www.cae.wisc.edu/mailman/listinfo/trnsys-users
In your Visual Fortran project, did you insert your type in the TRNDll 
or in your "userType"Dll? To run in legacy mode you have to link your 
type with the TRNSYS Dll (as in previous version of TRNSYS when you had 
an unique Dll in your Visual Fortran project), containing all standard 
types. I've already tested it and it works.

Hope it can help,

-- 
David Chèze
--
Développement produit
CLIPSOL - www.clipsol.com
PAE Les Combaruches
73100 Aix-les-Bains - France
tel:0479349818