[MITgcm-devel] C byteswap routines for FIZHI integers
Ed Hill
ed at eh3.com
Wed May 11 23:59:03 EDT 2005
Hi Andrea & Jean-Michel,
Attached is the alternate C byte-swap for integers that we discussed
today. I've tested it with verification/fizhi-gridalt-hs and it
compiles and runs (though I'm not certain that its used to produce any
output in that example).
I've also tested it independently with the attached self-contained
"hi.f" example and it compiles, runs, and produces the correct results
with g77.
So take a look, verify that it works for you, and then we can check it
into the model.
Ed
ps - In the fizhi-gridalt-hs test, I added the "-DHAVE_C_BSWAP" flag
to the Makefile per:
DEFINES = -D_BYTESWAPIO -DHAVE_C_BSWAP -DWORDLENGTH=4 ...
--
Edward H. Hill III, PhD
office: MIT Dept. of EAPS; Rm 54-1424; 77 Massachusetts Ave.
Cambridge, MA 02139-4307
emails: eh3 at mit.edu ed at eh3.com
URLs: http://web.mit.edu/eh3/ http://eh3.com/
phone: 617-253-0098
fax: 617-253-4464
-------------- next part --------------
A non-text attachment was scrubbed...
Name: C_byteswap.tar.gz
Type: application/x-compressed-tar
Size: 5827 bytes
Desc: not available
URL: <http://mitgcm.org/pipermail/mitgcm-devel/attachments/20050511/caa2d116/attachment.bin>
More information about the MITgcm-devel
mailing list