[MITgcm-support] Error reading dx file with pathscale

Martin Losch Martin.Losch at awi.de
Tue Oct 21 14:15:34 EDT 2008


Hi David,
just to make sure: you need either set a CPP flag like this:
DEFINES='-D_BYTESWAPIO'
in the build options file or (which is probably faster) specify the  
appropiate compiler flag.
"-byteswapio" is the flag for the PGI compiler, I don't know what the  
Pathscale compiler does, but in the tools/build_options/ 
linux_amd64_pathf90 I found this:
FFLAGS='-convert big_endian'

Could that be the problem?

Martin
On 21 Oct 2008, at 19:37, David Hebert wrote:

> Hello all,
>
>
> I am working on a Cray XT4 system. I was able to compile and run  
> with PGI compilers. I am not attempting to see if Pathscale  
> compilers will make code run faster. In data file I specify a  
> delXfile and delYfile. It seems that by switching compilers now  
> causes the code to read these files incorrectly, as I am now  
> getting values like 9.0e160. This seems to suggest that byte  
> swapping is not occurring, but I have checked many times and I do  
> have -byteswapio flag set at compile time. Any ideas what might be  
> causing this behavior?
>
> Thanks,
>
> David
>
>
> _______________________________________________
> MITgcm-support mailing list
> MITgcm-support at mitgcm.org
> http://mitgcm.org/mailman/listinfo/mitgcm-support




More information about the MITgcm-support mailing list