Code_Aster ®
Version
7.4
Titrate:
Operator INFO_EXEC_ASTER
Date:
19/01/05
Author (S):
Key J.P. LEFEBVRE
:
U4.13.04-A Page
: 1/4
Organization (S): EDF-R & D/AMA
Handbook of Utilization
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 command, 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.
Handbook of Utilization
U4.1- booklet: Management
HT-66/05/004/A
Code_Aster ®
Version
7.4
Titrate:
Operator INFO_EXEC_ASTER
Date:
19/01/05
Author (S):
Key J.P. LEFEBVRE
:
U4.13.04-A Page
: 2/4
2 Syntax
count = INFO_EXEC_ASTER
(
LISTE_INFO =/“CPU_RESTANT”
/
“UNITE_LIBRE”
/
“ETAT_UNITE”
/
UNITE
=
num
[I]
/
FICHIER =
name
[TXM]
TITER
=
titrate
,
[l_TXM]
INFO = 1,
)
Handbook of Utilization
U4.1- booklet: Management
HT-66/05/004/A
Code_Aster ®
Version
7.4
Titrate:
Operator INFO_EXEC_ASTER
Date:
19/01/05
Author (S):
Key J.P. LEFEBVRE
:
U4.13.04-A Page
: 3/4
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 command 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 Aster command. 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 “OUVERT” or “FERME” indicating the state of the unit
logic or of the associated file.
3.2 Operand
UNITE
UNITE = num
Logical number of unit which one wants to know the state:
“OUVERT”: a file uses this number
“FERME”: no file uses this number
3.3 Operand
FICHIER
FICHIER = name
File name, such as defined in the command DEFI_FICHIER [U4.12.03] which one wants
to know the state:
“OUVERT”: this name is associated a logical unit and is used
“FERME”: this name is associated no logical unit and the associated file is regarded as
closed
3.4 Operand
TITER
TITER = title
Affected title with the structure of data counts associated. For more details to see [U4.03.01].
3.5 Operand
INFO
INFO = 1
Operand unutilised for the moment.
Handbook of Utilization
U4.1- booklet: Management
HT-66/05/004/A
Code_Aster ®
Version
7.4
Titrate:
Operator INFO_EXEC_ASTER
Date:
19/01/05
Author (S):
Key J.P. LEFEBVRE
:
U4.13.04-A Page
: 4/4
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 commands 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 commands (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),))
Handbook of Utilization
U4.1- booklet: Management
HT-66/05/004/A
Outline document