[esp-r] Re: ***It is question about zone number correction in cygwin.***

Jon Hand jon at esru.strath.ac.uk
Wed Feb 28 11:11:37 GMT 2007


Several users have asked about how ESP-r might be recompiled
to support additional zones.  The following explanation applies
to all versions of ESP-r and to all computer operating systems
that ESP-r can be compiled on.

In the source distribution there is a folder 'include'.  In the include
folder there are a number of files which begin with 'building' and
end in '.h'. These variants relate to the maximum number of surfaces
within each zone e.g. PARAMETER (MS=??) . building42.h has MS=42 
surfaces per zone and building 62.h has MS=62. There are other
PARAMETERS related to MS which are also changed in the file
variants. If you wanted only a maximum of 42 surfaces per zone 
then the building42.h is copied to building.h prior to recompiling.

If what you want to change is the number of zones then you 
will be interested in the following parameters:

       PARAMETER (MCOM=28)
       PARAMETER (MCON=1000)

MCOM is the number of zones.  MCON is the total number of surfaces
allowed in the whole model (number of zones x number of surfaces per
zone).  If you want to allows 42 zones and up to 42 surfaces per zone
then MCOM=42 and MCON=1764.  

After altering your chosen buillding??.h file copy it to building.h and
ensure the source folders have no '.o' files and do a full recompile
of the excutables, examples models and databases.

After compiling you should test ESP-r on known models to ensure
that it is working correctly (gives the same predictions).   

The usual warnings apply about working with complex models - a model with
2000 surfaces could take four-five times more time and skill to work with
than a model with 1000 surfaces.  If you are used to models with 250
surfaces, test out your working practices with a model of 500 surfaces 
and then adjust your working practices as required before attempting
additional complexity.

-ESRU

::Through Window xp's Cygwin environment, ask explanation about method
:: that can change.
:: In former days, had been possible by correction of building.h file in
:: linux environment.




More information about the esp-r mailing list