UPP  11.0.0
 All Data Structures Files Functions Variables Pages
native_endianness.f File Reference

This module, native_endianness, was written by Dusan Jovic and has been adapted to GSI for internal translation of WRF ARW and NMM binary restart files as required to match the machine native endian storage format. More...

Go to the source code of this file.

Data Types

module  native_endianness
 

Detailed Description

This module, native_endianness, was written by Dusan Jovic and has been adapted to GSI for internal translation of WRF ARW and NMM binary restart files as required to match the machine native endian storage format.

The original code only converted from big-endian to little-endian. There are no restrictions in this version. This is required for these two types of files, because they are read/written to using mpi-io, which has no compiler option for automatic switching to machine native endian format for fortran unformatted read/write.

Author
Parrish wx22
Date
2012-10-11
Note
functions included: is_little_endian - no argument–returns true for little-endian machine, false for big-endian machine
variables included: byte_swap - false if machine and wrf binary file are same endian, true if different

Program History Log

Date Programmer Comments
2012-10-11 Parrish Initial. Copy/modify original module native_endianness provided by Dusan Jovic, NCEP/EMC 2012
2012-10-19 parrish Additional modifications to improve efficiency. Remove interface and make to_native_endianness to work only with integer(4) arguments. Put to_native_endianness_i4 outside module.
Author
Parrish wx22
Date
2012-10-11

Definition in file native_endianness.f.