Page:4SIGHT manual- a computer program for modelling degradation of underground low level waste concrete vaults (IA 4sightmanualcomp5612snyd).pdf/93

2. MAIN 10. Assess Termination.

Assess termination 10 $$\equiv$$ ⟨Assess chloride penetration 64⟩; ⟨Assess simulation termination 72⟩; ⟨Check time dependencies 71⟩;

This code is used in section 2.

11. The following are useful macro definitions which save a lot of typing.

⟨Preprocessor definitions 11⟩$$\equiv$$
 * 1) define SQR(a) ((a) * (a))
 * 2) define CUB(a) ((a) * (a) * (a))
 * 3) define MAX(a,b) ((a > b) ? a : b)
 * 4) define MIN(a,b) ((a < b) ? a : b)

See also section 46.

This code is used in section 2.

12. Declare yyparse which is written in YACC and LEX. The function yyparse takes no arguments and simply parses the input, assigning values to global variables. The routine does not “return” until the entire input stream has been parsed.

⟨Global variables 4⟩ $$+\equiv$$ int input.filename = 1;    /* line number of input file (lex/yacc) */

13. ⟨Input parsing routine 13⟩ $$\equiv$$ int yyparse(void);
 * 1) include "yyparse. c"

This code is used in section 2.