Code_Aster. Procedure DEFI_FICHIER. 1 Drank



Similar documents
Bachelors of Computer Application Programming Principle & Algorithm (BCA-S102T)

Programming Languages

Computational Mathematics with Python

Computational Mathematics with Python

Computational Mathematics with Python

Introduction to Java Applications Pearson Education, Inc. All rights reserved.

Bitrix Site Manager 4.0. Quick Start Guide to Newsletters and Subscriptions

COMP 250 Fall 2012 lecture 2 binary representations Sept. 11, 2012

List of FTP commands for the Microsoft command-line FTP client

ASSEMBLY LANGUAGE PROGRAMMING (6800) (R. Horvath, Introduction to Microprocessors, Chapter 6)

Chapter 7: Additional Topics

High-Level Programming Languages. Nell Dale & John Lewis (adaptation by Michael Goldwasser)

Debugging. Common Semantic Errors ESE112. Java Library. It is highly unlikely that you will write code that will work on the first go

An introduction to Code_Aster. Daniele Colombo An introduction to Code_Aster

Concepts of digital forensics

Outline. File Management Tanenbaum, Chapter 4. Files. File Management. Objectives for a File Management System

Section IV.1: Recursive Algorithms and Recursion Trees

[Refer Slide Time: 05:10]

C++ INTERVIEW QUESTIONS

Embedded Systems. Review of ANSI C Topics. A Review of ANSI C and Considerations for Embedded C Programming. Basic features of C

Overview on Salome-Meca and Code_Aster. Code_Aster, Salome-Meca course material GNU FDL licence (

PMOD Installation on Linux Systems

The Real Challenges of Configuration Management

McGraw-Hill The McGraw-Hill Companies, Inc.,

Section of DBMS Selection & Evaluation Questionnaire

TIBCO Fulfillment Provisioning Session Layer for FTP Installation

New Tools Using the Hardware Pertbrmaiihe... Monitor to Help Users Tune Programs on the Cray X-MP*

Name: Class: Date: 9. The compiler ignores all comments they are there strictly for the convenience of anyone reading the program.

VMware vcenter Configuration Manager Software Provisioning Components Installation and User Guide

Notes on Assembly Language

Introduction to Minitab Macros. Types of Minitab Macros. Objectives. Local Macros. Global Macros

Stored Documents and the FileCabinet

10CS35: Data Structures Using C

Using Parametric Equations in SolidWorks, Example 1

Object Oriented Software Design

MASSACHUSETTS INSTITUTE OF TECHNOLOGY 6.436J/15.085J Fall 2008 Lecture 5 9/17/2008 RANDOM VARIABLES

Full and Complete Binary Trees

Application Development

1 Basic commands. 2 Terminology. CS61B, Fall 2009 Simple UNIX Commands P. N. Hilfinger

Sample Induction Proofs

RECOVER ( 8 ) Maintenance Procedures RECOVER ( 8 )

Symbol Tables. Introduction

Instruction Set Architecture (ISA)

Chapter One Introduction to Programming

Central Processing Unit Simulation Version v2.5 (July 2005) Charles André University Nice-Sophia Antipolis

SPSS for Windows importing and exporting data

Perl in a nutshell. First CGI Script and Perl. Creating a Link to a Script. print Function. Parsing Data 4/27/2009. First CGI Script and Perl

Integrating TAU With Eclipse: A Performance Analysis System in an Integrated Development Environment

THE EU DISABILITY STRATEGY Analysis paper

THE DIMENSION OF A VECTOR SPACE

Comp 255Q - 1M: Computer Organization Lab #3 - Machine Language Programs for the PDP-8

UTILITY INSTRUCTION MANUAL BNP-B2196 (ENG)

Chapter 13: Program Development and Programming Languages

Introduction to ROOT and data analysis

Unix Shell Scripts. Contents. 1 Introduction. Norman Matloff. July 30, Introduction 1. 2 Invoking Shell Scripts 2

Mathematical Induction

The Clean programming language. Group 25, Jingui Li, Daren Tuzi

Numeral Systems. The number twenty-five can be represented in many ways: Decimal system (base 10): 25 Roman numerals:

Lecture 4: Writing shell scripts

Setting Up the Site Licenses

Massachusetts Institute of Technology Department of Electrical Engineering and Computer Science

Computer Science 281 Binary and Hexadecimal Review

Oracle Forms Services Secure Web.Show_Document() calls to Oracle Reports

CAPIX Job Scheduler User Guide

1 Classical Universal Computer 3

Development of Application Software for Stock Material Selection for Manufacturing of Shafts

AN INTRODUCTION TO UNIX

Users Guide. FTP/400 File Transfer API and Remote Command Server Version By RJS Software Systems, Inc.

The Windows Command Prompt: Simpler and More Useful Than You Think

The Little Man Computer

BAAN IVb and IVc. EDI User Guide

SAS 9.4 Logging. Configuration and Programming Reference Second Edition. SAS Documentation

Sources: On the Web: Slides will be available on:

Simple File Input & Output

Two's Complement Adder/Subtractor Lab L03

ML for the Working Programmer

User Manual. DG LINK Application Program This document applies to firmware version 2.00 and above.

Regular Expressions and Automata using Haskell

Operating system Dr. Shroouq J.

grep, awk and sed three VERY useful command-line utilities Matt Probert, Uni of York grep = global regular expression print

Configuration Management: An Object-Based Method Barbara Dumas

Linux Crontab: 15 Awesome Cron Job Examples

Using Casio Graphics Calculators

Top 10 Things to Know about WRDS

Unix the Bare Minimum

SAS 9.3 Logging: Configuration and Programming Reference

Package sjdbc. R topics documented: February 20, 2015

Introduction to: Computers & Programming: Input and Output (IO)

Understand for FORTRAN

Regular Languages and Finite Automata

Data Integrator. Pervasive Software, Inc B Riata Trace Parkway Austin, Texas USA

Domain Name Resolver (DNR) Configuration

PROBLEMS (Cap. 4 - Istruzioni macchina)

winhex Disk Editor, RAM Editor PRESENTED BY: OMAR ZYADAT and LOAI HATTAR

A single register, called the accumulator, stores the. operand before the operation, and stores the result. Add y # add y from memory to the acc

Computer Science 1 CSci 1100 Lecture 3 Python Functions

Transcription:

Titre : Procédure DEFI_FICHIER Date : 30/09/2013 Page : 1/5 Procedure DEFI_FICHIER 1 Drank To open or close a file associated with a number with logical unit. This number can be indicated in the procedure or obtained in return of the latter. This action can be carried out constantly during work. This procedure makes it possible to associate a logical number of unit with a file FORTRAN of the type ASCII, but this notion can also apply with certain restrictions on files of the binary type.

Titre : Procédure DEFI_FICHIER Date : 30/09/2013 Page : 2/5 2 Syntax [nfic [whole] =] DEFI_FICHIER ( ACTION = ASSOCIER, [DEFAULT] / LIBERER, / RESERVER, FICHIER = nomfic, [K255] UNITE = numul, [I] TYPE=/ ASCII, [DEFAULT] / LIBRE, ACCES=/ NEW, [DEFAULT] / OLD, / APPEND, INFO=/1, /2 ) the compulsory or optional character of unquestionable operands depends on the presence or the value associated with the previously well informed key keys. This operator has the characteristic to function at the same time like a command by providing result reusable whole type behind a key word of a further order, that is to say like a procedure.

Titre : Procédure DEFI_FICHIER Date : 30/09/2013 Page : 3/5 3 Operation of DEFI_FICHIER the inputs/outputs on files ASCII since the Code_Aster are carried out for the majority, using instructions FORTRAN using the notion of unit logical, it is a variable integer from 1 to 99 associate using an instruction of the open type to a file. By this number xx is associated with the name fort.xx, but it is possible to associate it with an unspecified file name. The logical number of unit is used in the interface of access to the code astk to recopy the files as starter and in output. In the file of Aster commands the various operators carrying out of the readings or the writings admit key word UNITE like argument. Several logical units are reserved by the code at the time of the phase of initialization. It is not authorized to modify the logical units 6 and 9 which make it possible to trace the course of an execution. logical unit name of the file authorized modification 6 MESSAGE not 8 RESULTAT yes 9 ERREUR not the user can wish to add or modify associations using procedure DEFI _FICHIER to use for example new file names, to print certain results or to differently gather them in files. Procedure DEFI _FICHIER makes it possible moreover to directly indicate the file of the type ASCII which will be associated with the specified logical unit. It can be specified either by a name in absolute (restricted with 255 characters) if the file is localised on the machine, or by a relative name in an agreed directory (. /REPE_IN or./repe_out ) when the interface takes care of the distant and total transfer of all the files located under the directory (standard repe in astk). OPEN named FORTRAN is then carried out on the files of the type ASCII. The command makes it possible of more than position either at the top of file, or at the end of the file. The code manages in-house a data structure gathering all of associations logical unit file name type of file - type of access. Operands 4 the modifications of association unit logic-name of file relates to the entry and output files. Operand 4.1 ACTION ACTION = ASSOCIER the logical number of unit is associated, when that is allowed, the name defined behind key word FICHIER if it is indicated, in the name fort.xx if not. It is not possible to redefine associations of the logical numbers 6 and 9. ACTION = LIBERER the logical number of unit is released, it is not more licit to use this number of unit, the associated file, when it is of type ASCII, is the object of an order of closing using CLOSED instruction FORTRAN. It then becomes possible to re-use the logical number of unit with an action of the type LIBERER. This mechanism is essential if one wants to be able D-to immediately exploit the contents of the file associated in the command file in progress, indeed the buffers must be completely emptied and the file must be able to be accessible, possibly during a call to a software since a command python of the os.system type. ACTION = RESERVER This kind of

Titre : Procédure DEFI_FICHIER Date : 30/09/2013 Page : 4/5 action is used in the macro commands and makes it possible to avoid the conflicts of logical number of unit between FORTRAN and python. The logical number of unit is associated, when that is allowed, the name defined behind key word FICHIER if it is indicated, in the name fort.xx if not. There N is not D instruction of the OPEN type carried out, with load for the macro command to carry out the various actions necessary. Operand 4.2 FICHIER FICHIER = nomfic Name physical of the file (< 255 characters) which one wishes to associate with a logical unit. This file will be created under the directory of execution of the code, but one can directly indicate a file name (respecting UNIX conventions) in the directory of the user. Under the directory of execution, it is possible to use an additional level of tree structure of conventional name REPE_IN (data files ) or REPE_OUT (results files ) recognized by the interface of access to the code astk. This name must be placed between quotes. Although they are not associated with a logical unit by an OPEN order FORTRAN, the binary files (for example MED) can be treated with this mechanism, it is necessary nevertheless to specify the type of access NEW or OLD to activate the recopy (by a call system since the code) since the data directory or directory as a result. When the operand is absent, it is by the file name fort.ul where ul is the number of unit which is associated with the logical unit definite behind UNITE. For the files of the type ASCII, an OPEN instruction FORTRAN is carried out on the name associated with the logical unit. Operand UNITE 4.3 UNITE = numul Number of logical unit associated, its value for file ASCII opened by instructions lies between 1 and 99 included. It is possible to re-use an already affected number but in this case it is necessary to take the precaution to release this last before. Certain numbers D `units logical cannot be redefined since the Aster commands, it is the numbers 6 and 9 which are respectively allocated with the message files and ERREUR. This number can be used then in all the Aster commands which have operand UNITE (IMPR_RESU, IMPR_TABLE, IMPR_FONCTION, etc). Operand UNITE can sometimes be omitted, it is then the code which will choose to affect a number, according to the availabilities, it is then necessary imperatively to specify operand FICHIER, the code is given the responsibility then in-house to associate the logical number of unit and the associated file. It is then possible to recover a whole value in output of the operator. Operand TYPE 4.4 TYPE = ASCII 4.5 the file associated with the logical unit is of type ASCII. TYPE = LIBRE the file associated with the logical unit is of undetermined type within the meaning of FORTRAN, that makes it possible to manage in a more flexible way the access to the file, this type is primarily used for the access to the MED files. The logical unit is not really used in this case, but that makes it possible to have the convention of name fort.ul on the file and being able to easily transmit it through the interface of access to the code. Operand access

Titre : Procédure DEFI_FICHIER Date : 30/09/2013 Page : 5/5 4.6 ACCES = NEW the file of the type ASCII is opened and one positions en tête, a Fortan instruction of the type REWIND is carried out. If there exists, the file is crushed. To use for a file as a result. ACCES = OLD the file of the type ASCII is opened and one positions such as it is, i.e. possibly with the position at which one was located the last access during. To use for a data file. ACCES = APPEND the file is opened and one positions at the end of the file. N is used that in the case as of files of the type ASCII. To use for a data file which one wants to supplement (who will be thus a priori as a result). Operand INFO 4.7 INFO = inf Makes it possible to print in the message file the list of the open logical units with command DEFI_FICHIER as well as the associated parameters. If INFO = 1, it does not have there feeling. Declaration in 5 the interface of access to the code of the logical unit put in work in DEFI_FICHIER Generally the user will invite DEFI_FICHIER in order to carry out postprocessings when it tests the need to create several results files according to the loading cases physically, of the quantities, the steps or times of evolution of computation. The user must declare and the names physical of the files associated logical units. This declaration is carried out, in the interface astk prior to launching of the completion of the work. It is necessary to add the files in the profile of study by selecting the libr type and to associate the number of logical unit to them selected. The repe type is used in the interface astk to transmit or receive all the contents of a file directory, with load for the user to call in the command file on DEFI_FICHIER to carry out association with the number of logical unit. For convention the data files are transmitted in the directory of nonroom REPE_IN, the files as a result are transmitted in the directory of local name REPE_OUT. In the order DEFI_FICHIER, the name placed behind FICHIER is form :./REPE_IN/mon_fichier. For a data file, one will make for example: DEFI_FICHIER (FICHIER = '. /REPE_IN/FILE.DATA', ACCESS=' OLD', UNITE= 11) LIRE_FONCTION (UNITE= 11, ) Notice INCLUDE cannot be used with a logical unit associated with a particular file name.