|
|
ENSDF Analysis and Utility Programs SETMDC
Set Machine Dependent Coding
|
To NNDC
|
| File |
Description |
Size |
Modified |
setmdc.f90 |
ANSI version |
8770 bytes |
18-Jun-2002 |
unx |
Linux version |
|
16-Jan-2004 |
vax |
OpenVMS version |
|
16-Jan-2004 |
win |
MS Windows version |
|
16-Jan-2004 |
This program, and all other NNDC distributed software, has been
written in ANSI standard FORTRAN so as to be as machine independent as
possible. However, there are places in the programs where nonstandard
features of the FORTRAN language have to be used. As a result, some
sections of the code are written in a machine dependent manner. The
variant codes appropriate for particular computers have all been
included in the program with the inappropriate code stored as
comments. Program SETMDC will convert programs from one configuration
to another so as to make machine portability as simple as possible.
- Machine Dependent Code Specification Format:
|
All machine dependent code sections must have the same format. Each section
is headed by:
|
| C+++MDC+++ |
FORTRAN 77
|
| !+++MDC+++ |
FORTRAN 90/95
|
| and trailed by:
|
| C---MDC--- |
FORTRAN 77
|
| !---MDC--- |
FORTRAN 90/95
|
|
Code for any one machine is headed by one of:
|
| C...DVF
|
FORTRAN 77
|
MS Windows |
HP/COMPAQ/Digital Visual FORTRAN
|
| !...DVF
|
FORTRAN 90/95
|
| C...UNX
|
FORTRAN 77 |
Linux/UNIX |
GNU f77 FORTRAN |
| !...UNX |
FORTRAN 90/95 |
Lahey/Fujitsu FORTRAN 95 |
| C...VMS
|
FORTRAN 77 |
OpenVMS |
Digital Fortran 77 |
| !...VMS
|
FORTRAN 90/95 |
Digital Fortran 90 |
|
Code for any two or more machines is headed by a list of the machines,
separated by commas, blanks after commas optional. For example:
|
| !...UNX |
| !...DVF,VMS
|
SETMDC shifts right all inappropriate code by two columns and precedes them
by 'C/' or '!C/' in columns 1 and 2. Therefore, for FORTRAN 77 all
machine dependent code should fit in 70 columns so that shifting will not
shift out good code.
See program source SETMDC or other NNDC programs for examples of MDC
specification.
- No external modules or special instructions are required to compile and
link SETMDC.
- Terminal dialog:
ENTER INPUT FILE NAME:
ENTER OUTPUT FILE NAME:
COMPILER (ANS, VMS, etc):
SOURCE FORMAT (F77 OR F95):
Program Manager: Thomas W. Burrows, NNDC Brookhaven National Laboratory
(nndctb@bnl.gov)
Web: Thomas W. Burrows, NNDC Brookhaven National Laboratory
(nndctb@bnl.gov)