<br><br>On Thursday, September 29, 2011 10:09:20 AM UTC-4, nadler wrote:<blockquote class="gmail_quote" style="margin: 0;margin-left: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;">I googled a little and found that the flag "-convert big_endian" does the job, at least when using ifort on the Xeon system. When one uses gfortran the flag would be "-fconvert=big/little-endian". I haven't tested it though. The flag needs to be added to the FCFLAGS. Now I can use the wfn from the Xeon system on the Power7 system and vice versa. Thank you again, Axel, for pointing me in the right direction!</blockquote><div><br></div><div>with gfortran you also have to pay attention to the -frecord-marker=LENGTH option.</div><div>some versions of gfortran use 8, some (older ones) use 4. </div><div><br></div><div>with some compilers the endian conversion can also be restricted to specific</div><div>fortran i/o channels and/or triggered via environment variables. </div><div><br></div><div>there is a chance that you get it to work, but no guarantee.</div><div><br></div><div>cheers,</div><div>     axel.</div><div> </div><blockquote class="gmail_quote" style="margin: 0;margin-left: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;"><div>Cheers,</div><div>Roger<br><div><br></div></div></blockquote>