Dear Sir,
If I run Telemac2D with following command: "C:\OpenTelemac\V6P1\bin\telemac2d d:\down\telemac\051_mersey\t2d_mersey.cas", the file "telemac2dV6P1.exe" (downladed file from your home page) in "C:\OpenTelemac\V6P1\telemac2d\tel2d_v6p1\win64" is executed normally. The calculation can be run corretly and I can also get the results.
But if I compile the source code myself and replace "telemac2dV6P1.exe" by the file, which is complied from myself (with the option: convert:big_endian), then I get an error masage by reading the first line of the file "geo_mersey.slf".
To check the data in "geo_mersey.slf", I generate a unformatted file and wirte one line in the file:
CHARACTER(LEN=72) xxx
OPEN(21,FILE='D:\sourcen\TestFortran\ZZZZInterFortran',
&FORM = 'UNFORMATTED')
xxx='Pnewmers'
Write(21) xxx
close(21)
stop
end
Then, the file "ZZZZInterFortran" is generated and I get the file content with a text-editor:
000000000h: 00 00 00 48 50 6E 65 77 6D 65 72 73 20 20 20 20 ; ...HPnewmers
000000010h: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ;
000000020h: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ;
000000030h: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ;
....
This file is obviously different to the file "geo_mersey.slf":
000000000h: 00 00 00 50 6E 65 77 6D 65 72 73 20 20 20 20 20; ...Pnewmers
000000010h: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ;
000000020h: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ;
000000030h: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ;
....
In the file "ZZZZInterFortran", the code representing the string length (Len=72) is also written in the file before the string (48), but in "geo_mersey.slf" without it.
So can someone tell me how to set the complile options so that the length of the string does not apear in the unformated file? I think, if my test program can write a string into an unformatted file like "geo_mersey.slf", then the data in "geo_mersey.slf" can also be red without problem.
Thanks
kutti