Changed header line output to out.csv from "two lines" to "one line including units" - many data-plotting software packages can only handle one header line.

Added xml output of
- sky temperature
- sky temperature depression (Tamb - Tsky)
- cloud cover
- ambient saturation temperature

Changes seem to work O.K., no impact on simulation results. Changes could - from my point of view - be included in development_branch




Former-commit-id: e29aadeafc9ffc2ea831c167a074eba720bfc8a8
- Corrected unit of sky temperature depression output
- Commented out Clarke algorithm for sky temperature (flag 1 now also uses default Martin Berdahl algorithm) due to serious doubt in regard to validity! Do not want to be able to have this model invoked.

No changes to (standard) calculations.



Former-commit-id: b42244a64e4145d30399005514b719a5b40dc5c5
This commit merges changes r2695:2696, r2739:2741, r2744:2826,
r2846:2904, and r2906:2949 of sub-branch Aizaz_Samuel into
'development_branch'.


Summary of changes:
 - Introduces a *.roam file that allows user to change orientation
   and location of the model in terms of latitude and longitude.
   This is a work in progress.
   Users will notice an option for defining temporal locations using this
   file (in model context menu) but the file is not used during simulation    
   yet.
 - Adds climate files for Cuban and Mexican locations (sourced from US-DOE).
 - Adds definition of day types to operations structure. Legacy weekday/
   saturday/sunday are retained as default and cannot be deleted.
   This change affects project manager and simulator. Users will notice
   that more day types and associated gains and air flows can be defined.
   Developers will notice that code triplication (for weekdays/saturdays/
   sundays) has been replaced by simpler loops.
 - Adds additional help for running CFD validation tests.


Testing summary:
 - Successfully compiled X11 version of ESP-r on Linux (GCC 3.3.2).
 - Successfully compiled X11 version on Cygwin (gcc 3.4.4).
 - Exercised relevant prj menus for X11 version on Linux.
   All menus found to work as expected.
 - Ran tester.pl over complete test suite comparing code for above noted
   revisions merged in to development_branch@2921 against
   unmodified development_branch@2921
   All test cases passed:  no differences reported.



All sub-branchs of 'development_branch' should now be synchronized with
'development_branch'.  These actions are to be completed by the owners
of these sub-branches following the instructions included in
src/archive/subversion.trf.



Former-commit-id: 71361ede05716136ac6233206ca5c16c9ccd9277
This commit merges changes r2958:2960 of sub-branch Aizaz_Samuel into
'development_branch'.


Summary of changes:
- This commit resolves a number of syntax errors and warnings
  that were introduced with r2950.


Testing summary:
- Applied forcheck static code analysis and found that total number of 
  warnings were reduced.
- Successfully compiled X11 version of ESP-r on Linux (GCC 3.3.2).
- Ran tester.pl over complete test suite comparing to
  development_branch@2971.  All test cases passed:  no differences
  reported.



All sub-branchs of 'development_branch' should now be synchronized with
'development_branch'.  These actions are to be completed by the owners
of these sub-branches following the instructions included in
src/archive/subversion.trf.



Former-commit-id: ec3d72cf66be7ebc7747abc71262b65aabdbde5c
This commit merges changes c2387, r2470:2542, and r2955:2984  of
sub-branch 'Alex_Ferguson' into 'development_branch'.


Summary of changes:
- These canges make numerous improvements and remedy several bugs in
  the automated test scripts.  ESP-r compilation, functionality and
  simulation results are unchanged.
- Most notably, the tester.pl script now supports specification of
  reference and test versions of the ish binary. This improvement
  allows revisions that change ish code to be meaningfully tested.
- In addition, tester.pl provides more meaningful descriptions of the
  differences observed in the out.xml files. It reports the maximum 
  observed error in each of the standard SI units (e.g. oC, W, kg/s).
- Automated_tests.pl now supports testing using local sandboxes as
  well as remote repositories. These changes allow users to easily run
  forcheck, compilation and regression tests over test-merge code bases
  (that is, copies of development branch that contain the results of
  test merges from other branches)
- Nightly_branch_tests.pl now contains a rudementry procedure to
  protect against interruption of the post-commit tests. Briefly,
  it attempts to run a test each hour for a 24-hour period, but quits
  if it finds its data files are locked. If 24-hours laps without a
  successful test, it forces the file into an unlocked state.


Testing summary:
- All three scripts repeatedly exercised in both automated and manual
  invocations.


All sub-branchs of 'development_branch' should now be synchronized with
'development_branch'.  These actions are to be completed by the owners
of these sub-branches following the instructions included in
src/archive/subversion.trf.



Former-commit-id: e5ee03b9df10c832ffab279f9d8b93202028ed9d
This commit merges changes r2905:2909 of sub-branch 'Jon_Hand'
into 'development_branch'.


Summary of changes:
- This updates the documentation and files for creating
  self-extracting installers for different operating systems.
  This change has no impact upon ESP-r source code.


Testing summary:
- Compile Linux GCC 3.4 X11 and GTK and create installer
- Compile OSX GCC 3.3 X11 and GTK and create installer
- Compile Cygwin GCC 3.4 X11 and GTK and create installer
- Compile Native windows GTK and create installer


All sub-branchs of 'development_branch' should now be synchronized with
'development_branch'.  These actions are to be completed by the owners
of these sub-branches following the instructions included in
src/archive/subversion.trf.



Former-commit-id: 5e7216fad3d1b3d5f4c816a4a0a4984161c39dcf
This commit brings branch Achim_Geissler up-to-date with development_branch at revision r2994



Former-commit-id: a0349f7b5c855cdc4234a268823c1f704d717430
This commit merges changes r2914:2952, r2953:2983, r2988:3028,
and r3029:3076 of sub-branch 'Install_Script_merge' into
'development_branch'.


Summary of changes:
- Numerous modifications have been made to make the source code
  compatibible with other compilers.  These changes also correct
  numerous floating-point-errors, buffer overflows and illegal
  array references that introduce uncertainty and instability
  into ESP-r computations.
- With these changes, ESP-r can now be compiled with the Intel
  compiler suite. The Intel compiler provides extensive
  bounds-checking, exception handling and trace features, and
  affords a valuable third reference for on going g77/gfortran
  comparisons. It also offers modest reductions in run-time.
- These changes add rudemantary floating-point-exception handling
  to g77-builds. Specifying '--fpe' at compilation adds a primitive
  exception handling routine to ESP-r, which terminates the program
  anytime a floating-point-exception (such as divide-by-zero) is
  encountered. Unfortunately, stack traces are still unavailable in
  the gcc 3.X compiler suite; developers are notified that an
  exception occurred but are not told where and when it took place.
- These changes improve the plant network solution procedure's
  implementation of relaxation between iterations. This improvement
  does not significantly affect simulation results for most plant
  networks, but encourages convergence in networks with marginal
  stability. Nevertheless, this improvement does introduce trace
  differences in the results of some test cases, and somewhat
  significant differences in one test case.
- These changes restore improvements to the bash Install file,
  which were accidently removed during recent submissions to
  development_branch.
- These changes make a minor improvement to the tester.pl script,
  allowing it to extract and report the version, compiler and
  library information stored in bps binaries.
- These changes adjust the simulation periods for a number of test
  cases; previously simulations that included the roll-over from one
  month to the next caused trace differences in simulation results
  to be exaggerated in the monthly bins.
- Finally, these changes restructure some library code pertaining
  to the XML reporting, svn versioning and graphics library facilities.
  These library modifications will ease ongoing maintenance of ESP-r,
  and will be transparent to most users and developers.


Testing summary:
- Compiled X11, GTK and noX versions using the gcc-3.4.6 and
  intel 10.0 compilers on linux. Compiled X11 version using
  gcc-3.4.4 on cygwin.
- Ran a regression test comparing gcc-3.4.6 compiled version of
  this code to the HEAD of development_branch.  The following
  plant test cases exhibited trace differences in plant
  domain simulation results due to the changes in the plant
  iteration:
    -plt_SDHW:                system2_50_per_cent_glycol
    -plt_SDHW:                system2_strat_tank
    -plt_SDHW:                system2_water
    -plt_SDHW:                system3_50_per_cent_glycol
    -plt_SDHW:                system3_water
    -plt_SDHW:                system4_50_per_cent_glycol
    -plt_elec_net:            elec_net
    -plt_pre_A42_PEMFC_model: ccht
    -plt_pre_A42_SOFC_model:  const-elec_winter
    -plt_pre_A42_SOFC_model:  elec-load-follow_winter
    -plt_pre_A42_SOFC_model:  parasitics_winter
  One plant domain test case (plt_electric_HWT: ccht_elec_tank) exhibited
  significant numerical differences due to improved stability
  on the plant simulation.


All sub-branchs of 'development_branch' should now be synchronized with
'development_branch'.  These actions are to be completed by the owners
of these sub-branches following the instructions included in
src/archive/subversion.trf.




Former-commit-id: 5cae8f57f4c6f8e3260c13005b721c4f45cf0348
This commit merges changes c3095 of sub-branch 'Jon_Hand' into
'development_branch'.


Summary of changes:
- A syntax issue specific to the Sun F90 compiler was corrected.
  This change has no impact upon ESP-r functionality or simulation
  results, but enables compilation with Sun F90.


Testing summary:
- Compile Solaris F90 X11 and Solaris GCC 3.4 GTK
- Compile OSX GCC 3.3
- Compile Linux GCC 3.4 X11
- Compiled Cygwin gcc 3.4.4.


All sub-branchs of 'development_branch' should now be synchronized with
'development_branch'.  These actions are to be completed by the owners
of these sub-branches following the instructions included in
src/archive/subversion.trf.



Former-commit-id: bae2edf4ebf60749e8af992626501658d24c3231
This commit merges changes c3093 of sub-branch 'Jon_Hand' into
'development_branch'.


Summary of changes:
- Update string variable size of wind pressure coefficients
  database. Users will notice a wider editing box as well as
  a file browser if using GTK interface. This is
  another step in relaxing restrictions on database
  file lengths.


Testing summary:
- Compile OSX GCC 3.3 X11
- Compile Linux GCC 3.4 X11
- Compiled Cygwin gcc 3.4.4.
- Interactive copy of standard database to model
  folder and edit a pressure set, save file, save
  model, generate QA report, look at contents of
  wind pressure coef file.
- Pre-commit syntax checks
- Ran validation/benchmark/QA with no differences reported
- Ran tester.pl against development_branch at 3055 with
  no differences reported


All sub-branchs of 'development_branch' should now be synchronized with
'development_branch'.  These actions are to be completed by the owners
of these sub-branches following the instructions included in
src/archive/subversion.trf.



Former-commit-id: 1fd6b4ca4c21cb68ed0b6327102a4c4efe783dc9
This commit merges changes r3095:3097 of sub-branch 'Jon_Hand'
into 'development_branch'.


Summary of changes:
- This commit corrects a common block mismatch. Users will not
  notice as this common block is not used (yet) and so has no
  impact on predictions.
- This commit also corrects a missing string declaration that
  affected mfs compilation.


Testing summary:
- Compile OSX GCC 3.3 X11
- Compile Linux GCC 3.4 X11
- Compile Solaris F90 X11
- Compiled on Cygwin with gcc 3.4.4.
- Syntax check on full source
- ran tester.pl against development_branch at revision 3088
  with no differences in XML, csv and H3K reported.



All sub-branchs of 'development_branch' should now be synchronized with
'development_branch'.  These actions are to be completed by the owners
of these sub-branches following the instructions included in
src/archive/subversion.trf.



Former-commit-id: 6e1661eaa308ed2d5a2b4c250a1d9ce6d9f56312
This commit brings branch Achim_Geissler up-to-date with development_branch r3102.


Former-commit-id: 5af6a08d1f96f53c8ea5f322adeb01795413b085
This commit merges changes r3097:3098 of sub-branch 'Jon_Hand'
into 'development_branch'.


Summary of changes:
- This commit updates code documentation and help messages related
  to importing and exporting DXF files.
- A number of bugs in the import of DXF version 12 files have been
  repaired.  Users will notice improved support for imports from
  CAD files.


Testing summary:
- Compile Linux GCC 3.4 X11
- Compile OSX GCC 3.3 X11
- Compiled on Cygwin with gcc 3.4.4.
- Syntax and visual checks performed.
- Single step debug sessions of several different
  DXF files (one of which was a prior export from
  ESP-r).
- tester.pl run against development_branch at r3088 with
  no differences reported.


All sub-branchs of 'development_branch' should now be synchronized with
'development_branch'.  These actions are to be completed by the owners
of these sub-branches following the instructions included in
src/archive/subversion.trf.



Former-commit-id: eab8d799b248570dda813e69b67e44c49d0fadde
This commit adds function h3k_transport_mfn_data() for flow network to H3K output.
net_flow.h was extended to be "implicit none" compatible
Tested with a small model (HC exemplar) featuring an air flow network. Output of data correct.

Following output is possible to date:
Nodes:
flowrate (kg/s)
volflowrate (m3/h)

Connections:
<pos. node> -> <neg node> flow (kg/s)
<pos. node> -> <neg node> Dp (Pa)




Former-commit-id: f42d94c514a5c6dfaf1bb592415e20094c04359f
This commit adds following output to function h3k_transport_mfn_data() 
for flow network to H3K output.

Nodes:
temp (oC)

Connections:
<pos. node> -> <neg node> velocity (m/s)

Tested with a small model (HC exemplar) featuring an air flow network. Output of data correct.
Test system: Cygwin



Former-commit-id: 7d07a2c60753d6a99af525d39ffaf9da45f22025
This commit brings branch Achim_Geissler up-to-date with development_branch r3115



Former-commit-id: 4c12c78d7467dd735900f2fee15783acabfe4cb2
This commit adds further output variables to H3K reporting ('building' section):

- Internal and external convective heat transfer coefficients
- Plane Radiant Temperature for internal surfaces (available for zones with viewfactor file)
- "surrounding radiation temperature" for surfaces facing "exterior"

Tested on cygwin. Further checks would be good, however, the output seems reasonable based on small HC model comparisons.

Does not change calculations, as only "results grabbing" is done.




Former-commit-id: 72041ba6bca543d3cd8f9cf4a38b775abebefa65
This commit addresses the Forcheck warnings in regard to implicit, explicit and non-optimal type conversions in HTBUOY.




Former-commit-id: 29dbcfb56ff6192c44ec4237108d5f3beab87e16
Some editing of h3k_report_data.F:

- changed i_Zone to iZone so variable names are conform
- changed names "Layer" to "Node",
- changed loop for Nodes from 1,nndc to 1,(nndc-1). This could be further reduced to 2,(nndc-1) to avoid double output of "external" surface temperature

Further output added to h3k_report_data:

- radiant heat transfer coeff. (Incropera et.al. Fundamentals of Heat Transfer eq. 1.8)
- ext. surf. temp. "explicit" (is the same as Node_1 temperature)

Compiled and checked on cygwin. Output seems O.K. (small model).




Former-commit-id: 58f258f887c1d42137aae370ea0c02e172665c2d
This commit merges changes r3079:3083 of sub-branch 'Jon_Hand'
into 'development_branch'.


Summary of changes:
- Update common block variable for version number of
  zone operation file. This change has no impact on
  users or predictions. It will eventually allow
  less repeated scanning of zone operation files.
- Extend code and syntax of zone operation file to
  support additional documentation and a tag data
  format for infiltration and ventilation schedules.
  Users will not notice any change. The extensions
  are hidden behind an increment in the file version.
  Developers will find additional logic for reading
  the new operation file format as well as intial
  interface code.


Testing summary:
- forchk syntax check complted.
- Ran tester.pl against development branch@3115: no
  differences reported.
- Compiled X11 version on Cygwin with gcc 3.4.4.


All sub-branchs of 'development_branch' should now be synchronized with
'development_branch'.  These actions are to be completed by the owners
of these sub-branches following the instructions included in
src/archive/subversion.trf.



Former-commit-id: 1bec52610ccc19fa61a08ae9557f1a4186c9b0a0