**********************************************************************
***  Revision history leading up to this version crEDC_5g.c
***  Author: Pete Sullivan       Date: July 2020
**********************************************************************

Version)
========

5g) Enhancements Added Since version 5f:
      Allow models with different combinations of Genetic versus Environment
        effects of animals (e.g. Gm=0 & Em>0, Gd=0 & Ed>0)

5f) Enhancements Added Since version 5e:
      Removed requirement to renumber animals sequentially.  Any integer
        numbered sequence uses similar RAM and gives idential results.
      Allow unlimited number of mates per sire.
      Improved handling of ET records for multiple trait models with
        direct and maternal effects, when approximating reliabilities.
      Allow unlimited fields in the pedigree file, e.g. additional
        identification fields for the animals (name, registration, etc).
      Allow program to run without errors if 0 indexes are requested.
      Removed white space when delimited output is requested (-d)
      Option to output rTI instead of rTI*rTI.
      Option to include only a subset of the traits, e.g. to help
        debug problematic data from large multi-trait systems.
      Progeny counts for indexes are now weighted sums, by index weights,
        of the (grand)progeny observations.

5e) Enhancements Added Since version 5d:
      Fixed bugs from 5d for models with multiple traits having direct
        and maternal effects, and also non-zero residual correlations.
      Improved handling of zero genetic variances for some traits
        (e.g. Gd and Em are non-zero but Gm is zero)

5d) Enhancements Added Since version 5c:
      Improved direct-by-maternal adjustments in multi-trait models.
      Improved adjustments for fixed effects in multi-trait models.
      Option to include a header row if choosing comma-separated output.

5c) Enhancements Added Since version 5b:
      Improved adjustment for fixed effects for direct+maternal effects models.
      Improved check for positive semi-definite input matrices.

5b) Enhancements Added Since version 5a:
      Allow models with both sire and maternal grandsire effects on data (Y).
      Allow permanent environmental effects for animals OR dams.
      Require and check that all input matrices are positive semi-definite.
      Check observations for 1-based animal numbering, same as pedigree check.
      Check for reasonable record weights.
      Check for reasonable coding of contemporary groups (i.e. via group size).
      Validate output, delete ALL if ANY EDC(s) are outside the parameter space.
      Describe output file contents in the LOG file.
      Option to generate comma-separated output if desired.
      Options to ignore some of the above checks.
      Option for definition of heritability with random CG (within or across CG).

5a) Enhancements Added Since version 5:
      Option to include grand-progeny record counts in output file.
      Avoid seg. fault from huge contemporary groups (mis-coded data).
      Reduced RAM and run time for large multi-trait models.
      Expanded Memory monitoring messages...
	       (Out-of-RAM detection does not work for 64-bit systems).
      Extended Animal Model improvements from version 5 to Sire Models.

Future Program Enhancements:
      RAM requirements will be reduced for huge-scale applications.
      Models too complicated for the above constraints will be
      handled by allowing users to provide an include file,
      with the required code to customize accumulations of data
      contributions to the mixed-model equations (e.g. RR-TDMs).

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