next up previous
Next: Restarts Up: Output from Parallel Previous: History Output

Post Processing History Tape Output

History tape output produced by NCAR's CCM2 and the PCCM2 codes have the same format. Files are stored and transferred between machines as binary files due to their large size and written in machine dependent binary formats. A code to translate these binary files between different formats has been written for each architecture which will access these files. Filters which do this binary translation using a FORTRAN-C interface can be compiled on any machine with the RPC- library (RFC1050, ``Remote Procedure Calls: Protocol Specification'', in Network Programming Guide, part no. 800-3850-10, Sun Microsystems, Inc., 2550 Garcia Avenue, Mountain View, CA 94043.) These filters are based on the External Data Representation (XDR) standard (RFC1014, ``External Data Representation:Protocol Specification'', in Network Programming Guide, part no 800-3850-10, Sun Microsystems, Inc., 2550 Garcia Avenue, Mountain View, CA 94043.) Using these filters, the binary file passed between machines is in XDR format and easily decoded to machine dependent binary format on the desired architecture.

XDR Conversion Filters

Included with the FORTRAN-C source code is a pair of makefiles, ``makefile'' and 'make.mach_ind', which have been designed to allow the user to create the executables by simply specifying the architecture (e.g. 'make cray'.)

encode:
takes as input a machine dependent binary history file and produces an XDR-formatted machine independent binary history file.
decode:
takes as input an XDR-formatted machine independent binary history file and produces a machine dependent binary history file.

For example, to convert a history file, h0001, to the xdr format, use

%encode h0001
This will produce the file h0001.xdr. To produce a machine binary from an XDR file, eg. h0001.xdr, use
%decode h0001



John B. Drake
Wed May 15 09:51:22 EDT 1996