[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[TRNSYS-users] Problem with initialization when calling user-written component
Dear TRNSYS users,
I have written a new TRNSYS Type in C++ which will not work because TRNSYS
skips the initialization procedures. The result is that TRNSYS crashes
because arrays are not sized properly etc. I have checked some values of
the INFO array during program execution, and they show that at the very
first call to the Unit, INFO(8) (in FORTRAN, info[7] in C++) already has a
value of 4. This means that the version signing, initialization call
(INFO(7)=-1) and time=start time steps are not executed.
Does anyone know why this happens?
Thanks in advance.
Kind regards,
Knut Erik Enerstvedt
----------------------------------------------------------------------------------------------------------------------
NIVAs hovedkontor har flyttet til nye lokaler i CIENS - Forskningssenter
for miljø og samfunn; Gaustadalléen 21, 0349 Oslo. Meld deg på vårt
nyhetsbrev på www.niva.no