Skip navigation links
(Wind-US Documentation Home Page) (Wind-US User's Guide) (GMAN User's Guide) (MADCAP User's Guide) (CFPOST User's Guide) (Wind-US Utilities) (Common File User's Guide) (Wind-US Installation Guide) (Wind-US Developer's Reference) (Guidelines Documents)

(Common File Versions) (Basic Concepts) (Reference and Scaling Data) (Subroutine Descriptions) (Status Codes) (Default Library Values and Limits) (Definitions for CFD Applications) (Conversion Factors) (Transferring Common Files Between Computer Systems) (CFCRAY - Convert Version 1 or 2 Files to and from Cray Format) (Using Common Files Directly in PLOT3D)

CFCRAY - Convert Version 1 or 2 Files to and from Cray Format

CFCRAY is a common file utility that converts a common file in CONVEX, VAX ALPHA, VAX, IRIS, HP, PARAGON or IBM RS/6000 format into Cray format and vice-versa. This utility runs only on the Cray. This program is not used for version 3 files.

Converting Version 1 or 2 Files to Cray Format

To convert a file to Cray format, it must first be transferred to the Cray machine using ftp (binary mode), rcp or some other binary transfer mechanism. Then invoke CFCRAY by entering cfcray and fill in the prompts as follows:

   % cfcray
   Enter input  file name (<CR> to quit): vax_grid.cgd
   Enter output file name               : cray_grid.cgd
   1=Cray
   2=VAX
   4=Convex
   5=IEEE (IRIS, IBM RS/6000)
   Select output file format            : 1
The file will then be converted and may be used by the application programs.

Converting Version 1 or 2 files from Cray Format

To convert a common file in Cray format to some other format, follow the following example:

   % cfcray
   Enter input  file name (<CR> to quit): cray_grid.cgd
   Enter output file name               : vax_grid.cgd
   1=Cray
   2=VAX
   4=Convex
   5=IEEE (IRIS, IBM RS/6000)
   Select output file format            : 2 (or 4 or 5)
The converted file may then be transferred to the target machine using ftp (binary mode), rcp or some other binary transfer mechanism.

Embedding CFCRAY in Application Scripts

It may be necessary to invoke CFCRAY in a batch mode (for example, on the MDC Cray). This is done by creating a data file for the CFCRAY program and then invoking it directly. This is what the interactive cfcray script under UNICOS performs.

The file format is as follows:

    Line #:   Content
Line 1:   inunit
Line 2: infile
Line 3: outunit
Line 4: outfile
Line 5: output file format

Lines 6 through the end are optional

    Line #:   Content
Line 6:   cmdunit
Line 7: command script ...
Line n: command script ...


Last updated 1 Feb 2000