[TRNSYS-users] Print messages only in post-convergence call...

David BRADLEY d.bradley at tess-inc.com
Thu Feb 20 11:04:19 PST 2014


Björn,
   If you are programming using the Trnsys17 standard then you can write 
your warnings using the following condition:

  If (getIsEndOfTimestep()) Then
    ! put your code here!
    Return
  Endif

   If you are using the Trnsys16 coding standard then you can do the 
same by using the following condition:

  IF(INFO(13) > 0) THEN
    ! put your code here!
     RETURN 1
  ENDIF

Kind regards,
  David



On 2/20/2014 05:01, Bjoern Nienborg wrote:
> Hello Trnsys-users!
>
> I created a type which prints notice/warning messages to the list 
> file. Unfortunatelly the type does that during many time steps, even 
> if the respective event did not happen in the final iteration (which I 
> can see by tracing it). Sometimes the message is even printed various 
> times during one timestep. Is there a way to define in the fortran 
> code, that messages are only printed in the last call of one time step?
>
> Thanks in advance for your help!
>
> Regards, Björn
>
>

-- 
***************************
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




More information about the TRNSYS-users mailing list