[TRNSYS-users] Problem in the simulation (Type 56 + Type 581)

David BRADLEY via TRNSYS-users trnsys-users at lists.onebuilding.org
Thu Sep 7 06:55:10 PDT 2017


Daniela,

   Which version of TRNSYS are you using? Perhaps version 16? v16 was 
compiled using the Compaq Visual Fortran compiler, which automatically 
deallocated arrays when exiting a subroutine. When you went back into 
the subroutine again, you could allocate an array again. When the Compaq 
compiler was merged with the Intel compiler, that behavior went away so 
we had to change the code to specifically deallocate arrays on exiting 
subroutines.

  I think what you need to do is to edit the GROW() subroutine (which 
you will find in DynamicData.for) and deallocate all the temporary 
arrays that are allocated in it. The list of arrays that you need to 
deallocate can be found right below the comment line:

C     allocate temporary arrays which have the same dimensions as the 
incoming arrays

I am not sure that this is the only fix that you need to make in 
recompiling the TRNdll!

kind regards,

  David



On 09/07/2017 04:35, Daniela Carina Vásconez Núñez via TRNSYS-users wrote:
>
> Hello everybody,
>
> I am working in a model with the Type 581 (4 Interpolation variables) 
> and Type 56 (Building).
>
> Firstly, the simulation generates the following error:
>
> Then, I changed the MAXARRAYSIZE of Type 581 in READIN.FOR and 
> rebuilder the Trnsys dynamic link library (trndll.dll). However, when 
> I tried to simulate the Type 581+ Type 56, the following error was 
> generated:
>
> I would like to know how can I solve this issue.
>
> Thanks in advance for any help.
>
> Regards,
>
> Daniela
>
> Ph.D.Student.
>
>
>
> _______________________________________________
> TRNSYS-users mailing list
> TRNSYS-users at lists.onebuilding.org
> http://lists.onebuilding.org/listinfo.cgi/trnsys-users-onebuilding.org

-- 
***************************
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 at tess-inc.com

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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.onebuilding.org/pipermail/trnsys-users-onebuilding.org/attachments/20170907/14fba211/attachment.htm>


More information about the TRNSYS-users mailing list