Welcome, Guest
Username: Password: Remember me

TOPIC: Eclipse SDK + Photran 3.6 for editing sources

Eclipse SDK + Photran 3.6 for editing sources 14 years 2 months ago #587

  • UHM
  • UHM's Avatar
Dear telemac users and developers,

findig your way through an extensive source code collection like telemac with subsystems is quite difficult without a development environment.

I tried to import telemac sources into Eclipse 3.6 with Photran extension and Intel Ifort 10 compiler. Without success so far.

There are so many options, concerning makefiles and debugging, that I have problems to identify the right ones.

Did somebody use Eclipse for telemac before? And know how to set it up?
Or what development environment do you use?

Greetings from Karlsruhe,

Uwe
The administrator has disabled public write access.

Re:Eclipse SDK + Photran 3.6 for editing sources 14 years 2 months ago #588

  • sebourban
  • sebourban's Avatar
  • OFFLINE
  • Administrator
  • Principal Scientist
  • Posts: 814
  • Thank you received: 219
Dear Uwe,

Indeed the TELEMAC source code is massive and represents nearly 20 years of mathematicl and numerical advances by several organisations over several modules. This is a good thing right !?

In order to simply life for developers who have not been here from the beginning, we are currently working at setting up pre-installed Linux operating systems (though the open source Oracle's Virtual Boxes). You would load the entire Operating System and everything would be installed/setup, including graphical interfaces (FUDAA, ParaView, maybe BlueKenue) but most importantly include IDEs already setup with sources code and projects linked directly to the main (official) SVN repository.

Our preliminary tests so far have been undertaken with SunStudio (based on NetBeans) and the sunf95 compiler. The intention is to also include a setup with Eclipse/Photran (linking to gfortran).

However, speaking form HR Wallingford's viewpoint, we are not at a stage where we can confidently support you with these types of IDEs. But we are hoping to be able to provide Eclipse and SunStuio/NetBeans projects before January 2011.

Maybe some else has already got a solution ?

Best regards,
Sébastien.
The administrator has disabled public write access.

Re:Eclipse SDK + Photran 3.6 for editing sources 13 years 9 months ago #1094

  • jaj
  • jaj's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 69
  • Thank you received: 7
Hello,

I have once tested a very early form of Eclipse for Fortran with Intel Compiler on Linux for developments concerning a direct coupling between Telemac2D and Sisyphe (called TelSis that time), however it was in a radically changed development environment and with completely changed code structure (private modules with limited public interfaces for the purpose of coupling instead of freely linkable f77-like procedure libraries). Anyway, the experiences are:

(1) One has to use other form of makefiles, which are to be dealt with with "make" command directly, instead of the Perl script maktel, so one defines a kind of "makefile.in" with all variables and compiler/linker options instead to be included. No Perl, no systel.ini, sorry.

(2) Makefiles must contain the file dependencies and the present ones do not do it relying on the compilation sequence given elsewhere...! (I have applied dependencies on *.a-libraries, if I remember correctly.)

(3) The execution environment must be managed in the form of a working directory which is in the usual case made temporarily by the execution-leading "runtel.pl" script. Awkward, but for development purposes, quite effective.

(4) As I remember it worked somehow, with a little help of this and that, but the efficiency and speed of the IDE was so disappointing compared with console+editor, that I didn't feel convinced at all and given it up, anyway.

(5) The other problem was that that time no parallel execution was possible, which is probably solved presently because Photran is distributed together with some parallel tools platform/package (I am not sure.)

(6) But I think it is easy to use Eclipse/Photran while developing in one library with all other libraries ready made; this might require a very simple makefile. By the way, this is the traditional method the Telemac developers usually use, isn't it?

(7) So, it is not easy, but I would suppose that a lot of people is presently so addicted to IDEs (probably because of the debuggers...) that re-arranging the development environment for this purpose might be worthwhile... Or maybe not? ,^)

Have fun,
Best regards,
jaj
The administrator has disabled public write access.

Re:Eclipse SDK + Photran 3.6 for editing sources 13 years 3 months ago #2063

  • bzindovic
  • bzindovic's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 68
  • Thank you received: 3
Dear Uwe,

Why do you insist on using Photran when there are a lot of other (not necessarily better) IDEs. You could try Code::Blocks (www.codeblocks.org/) which has a binary for every major OS and can use it accross various platforms. It is intended for C\C++\Python development (so it lacks code auto-completion for Fortran) but there is also a derivative intended for Fortran development and is called Code::Blocks for Fortran (darmar.vgtu.lt/index.php/cbdownload).

I've had good experience with development of small to moderate projects. It can be used for TELEMAC development and is quite fast, has very nice options and is rather easy to master.

I hope it helps.

Best regards,
Budo
The administrator has disabled public write access.

Re:Eclipse SDK + Photran 3.6 for editing sources 6 years 11 months ago #28450

  • shenh
  • shenh's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 148
  • Thank you received: 37
I understand it is a really old topic. Just checking whether there is an update now. I am also interested to compile the source code within Eclipse for a study to couple with other 1D models. I am thinking an IDE would ease the study since i can run the models in debug mode.

Thanks

Hailiang
The administrator has disabled public write access.

Re:Eclipse SDK + Photran 3.6 for editing sources 6 years 6 months ago #30085

  • shenh
  • shenh's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 148
  • Thank you received: 37
Dear all, I am following up on this topic.

Has anyone have success to compile the project in Eclipse or other IDE (in windows particularly)? I understand python code can be used to compile the code, but really do not get the steps under the scene, although I am able to run the compileTELEMAC.py in debug mode.

To debug the telemac code, I am throwing some write statements in the code and see what they print to understand the code. It is fine for updating a user defined function but not so convenient to understand the overall code structure (eg file reading, solution for various processes, data output). Enabling user to use the code in an IDE would shed more light into the code, I believe.

I am wondering what tool set the development team is using or recommends. Thanks

Hailiang
The administrator has disabled public write access.
Moderators: borisb

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