2. Code Aster source code definition#
The source code of the*Code Aster* consists of:
FORTRAN routines stored by libraries. We will then talk about code FORTRAN.
functions in C language
modules in Cray assembly: Cray Assembly Language or CAL. The assembler is also grouped into libraries. Like the C and the FORTRAN the CAL is grouped in a library.
catalog elements constituting in a way a complement to the programming of certain parts of the code (Command language, Finite elements). We will then talk about code CATALOGUE.
Example:
% MODIF DMEDX TYPELEM DATE 12/12/91 AUTEUR fgazzpe ELEMENT D_ DEPL_R_DX% DDL LIE IN MECANIQUE (CMP DX) MAILLE SEG3 001 CARTE 4 MTEMPSR = INST_R E 1 IDEN 1 INST MDDLMUR = DDLM_R E 1 IDEN 1 A1 MDDLIMR = DDLI_R E 1 IDEN 1 C MDDLIMF = DDLI_F E 1 IDEN 1 C … etc…
These CATALOGUES items are stored by CATALOGUEs.
Definition:
We call a source unit or, more simply, a routine FORTRANou a module CALo or a function C or an element of catalog. These two notions are called units because they actually constitute units in the sense of source management.
A version of Aster consists of source code but also associated test cases. Without being source code, a test case is essential. The test cases are also units and are subject to the same management constraints as the sources.
Code_Aster sources and test cases are stored in files corresponding to reference versions. The need to be able to make corrections to the version delivered to users and to be able to make the development version evolve effectively leads to the need to consider two reference versions. Currently, these are versions NEW2 and NEW3.