Welcome, Guest
Username: Password: Remember me

TOPIC: two versions of Telemac at the same time

two versions of Telemac at the same time 12 years 10 months ago #3381

  • m.mahgoob
  • m.mahgoob's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 106
is it possible to install two versions of telemac at the same computer, if yes how can I do that and how can I choose between them when I want to run a case
The administrator has disabled public write access.

Re: two versions of Telemac at the same time 12 years 10 months ago #3382

  • jmhervouet
  • jmhervouet's Avatar
Hello,

We always have several versions installed here. All is driven by the configuration variable SYSTELCFG that directs to the file systel.ini, and there are all the adresses so by changing systel.ini and SYSTELCFG you can change the version. You must be careful with the directory bin that contains perl scripts, but here I can run 6.0 or 6.1 with the same directory bin so probably it is not even necessary to change the path to bin.

With best regards,

Jean-Michel Hervouet
The administrator has disabled public write access.

Re: two versions of Telemac at the same time 12 years 10 months ago #3392

  • c.coulet
  • c.coulet's Avatar
  • OFFLINE
  • Moderator
  • Posts: 3722
  • Thank you received: 1031
A short addition to jean-Michel answer

On windows, things are sometimes more complicated so it dependsréally how you installed telemac on your system.
The instalation not necessary manage the creation of an environmental variable like SYSTEL or SYSTELCFG. You could check if this variable exist with just typing SET in a dos command windows.

If there are no such varaibles, its easier to switch between different versions by modifying the path because each version has it's own bin directory.

Hope this helps
Christophe
The administrator has disabled public write access.
The following user(s) said Thank You: m.mahgoob

Re: two versions of Telemac at the same time 12 years 10 months ago #3411

  • ails
  • ails's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 140
  • Thank you received: 17
And a second short addition.

I may suggest to create a command file containing all the necessary information needed by TELEMAC.

On windows, this file (say source.g95.v6p2.bat) may look as follow (please note that the systel.ini file is in config/g95 directory):
rem TELEMAC settings ---------------------------------------------------
set PATH=C:\Users\I64653\Documents\3_Telemac\INSTALLATION\moonfish\trunk\bin;.;%PATH%
rem ALIASES -----------------------------------------------------------
set SYSTELCFG=C:\Users\I64653\Documents\3_Telemac\INSTALLATION\moonfish\trunk\config\g95
set RELTEL=v6p2
rem RELTEL is not mandatory...
rem COMPILERS -----------------------------------------------------
set PATH=C:\Program Files\g95\bin;.;%PATH%
rem MPI -----------------------------------------------------------
rem NO MPI with g95
rem EXTERNAL LIBRARIES --------------------------------------------
rem NO external libraries needed
rem MS-DOS command ------------------------------------------------ 
cmd

So, when running this file, it will automatically load the variables corresponding to the version selected. It can be used for switching between versions or even compilers.
The administrator has disabled public write access.

Re: two versions of Telemac at the same time 12 years 10 months ago #3417

  • m.mahgoob
  • m.mahgoob's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 106
First of all thanks for your reply. Actually I am not very familiar with such command file, so if the paths of the two telemac versions I have are as follows:

c:\TELEMAC\v6p1\bin
C:\Programme\telemac\V5P9\bin

where the systel.ini file for each version is in the config direcotry as follows

c:\TELEMAC\v6p1\config
C:\Programme\telemac\V5P9\config

so, what will be the command file in my case, it will be very kind of you if you made the file and attached it so I can use it.

Thanks once more
The administrator has disabled public write access.

Re: two versions of Telemac at the same time 12 years 10 months ago #3424

  • ails
  • ails's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 140
  • Thank you received: 17
An example according to your V6P1 settings. Save and rename file with a ".bat" extension.

Please check the PATH to the Fortran compiler : g95.exe in my case is installed in Program Files\g95\bin and Gfortran in Mingw/bin.
echo off
rem TELEMAC settings ---------------------------------------------------
set PATH=C:\TELEMAC\v6p1\bin;.;%PATH%
rem ALIASES -----------------------------------------------------------
set SYSTELCFG=C:\TELEMAC\v6p1\config
set RELTEL=v6p1
rem RELTEL is not mandatory...
rem COMPILERS -----------------------------------------------------
rem with g95...
set PATH=C:\Program Files\g95\bin;.;%PATH%
rem With mingw32-gfortran.exe...
set PATH=C:\MinGW\bin;.;%PATH%
rem MPI -----------------------------------------------------------
rem NO MPI with g95
rem EXTERNAL LIBRARIES --------------------------------------------
rem NO external libraries needed
rem MS-DOS command ------------------------------------------------ 
cmd

Regards,

Fabien Decung
The administrator has disabled public write access.
The following user(s) said Thank You: m.mahgoob
Moderators: borisb

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