Now it works pefectly<br><br>i will post a full how to for fortran users<br><br>Thanks Kent for all your answers<br><br><br><br><div><span class="gmail_quote">On 3/14/06, <b class="gmail_sendername">Kent Eschenberg</b> <
<a href="mailto:eschenbe@psc.edu">eschenbe@psc.edu</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">--On Tuesday, March 14, 2006 03:11:01 PM +0100 Adrian Magda
<br><<a href="mailto:amagda@gmail.com">amagda@gmail.com</a>> wrote:<br>> 1 if my data is real in fortran and in paraview reader is float are this<br>> two corespondent, i mean the same?<br><br>Yes, real and float mean the same here.
<br><br>> 2 the file for writing should be unformatted or binary opened for writing<br>> - i am working on a sun machine?<br><br>I can't answer that as my Fortran is rusty.<br><br>> 3 how do i sweep bites? a line command would be very helpful
<br><br>I can only give an example in C; perhaps someone can contribute an example<br>in Fortran. In C, if "a" is your array of integers or floats, the bytes<br>could be swapped as follows:<br><br> int i;<br> char one_byte;
<br> char *b = (char*)a;<br><br> for( i=0; i<nWords; ++i, b+=4 ) {<br> one_byte = b[0]; b[0] = b[3]; b[3] = one_byte;<br> one_byte = b[1]; b[1] = b[2]; b[2] = one_byte;<br> }<br><br>Kent<br>Pittsburgh Supercomputing Center
<br><br></blockquote></div><br><br clear="all"><br>-- <br>########################################<br> <br> Diplom. Eng Adrian Magda
<br> <br> Institut für Wärme- und Brennstofftechnik <br> Franz-Liszt-Straße 35 <br> 38106 Braunschweig, Germany
<br> <br> Telefon: +49 -531 391-3031(office) <br> Telefax: +49 -531 391-5932 <br>
<br>########################################