Welcome, Guest
Username: Password: Remember me

TOPIC: Partial compilation with Python script

Partial compilation with Python script 12 years 9 months ago #3583

  • c.coulet
  • c.coulet's Avatar
  • OFFLINE
  • Moderator
  • Posts: 3722
  • Thank you received: 1031
Hi
I'll try to switch from perl scripts to python scripts for telemac compilation. (Sebastien, I already could see your :) with this news)
As a ols scholl telemac user, I would like to have the possibility to only launch the compilation of one code (Telemac2d for example) as it was possible with perl scripts.
But :dry: i didn't found the way to do that. It allways run the full compilation of all modules...
So:
Is it possible to compile only one module with python?
If yes, how to do that?

Thanks for your help
Christophe
The administrator has disabled public write access.

Re: Partial compilation with Python script 12 years 9 months ago #3584

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

You can do this by modifying the "module" key in your config file (/confgi/..cfg).

By default it is: update system
If you wish to force re-compilation of the entire system: clean system
If you wish to update only one module (say telemac2d): update telemac2d

Note that the scan of the tree of the system will stil happen as TELEMAC-2D has various dependencies. If you know TELEMAC-2D does not need TOMAWAC, STBTEL, POSTEL-3D, TELEMAC-3D etc ... you can have: update telemac2d -tomawac -stbtel -telemac3d -postel3d -artemis

... for example.

There is a description of the major assumptions of how it works in the header of the config.py file

Hope this helps

Sébastien
The administrator has disabled public write access.
The following user(s) said Thank You: c.coulet

Re: Partial compilation with Python script 12 years 9 months ago #3585

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

I understand the way it works.
Maybe for afuture evolution that could be great to have the possibility to modify the module key directly on the command line.

Another question, did you know if we could adapt the script to generate successively the scalar and parallel libraries and executable without generate 2 directories in which .obj are the same?

Cheers
Christophe
The administrator has disabled public write access.

Re: Partial compilation with Python script 12 years 9 months ago #3586

  • sebourban
  • sebourban's Avatar
  • OFFLINE
  • Administrator
  • Principal Scientist
  • Posts: 814
  • Thank you received: 219
Bienvenu (as we say in Quebec).

I have now added the option ( -m or --modules ) to the python scripts on our main repository (trunk). It will therefore be available in v6p2.

For the parallel and scalar modes it is a bit more difficult in the present state of our TELEMAC directory structure, as it goes against our original assumption to make "configurations" as flexible as possible. Nonetheless, we are discussing a better/simpler TELEMAC directory structure for the "switches" (such as paravoid and parallel, xdmf and netcdf, mumpsvoid or mumps, etc ...), which should also allow for sharing of the common objects. ... to be continued. A decision and implementation should be in place before v6p2 is released.

Hope this helps.
Sébastien.
The administrator has disabled public write access.
Moderators: borisb

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