Welcome, Guest
Username: Password: Remember me

TOPIC: Telemac2D compilation

Telemac2D compilation 12 years 6 months ago #4595

  • Kutti
  • Kutti's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 22
  • Thank you received: 2
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
The administrator has disabled public write access.

Re: Telemac2D compilation 12 years 6 months ago #4596

  • c.coulet
  • c.coulet's Avatar
  • OFFLINE
  • Moderator
  • Posts: 3722
  • Thank you received: 1031
Hi

Maybe could you copy here the exact error message you have when the computation crash?

Another question, which compiler did you use?
Christophe
The administrator has disabled public write access.

Re: Telemac2D compilation 12 years 6 months ago #4609

  • Kutti
  • Kutti's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 22
  • Thank you received: 2
Hi,

I am using Intel Visual Fortran Composer XE 2011. The problem with reading data from geo_mersey.slf has been solved. Now I can run the example "051_mersey" also, if I replace the file "telemac2dV6P1.exe" with one that I compiled.

Thanks for your anwser.

kutti
The administrator has disabled public write access.
Moderators: pham

The open TELEMAC-MASCARET template for Joomla!2.5, the HTML 4 version.