File: analysis

package info (click to toggle)
simrisc 16.05.00-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,568 kB
  • sloc: cpp: 6,877; fortran: 665; makefile: 112; ansic: 112; sh: 107
file content (34 lines) | stat: -rw-r--r-- 1,660 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
Parser::setOptions is called by Parser::load (load2.cc), called by the
Analysis constructor, reading option values specified in an Analysis:
specification in, e.g., the 'analysis' file  passed as argument to simrisc.

Parser::setOptions fills the Parser::OptionsVect with the long option names
and specified values. Then OptionsVect is passed to Analysis::actualize called
from the Analysis constructor.

Analysis::actualize first calls

    Options::activate, which assigns the STARTUP option values (which are the
    specified option values (or the default option values if not specified))
    to the ANALYSIS elements. This happens at each analysis, so each analysis
    starts with the original set op option values. The actually specified
    options are made available in d_specified[ANALYSIS]: those options cannot
    be altered by 'Analysis:' specfications.

    Next, all the long option names specified in the optionVect are looked up
    in g_longOptions. If longOptions contains an option specified in
    g_longOptions then its short option equivalent and sp

Each option specified in the OptionsVect is looked up in the global
Args::LongOptions g_longOpts vector (defined in main.cc).

If a long option is found then Options::alter is called with the optionChar
and the configured value.

Options::alter checks whether the option was specified as a comman-line option
when simrisc was called, if so it returns false, resulting in a warning
msg. that the specification is ignored.

Once all options have been processed Options::actualize is called to set the
current ANALYSIS option values, and to set the simulation type used in this
analysis.