Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1
  • 2

TOPIC: compile telemac on Ubuntu

compile telemac on Ubuntu 11 years 6 months ago #8375

  • 716469
  • 716469's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 303
  • Thank you received: 6
Dear Gourish,

Just a quick question: when you compile telemac on Ubuntu do you need to enter on Terminal the following: $>,\> compileTELEMAC.py or just >,\> compileTELEMAC.py without $ as it is already there. Or maybe just compileTELEMAC.py ? Thanks. I am trying to install Telemac on Ubuntu this time:)

Kind regards!

Violet
The administrator has disabled public write access.

compile telemac on Ubuntu 11 years 6 months ago #8378

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

You just have to type compileTELEMAC.py
It should work if your PATH and SYSTELCFG are correctly set and if python works.
The administrator has disabled public write access.

compile telemac on Ubuntu 11 years 6 months ago #8380

  • 716469
  • 716469's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 303
  • Thank you received: 6
Dear Abernard,

thanks for your advice. I think I have not set up PATH and Systelcfg correctly. I am new to Ubuntu, I always used Windows and I cannot find straight forward simple instructions on how to set up path on terminal. I have tried many ways but obviously it is not right. I would appreciate if you could advise me on how to do it or point me into right direction. thank you.

Kind Regards!

Violet
The administrator has disabled public write access.

compile telemac on Ubuntu 11 years 6 months ago #8381

  • 716469
  • 716469's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 303
  • Thank you received: 6
HI Abernard,

please ignore my previous message. I found a mistake. I is compiling now. Fingers crosserd:)

Violet
The administrator has disabled public write access.

installation problem 11 years 6 months ago #8394

  • 716469
  • 716469's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 303
  • Thank you received: 6
Dear All,

just a quick question: do I need to save Compilation of Telemac in terminal, say nano? As in Windows one can compile many times if he wishes, just by typing compileTELEMAC.py and it runs, faster then first time. But in Ubuntu I have noticed that if you want to compile Telemac again in terminal then you need to type export PATH .... and export SYSTELCFG ... again and then compileTELEMAC.py works. I just wondered if compilation needs to be saved in Linux. Thanks.

Kind Regards!

Violet
The administrator has disabled public write access.

installation problem 11 years 6 months ago #8396

  • Lufia
  • Lufia's Avatar
What do you mean by saving the compilation?

I'm not an expert. But you can set the path by adding the following two lines in your .bashrc

export PATH=/home/username/v6p2/pytel:$PATH
export SYSTELCFG=/home/username/v6p2/config/systel.cis-my.cfg

The .bashrc is in your home directory.

Edit: You have to replace the path with that of your installation
The administrator has disabled public write access.

installation problem 11 years 6 months ago #8398

  • 716469
  • 716469's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 303
  • Thank you received: 6
Hi Lufia,

thanks for your response. I set up the directories, and they are there all the time, say if I type echo $Path and echo $SYSTELCFG then it is there permanently. But if I want to compileTELEMAC.py again in terminal then I need to type export ...... (as per user guide) again. I do not have to do it in Windows. Maybe it is nothing and I do not have to worry about trying to compile again as I managed to do it once. Just noticed the difference between windows and Ubuntu compilations and started to think if compilation in Ubuntu needs to be physically saved (if there are any options for this). thanks.

violet
The administrator has disabled public write access.

installation problem 11 years 6 months ago #8401

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

You don't need to compile the system several times. Maybe, you mean that your PATH and SYSTELCFG are not saved when you open a new session.

To set your path permanently, you need to edit your .bashrc
I'm not very experienced with ubuntu but it should work.

Note that your .bashrc is a hidden file
The administrator has disabled public write access.

installation problem 11 years 6 months ago #8405

  • 716469
  • 716469's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 303
  • Thank you received: 6
Hi Abernard,

thanks, I just checked, the path is on bashrc. Thanks for your reply.

Kind Regards!

Violet
The administrator has disabled public write access.

installation problem 11 years 6 months ago #8408

  • gourish
  • gourish's Avatar
Hi Voileta,

Sorry for my late response.
I use opensuse linux. In my case I have not set the path or the SYSTELCFG environment.

I use the following command to compile telemac
cd /home/user1/telemac/v6p2r1/bin

python ../pytel/compileTELEMAC.py -c susgfortrans -f ../config/systel.cis-opensuse.cfg

and to run a simulation case
python /home/user1/telemac/v6p2r1/pytel/runcode.py telemac2d -s t2d_bumpflu_v1p0.cas -f /home/user1/telemac/v6p2r1/config/systel.cis-opensuse.cfg -c susgfortrans

I suppose in ubuntu you will have to use the configuration file systel.cis-ubuntu.cfg and the configuration ubugfortrans for serial compilation and ubugfopenmpi for parallel compilation.

With best regards,
Gourish
The administrator has disabled public write access.
  • Page:
  • 1
  • 2
Moderators: borisb

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