background image
Code_Aster
®
Version
7.4
Titrate:
Operator
INFO_EXEC_ASTER
Date:
19/01/05
Author (S):
J.P. LEFEBVRE
Key
:
U4.13.04-A
Page
:
1/4
Instruction manual
U4.1- booklet: Management
HT-66/05/004/A
Organization (S):
EDF-R & D/AMA














Instruction manual
U4.1- booklet: Management
Document: U4.13.04



Operator
INFO_EXEC_ASTER








1 Goal
To create a table containing of information suitable for the execution in progress, consultable since
command file.
This control, intended to grow rich, allows for the moment to recover time CPU remaining, it
first number of logical unit free, the state of a logical number of unit or a file. Recovery
time thus makes it possible to stop or leave a structure of control python
conditionally.
background image
Code_Aster
®
Version
7.4
Titrate:
Operator
INFO_EXEC_ASTER
Date:
19/01/05
Author (S):
J.P. LEFEBVRE
Key
:
U4.13.04-A
Page
:
2/4
Instruction manual
U4.1- booklet: Management
HT-66/05/004/A
2 Syntax

count = INFO_EXEC_ASTER
(
LISTE_INFO =/“CPU_RESTANT”
/
“UNITE_LIBRE”
/
“ETAT_UNITE”
/
UNIT
=
num
[I]
/
FILE =
name
[TXM]
TITRATE
=
titrate
,
[l_TXM]
INFORMATION =
1
,
)
background image
Code_Aster
®
Version
7.4
Titrate:
Operator
INFO_EXEC_ASTER
Date:
19/01/05
Author (S):
J.P. LEFEBVRE
Key
:
U4.13.04-A
Page
:
3/4
Instruction manual
U4.1- booklet: Management
HT-66/05/004/A
3 Operands
3.1 Operand
LISTE_INFO
LISTE_INFO =
“CPU_RESTANT”
Allows to recover time CPU remaining during the execution: it is the difference between
affected time during the tender batch of the study, or the value of the time CPU spent on the line
of control for an interactive execution and the value of spent time CPU.
LISTE_INFO =
“UNITE_LIBRE”
Return the first number of logical unit available (by descending order from 99) to
moment of L `call. This value, recovered in a variable python, can then have passed
in argument of a control Aster. The numbers of logical unit are managed from
order DEFI_FICHIER [U4.12.03] and are deposited within a structure of data
intern with the code which establishes the link between the files and the numbers of units.
LISTE_INFO =
“ETAT_UNITE”
Turn over a table containing information “OPEN” or “FIRM” indicating the state of the unit
logic or of the associated file.

3.2 Operand
UNIT
UNIT = num
Logical number of unit which one wants to know the state:
“OPEN”: a file uses this number
“FIRM”: no file uses this number

3.3 Operand
FILE
FILE = name
File name, such as defined in the control DEFI_FICHIER [U4.12.03] which one wants
to know the state:
“OPEN”: this name is associated a logical unit and is used
“FIRM”: this name is associated no logical unit and the associated file is regarded as
closed

3.4 Operand
TITRATE
TITRATE = title
Affected title with the structure of data counts associated. For more details to see [U4.03.01].

3.5 Operand
INFORMATION
INFORMATION = 1
Operand unutilised for the moment.
background image
Code_Aster
®
Version
7.4
Titrate:
Operator
INFO_EXEC_ASTER
Date:
19/01/05
Author (S):
J.P. LEFEBVRE
Key
:
U4.13.04-A
Page
:
4/4
Instruction manual
U4.1- booklet: Management
HT-66/05/004/A
4 Remark
The accessible table since the command file python makes it possible to recover the value of time
CPU remaining, which is a function of the controls carried out previously, but does not take account of
time CPU spent in the processes called by EXEC_LOGICIEL and of the calls system
since python.


5 Example
# One carries out a loop from 1 to 10
for K in arranges (1,10):
#
# one calls one or more controls (AFFE_CHAR_MECA, STAT_NON_LINE,
etc)

# one recovers time remaining in table TCPU
TCPU=INFO_EXEC_ASTER (LISTE_INFO=' CPU_RESTANT')
# one recovers the value of time in a variable python
valcpu=TCPU [“CPU_RESTANT”, 1]

# one tests this variable python, if it remains less than 5 S, one leaves
loop
yew valcpu< 5.0:
station-wagon
# one destroys the concept of the type counts, to be able to recreate it with
the following iteration.
TO DESTROY (CONCEPT= (_F (NOM=TCPU),))