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

Re: [TRNSYS-users] Updating TRNSYS types which use COMMON BLOCKS to version 16



Jochen,
Sorry for the delay in getting back to you. All of the variables that were previously contained in the TRNSYS COMMON blocks were moved to a module called "TrnsysData." What you need to do is figure out which of the variables in the COMMON block are actually being used by your Type (say, for example, that it is ITMAX and ITRACE). You then add a line that says:

USE TrnsysDATA, ONLY: ITMAX, ITRACE

ITMAX and ITRACE are defined in TrnsysData as integers so you don't have to define it again in your Type. You then delete the entire line starting with COMMON

Kind regards,
David


Jochen Doell wrote:
Hello,

I have a problem updating an old type to TRNSYS 16.
After performing all changes necessary for the legacy mode the compiler states the following error for 10 different variables:

"Error: A COMMON block data object must not be an automatic object. [name of the variable]"

The user guide gives an example for the replacement of the common block, but how can I find out what is the correct replacement for all other variables?

Below is an example for one of the common blocks that cause the error:
    INTEGER CALLED
      COMMON /ERRS/ ITMAX,IQTMAX,ITRACE,IERR,IEMAX,ICT,NCALLS,CALLED(NUNITL)

Best regards,
Jochen


--
***********************************************************************
Thermal Energy System Specialists (TESS), LLC David BRADLEY 22 N. Carroll Street - Suite 370 Partner Madison, WI 53703 USA P: +1.608.274.2577 F: +1.608.278.1475 E-mail: bradley@tess-inc.com Web Pages: http://www.tess-inc.com and http://www.trnsys.com

***********************************************************************