Successively each module is read from file and from database (latest version) in
two lists. The program compares every parameter of each volume in the lists
and writes the diagnose into a log-file.
The diagnose will e.g. look like this:
********************************************************************
log file for update of sect: /d/ilse/tmp/sectdbupdate150498.log
********************************************************************
All volumes from file found also in database
6 volumes need update
SEC1 geo: 0 points: 1 trans: 0
SEC2 geo: 0 points: 1 trans: 0
SEC3 geo: 0 points: 1 trans: 0
SEC4 geo: 0 points: 1 trans: 0
SEC5 geo: 0 points: 1 trans: 0
SEC6 geo: 0 points: 1 trans: 0
************************************************************
geo: diagnose of table GEOM_PROPERTIES (shape mother medium)
points: diagnose of table GEOM_PPOINTS
trans: diagnose of table GEOM_TRANSFORMATIONS
0 means no changes
1 means update of this table is necessary
Similar messages will show if new volumes have to be created or if volumes found
in the database are not used anymore.
If a media-file is include in the initialization file all media used by the
module are also checked for changes in the different tables for media and
material definitions.
All changes are stored with the new version index in the respective tables. This
procedure garanties, that old information is not lost.
To minimize the number of new lines in the tables a redesign of the tables was
neccessary.
All code including the (new) read and store routines can be found in
the HADES CVS-module gora.