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

Re: [TRNSYS-users] g95 compiler



Danny,
  getSimulationTime is a function that is defined in the data module called "TrnsysFunctions." When compiling an external Type in either the Compaq or the Intel compilers, I have to make sure that the compiler is set to look for data modules (sometimes called MOD files) in the ..\Trnsys17\Compilers\IVF111\Debug\ directory or else copy them to some other place where they can be found by the compiler. My understanding is that this tells the compiler "don't worry, even though I haven't defined this function called getSimulationTime() in my external Type242.dll, you'll find that function during run-time because my dll will be called by a dll in which the function is defined"

  I don't know how the G95 compiler handles settings for where to look for *.mod files but this is not specific to Trnsys17, there were a number of TrnsysFunctions called by Types in Trnsys16 as well. We have just expanded their use in Trnsys17.
best,
 David


On 2/11/2011 11:12, Danny Jonas wrote:

Dear TRNSYS users,

 

I have use the directions in the document, but after starting the batch file to compile my own type I've received the following message:

"In file Type201.for:72

 

                Time=getSimulationTime<>

 

Error: Function 'getsimulationtime' at <1> has no implicit type"

 

 

could the error be associated with using TRNSYS17?

 

Using the example (type242), I can build the type242.dll.

 

 

I'm now trying to use C++, till now it works fine. But I still don't understand why it doesn't work with the batch file as fortran code....

 

 

Thanks a lot,

 

Best Regards,

 

Danny

 

 

 

 

-----Ursprüngliche Nachricht-----

Von: Daniel Bergey [mailto:daniel@buildingscience.com]

Gesendet: Mittwoch, 9. Februar 2011 21:14

An: Danny Jonas

Betreff: Re: [TRNSYS-users] g95 compiler

 

I have successfully compiled a couple of components using directions in the attached document.  I don't recall the URL whence I downloaded it originally.  Sorry about the doc format; let me know if I should convert it.

 

Daniel

 

On Fri, Feb 04, 2011 at 01:33:49PM +0100, Danny Jonas wrote:

>    Dear TRNSYS users,

>

>     

>

>    I want to use the free g95 compiler to create my own components in TRNSYS.

>

>     

>

>    I have found the following message in the TRNSYS-users Archives:

>

>     

>

>   

> [1]http://mailman.cae.wisc.edu/pipermail/trnsys-users/2008/003957.html

>

>     

>

>    with the following link:

>

>     

>

>    [2]http://software.cstb.fr/main/articles.asp?langue=us

>

>     

>

>    But this page no longer exists.

>

>     

>

>    Can someone send a link where I can download this example?

>

>     

>

>     

>

>    Thanks in advance,

>

>     

>

>     

>

>    Danny

>

>     

>

> References

>

>    Visible links

>    1. http://mailman.cae.wisc.edu/pipermail/trnsys-users/2008/003957.html

>    2. http://software.cstb.fr/main/articles.asp?langue=us

 

> _______________________________________________

> TRNSYS-users mailing list

> TRNSYS-users@cae.wisc.edu

> https://mailman.cae.wisc.edu/listinfo/trnsys-users

 

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

-- 
***************************
David BRADLEY
Principal
Thermal Energy Systems Specialists, LLC
22 North Carroll Street - suite 370
Madison, WI  53703 USA

P:+1.608.274.2577
F:+1.608.278.1475
d.bradley@tess-inc.com

http://www.tess-inc.com
http://www.trnsys.com