Code_Aster ®
Version
8.2
Titrate:
Procedure TEST_TABLE
Date:
22/02/06
Author (S):
COURTEOUS Mr., J. Key PELLET
:
U4.92.03-E1 Page:
1/4
Organization (S): EDF-R & D/AMA
Handbook of Utilization
U4.9- booklet: Impression/Test
Document: U4.92.03
Procedure TEST_TABLE
1 Goal
To test a “cell” (or a whole column) of a concept of the type counts.
Imprime OK if the value found in the cell is identical to the value bench-mark datum,
NOOK if not.
This command is used primarily by the cases tests to validate the not-regression of
results.
Handbook of Utilization
U4.9- booklet: Impression/Test HT-62/06/004/A
Code_Aster ®
Version
8.2
Titrate:
Procedure TEST_TABLE
Date:
22/02/06
Author (S):
COURTEOUS Mr., J. Key PELLET
:
U4.92.03-E1 Page:
2/4
2 Syntax
TEST_TABLE
(
TABLE
=
matable,
[tabl_ *]
UNITE
=
/
links,
[I]
/
8,
SENSIBILITE= (
… to see [U4.50.02]),
% 1. Selection of the column to be tested:
NOM_PARA
=
para,
[KN]
/% 1.1 Selection of the line containing the cell to be tested:
FILTRE = (_F (
NOM_PARA
=
para
,
[KN]
/
CRIT_COMP
=
/“EQ”
,
[defect]
/“”
,
/“LT”
,
/“WP”
,
/“IT”
,
/“GE”
,
/VALE_I
=
ival
,
[I]
/
VALE_K
=
kval
,
[KN]
//
VALE
=
rval,
[R]
/
VALE_C
=
cval,
[C]
|
PRECISION
=
/
prec,
[R8]
/
1.0D-3
,
[DEFAUT]
|
CRITERE =
/“RELATIVE”, [DEFECT]
/
“ABSOLU”
,
/
CRIT_COMP
=/“MAXI”,
/“ABS_MAXI”
,
/“MINI”
,
/“ABS_MINI”
,
/“VIDE”
,
/“NON_VIDE”
,
),),
/% 1.2 to test the whole of a column:
TYPE_TEST =/“SOMM_ABS”,
/
“SOMM”
,
/
“MAX”
,
/
“MIN”
,
% 2. Value of reference:
/
VALE_I
=
ival
,
[I]
/
/
VALE =
rval
,
[R]
/
VALE_C
=
cval
,
[C]
VALE_ABS =/“YES”,
/
“NON”,
[DEFAUT]
| PRECISION
=
/
prec
,
[R]
/
1.0D-3,
[DEFAUT]
|
CRITERE
=
/
“RELATIF”
,
[DEFAUT]
/
“ABSOLU”
,
REFERENCE =/“ANALYTICAL”,
/
“NON_REGRESSION”
,
VERSION
=
towards,
[KN]
/
“SOURCE_EXTERNE”
,
/
“AUTRE_ASTER”
,
INFO
=
/
1
,
[DEFAUT]
/
2
,
)
Handbook of Utilization
U4.9- booklet: Impression/Test HT-62/06/004/A
Code_Aster ®
Version
8.2
Titrate:
Procedure TEST_TABLE
Date:
22/02/06
Author (S):
COURTEOUS Mr., J. Key PELLET
:
U4.92.03-E1 Page:
3/4
3 Operands
3.1 Operand
TABLE
One gives the name of the table which one wants to test.
3.2 Operand
UNITE
UNITE =
/links,
/
8,
Number of the logical unit on which the result of test (OK or NOOK) will be written, except case
private individuals links = 8.
3.3 Operand
SENSIBILITE
SENSIBILITE = par_sensi
Name of the significant parameter associated the value which one wants to test (see [U4.50.02]).
3.4 Operand
NOM_PARA
One gives the name of the parameter identifying the column to be tested.
3.5
To test a cell; key word FILTRE
This key word factor (répétable at will) is used to select the line containing the cell to be tested.
The use of this key word is described in command IMPR_TABLE [U4.91.03]. The only difference by
report/ratio with IMPR_TABLE is that the comparison criterions (CRIT_COMP) of inequality are not
available.
Note:
It is often necessary to repeat this key word to select a single line, this is why
command TEST_TABLE makes it possible to test only one value at the same time. If one wants to test
3 values in a table, 3 times should be called the command.
3.6
To test a whole column
/TYPE_TEST = “SOMM_ABS”
The sum of the absolute values of all the column of the table.
/TYPE_TEST = “SOMM”
The sum of the values of all the column of the table.
/TYPE_TEST = “MAX”
The maximum of the values of all the column of the table.
/TYPE_TEST = “MIN”
Minimum of the values of all the column of the table.
3.7
Definition of the value of reference
3.7.1 Operands
VALE/VALE_I/VALE_C
According to the type of the cell to be tested (real, whole or complex) one will indicate behind key words VALE,
VALE_I or VALE_C the value of reference which must be found in the selected cell.
If VALE_ABS=' OUI', one tests the absolute value.
Handbook of Utilization
U4.9- booklet: Impression/Test HT-62/06/004/A
Code_Aster ®
Version
8.2
Titrate:
Procedure TEST_TABLE
Date:
22/02/06
Author (S):
COURTEOUS Mr., J. Key PELLET
:
U4.92.03-E1 Page:
4/4
3.7.2 Operands
CRITERION/PRECISION
These 2 key words make it possible to indicate the tolerance which one accepts for the value tested when it is
of type real or complex.
Examples:
VALE= 3.3, “RELATIVE” CRITERE=, PRECISION = 1.D-5,
It will be checked that the value found in the cell tested is worth 3.3 with 1.D-5 near in relative error.
VALE= 3.3, “ABSOLUTE” CRITERE=, PRECISION = 2.D-3,
It will be checked that the value found in the cell tested is worth 3.3 with 2.D-3 near in absolute error.
3.7.3 Operand
REFERENCE
REFERENCE =
/“ANALYTIQUE”:
the provided value of reference is “analytical”
/“NON_REGRESSION”:
the provided value of reference was obtained at the time of a precedent
calculation by Code_Aster
VERSION = towards worms is the number of the version of Aster which made it possible to obtain
value of reference
/“SOURCE_EXTERNE”:
the provided value of reference comes from a different program
that Aster (or of a bibliographical reference)
/“AUTRE_ASTER”:
the provided value of reference is that obtained by another
“path” Aster (another command, option of calculation,…)
3.8 Operand
INFO
INFO = inf
Print additional information in the file “message” if inf=2. Do not print anything if
inf=1.
4 Examples
1) To test the table maxFchoc:
TEST_TABLE
(TABLE =
maxFchoc
, NOM_PARA = “MAXIMUM”,
FILTRE
=
(
_F (NOM_PARA = “FONCTION”, VALE_K = “effochoc”),
_F (NOM_PARA
=
“INST”,
VALE
=
3.76E-1),)
REFERENCE
=
“ANALYTIQUE”,
VALE
=
6,2983E2
,)
2) To test the value of derived from the table G compared to the significant parameter YOUNG:
TEST_TABLE
(TABLE =
G
, SENSIBILITE= YOUNG,
NOM_PARA = “G”, VALE = 1.76E+1),)
Handbook of Utilization
U4.9- booklet: Impression/Test HT-62/06/004/A
Outline document