Visit Our UNIX and Linux User Community

Linux and UNIX Man Pages

Test Your Knowledge in Computers #544
Difficulty: Medium
Using global variables is generally considered a best practice in modern programming languages..
True or False?
Linux & Unix Commands - Search Man Pages

efl(1) [bsd man page]

EFL(1)							      General Commands Manual							    EFL(1)

NAME
efl - Extended Fortran Language SYNOPSIS
efl [ option ... ] [ filename ... ] DESCRIPTION
Efl compiles a program written in the EFL language into clean Fortran. Efl provides the same control flow constructs as does ratfor(1), which are essentially identical to those in C: statement grouping with braces; decision-making with if, if-else, and switch-case; while, for, Fortran do, repeat, and repeat...until loops; multi-level break and next. In addition, EFL has C-like data structures, and more uniform and convenient input/output syntax, generic functions. EFL also provides some syntactic sugar to make programs easier to read and write: free form input: multiple statements/line; automatic continuation statement label names (not just numbers), comments: # this is a comment translation of relationals: >, >=, etc., become .GT., .GE., etc. return (expression) returns expression to caller from function define: define name replacement include: include filename The Efl command option -w suppresses warning messages. The option -C causes comments to be copied through to the Fortran output (default); -# prevents comments from being copied through. If a command argument contains an embedded equal sign, that argument is treated as if it had appeared in an option statement at the beginning of the program. Efl is best used with f77(1). SEE ALSO
f77(1), ratfor(1). S. I. Feldman, The Programming Language EFL, Bell Labs Computing Science Technical Report #78. 7th Edition April 29, 1985 EFL(1)

Check Out this Related Man Page

RATFOR(1)						      General Commands Manual							 RATFOR(1)

NAME
ratfor - rational Fortran dialect SYNOPSIS
ratfor [ option ... ] [ filename ... ] DESCRIPTION
Ratfor converts a rational dialect of Fortran into ordinary irrational Fortran. Ratfor provides control flow constructs essentially iden- tical to those in C: statement grouping: { statement; statement; statement } decision-making: if (condition) statement [ else statement ] switch (integer value) { case integer: statement ... [ default: ] statement } loops: while (condition) statement for (expression; condition; expression) statement do limits statement repeat statement [ until (condition) ] break [n] next [n] and some syntactic sugar to make programs easier to read and write: free form input: multiple statements/line; automatic continuation comments: # this is a comment translation of relationals: >, >=, etc., become .GT., .GE., etc. return (expression) returns expression to caller from function define: define name replacement include: include filename The option -h causes quoted strings to be turned into 27H constructs. -C copies comments to the output, and attempts to format it neatly. Normally, continuation lines are marked with a & in column 1; the option -6x makes the continuation character x and places it in column 6. Ratfor is best used with f77(1). SEE ALSO
f77(1) B. W. Kernighan and P. J. Plauger, Software Tools, Addison-Wesley, 1976. RATFOR(1)

4 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Help me spend $1000

Hey, As part of a Master's Degree program in Aeronautical Engineering I need a dedicated Unix PC to run a computational fluid dynamics (CFD) code in Fortran. Each run to model a single flow can take several days or weeks, so optimizing system resources is the only consideration. I need to buy... (1 Reply)
Discussion started by: John Bruzzese
1 Replies

2. Shell Programming and Scripting

case loop... repeat on bad input?

I'm trying to get a case statement to start over if an undefined option is selected... But I am ata loss on how to actually do it. Here is a quick example of what I have. Echo "1) do this/n 2) Do that/n 3) Quit/n Make a selection/n" Read answer Case answer in 1) Dothid;; 2) Dothat;;... (3 Replies)
Discussion started by: trey85stang
3 Replies

3. Homework & Coursework Questions

Fortran program issue

1. The problem statement, all variables and given/known data: I was given this program to work with that is supposed to work as it is. It comes with a makefile so all I should have to do is use the make command, then type ./blub to execute the program. A list of data should then appear in the... (3 Replies)
Discussion started by: Arjani
3 Replies

4. Shell Programming and Scripting

Help about using variables of float numbers in sed

Hi, I need to run a Fortran program which reads a input file with a fixed name many times, each time I need to change a number (real) in that input file, this is how I currently do it and I know it is not elegent at all: cp inputfile.dat backup.dat sed -i 's/28.0/0.01/g' inputfile.dat ./myCode... (3 Replies)
Discussion started by: dypang
3 Replies

Featured Tech Videos