Welcome, Guest
Username: Password: Remember me

TOPIC: Problem with pre-compiled versions

Problem with pre-compiled versions 11 years 6 months ago #8391

  • JGirard
  • JGirard's Avatar
Hello everyone,

I would like to use Telemac2D, but I run into some problems while using the pre-compiled versions.

I know that I am not supposed to use a Fortran compiler for these versions, but without any compiler, it won't work as "you have to compile this module at least : telemac2d"

So I tried to use GFortran, IntelFortran, and even G95Fortran with the 6.1 version, but I can't make it work.

Here are the error messages I encounter :

(I use the Bumpflu example, on Windows XP and with Python 2.7.4)

With IntelFortran :


http://hpics.li/303f6a0


With GFortran :


http://hpics.li/c9c886c


With G95Fortran :

http://hpics.li/03e37e5


I have done some research on these errors but still I can't figure out what is wrong.

Thank you for your help

Regards,
Jordi
The administrator has disabled public write access.

Problem with pre-compiled versions 11 years 6 months ago #8395

  • abernard
  • abernard's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 210
  • Thank you received: 45
Hi Jordi,

I don't really understand your problem? Could you clarify it?

Do you have a fortran compiler on your computer? Which one?

Which compiled version have you installed? Is it working when running cases with no fortran routines modification?
The administrator has disabled public write access.

Problem with pre-compiled versions 11 years 6 months ago #8397

  • JGirard
  • JGirard's Avatar
Hi abernard,

I tried first the wingfortrans32_v6p2 pre-compiled version, without any fortran compiler. But then I had the error message "you have to compile this module at least : telemac2d" (same as here : www.opentelemac.org/index.php/kunena/2-w...ntel-compiler-python)

Then, I added -c wingfortrans to my command line, and the error message I received was one asking for the gfortran.exe file.

I installed gfortran, and now I have the error message I sent in my first post.

I tried to do the same manipulation but with the other fortran compilers and the other pre-compiled versions, but I don't understand why this isn't working without any fortran compiler as it should be ?
The administrator has disabled public write access.

Problem with pre-compiled versions 11 years 6 months ago #8402

  • abernard
  • abernard's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 210
  • Thank you received: 45
I can't open the links you placed in your first post (firewall). Maybe you should insert in your post a screenshot of your command windows with the "image link" button.

With a compiled version of the code, you don't need fortran compiler (except if you want to run a case including fortran routine modification).

The bumpflu case include a fortran file "t2d_bumpflu.f" (with some subroutine modification). If you don't have a fortran compiler, you shouldn't start with this case.
The administrator has disabled public write access.
The following user(s) said Thank You: JGirard

Problem with pre-compiled versions 11 years 6 months ago #8407

  • JGirard
  • JGirard's Avatar
Thank you I didn't realise there was some validation case with a fortran file and some without !

With your help I was able to get through some validation case.

But still I don't understand why I can't run those with fortran file.

I am going to try to make the screenshots visible on the forum so you can see the errors I am getting.

Anyway, thank you again for your help, it will save me a lot of time !


Edit : I can't edit my first post, so I put the screenshots here :

Intel Fortran :
256886intelbug.png


GFortran :
651241gfortranbug.png


G95Fortran :
480327g95fortranbug.png
The administrator has disabled public write access.

Problem with pre-compiled versions 11 years 6 months ago #8410

  • abernard
  • abernard's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 210
  • Thank you received: 45
If you have only gfortran on your computer, -c wing95s or wintels won't work.


At this stage, you should verify if your gfortran can compile and run very simple fortran file.
The administrator has disabled public write access.

Problem with pre-compiled versions 11 years 6 months ago #8420

  • JGirard
  • JGirard's Avatar
I was able to compile and to launch a simple FORTRAN file (addition between two inputed numbers).

I also tried to run some other validation case with GFortran but I still get the same error.

I am running the 4.6.3 version of GFortran, maybe it is not the good one ?
The administrator has disabled public write access.

Problem with pre-compiled versions 11 years 6 months ago #8466

  • abernard
  • abernard's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 210
  • Thank you received: 45
Hi Jordi,

At this stage you know how to run a simple case (without fortran programing).
You also know that your gfotran compiler is working.

I really suggest you to compile the whole system. It will help you to optimize your installation and it will help you solving your problem.

You can find very good instructions in the download section of the website.
The administrator has disabled public write access.

Problem with pre-compiled versions 11 years 6 months ago #8470

  • JGirard
  • JGirard's Avatar
I just solved my problem with GFortran. In fact it seems that the file bief.mod at /opentelemac/v6p2/bief/bief_v6p2/wingfortrans/ was corrupted. I ran the following command in /opentelemac/v6p2/bief/bief_v6p2/sources/ :

gfortran -c bief.f bief_def.f

I replaced the .mod by those I have created, and now I can run cases with Fortran file.

What I don't understand is that when I try to compile the SVN files, I run into this error (after the source file scanning) :



Some users seems to have the same error, for example in this topic : www.opentelemac.org/index.php/kunena/2-w...en-compiling-telemac

Anyway, thanks for your help, I am now able to use almost every functionnality of Telemac2D, which is great !
The administrator has disabled public write access.
Moderators: borisb

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