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

TOPIC: 2 version of telemac2d

2 version of telemac2d 10 years 9 months ago #11977

  • NHEILI
  • NHEILI's Avatar
hello
I want to work with 2 version but my second one use the old configuration.

In my .profile i add that
export SYSTELCFGDOT2=/home/nheili/DOT2/configs/systel.cfg
then in the python files:compileTELEMAC.py ,compactTELEMAC.py and configs.py i replace SYSTELCFG by SYSTELCFGDOT2
but it still use the old one
What can i do please
REGARDS
The administrator has disabled public write access.

2 version of telemac2d 10 years 9 months ago #11978

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

What I would recommend is that you create your own cfg file with the two configurations (one for each version) in the same cfg file. You can store the cfg file where ever you like and make sure SYSTELCFG points to it.

In your configuration file, you need to make sure the key root for each configuration points to the correct path (correct version). At the top of the configuration file you have to add your two configuration name (space delimited) in the key Configurations:

If you name one configuration va and the other vb, then when you run TELEMAC, all you need -c va or -c vb.

Hope this helps,

Sébastien.
The administrator has disabled public write access.

2 version of telemac2d 10 years 9 months ago #11987

  • NHEILI
  • NHEILI's Avatar
Thanks
I think i don't understand well how make the file it don't work.
Can you,kindly,see it?
Attachments:
The administrator has disabled public write access.

2 version of telemac2d 10 years 9 months ago #11988

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

you can try something like this (simplified a bit):
# _____                              _______________________________
# ____/ TELEMAC Project Definitions /______________________________/
#
[Configurations]
configs:    vdot1 vdot2
# _____                         ____________________________________
# ____/ general common options /___________________________________/
#
[general]
#
language:   2
modules:    update telemac2d
options:
#
cmd_obj: gfortran -c -O3 -fconvert=big-endian -frecord-marker=4 <mods> <incs> <f95name>
cmd_lib: ar cru <libname> <objs>
cmd_exe: gfortran -fconvert=big-endian -frecord-marker=4 -v -o <exename> <objs> <libs>
#
mods_all:   -I <config>
#
sfx_zip:    .gztar
sfx_lib:    .a
sfx_obj:    .o
sfx_mod:    .mod
sfx_exe:
#
val_root:   <root>/examples
val_rank:   all
# _____                     ________________________________________
# ____/ VDOT configuration /_______________________________________/
#
[vdot1]
#
root:      /home/nheili/v6p3r1
version:    v6p3
# _____                      _______________________________________
# ____/ VDOT2 configuration /______________________________________/
#
[vdot2]
#
root:      /home/nheili/DOT2
version:    v6p3
#

Hope this helps,
Sébastien.
The administrator has disabled public write access.

2 version of telemac2d 10 years 9 months ago #11989

  • sebourban
  • sebourban's Avatar
  • OFFLINE
  • Administrator
  • Principal Scientist
  • Posts: 814
  • Thank you received: 219
... an when you run, either do
telemac2d.py -c vdot1 -s CASFILE.cas

or
telemac2d.py -c vdot2 -s CASFILE.cas

Hope this is clear.
Sébastien.
The administrator has disabled public write access.

2 version of telemac2d 10 years 9 months ago #12000

  • NHEILI
  • NHEILI's Avatar
Hello
I exactly modify the configs file as you show me,when i run:
"telemac2d.py -s -t -c ubugfopenmpi -c vdot1 t2d_malpasset-small.cas"
but still don't work,this the error message:
" +> you may be using an inappropriate configuration: vdot1 +> or may be wishing for parallel mode while using scalar configuration
"
Regards
The administrator has disabled public write access.

2 version of telemac2d 10 years 9 months ago #12002

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

Like the error message says, the configuration you have is scalar (one processor) while you probably have the keyword PROCESSORS in your steering file set to a non-zero value.

Set that keyword to 0. Once your are comfortable with it, read on material on this site and forum for use of TELEMAC in parallel.

Hope this helps,
Sébastien.
The administrator has disabled public write access.

2 version of telemac2d 10 years 9 months ago #12004

  • NHEILI
  • NHEILI's Avatar
Hello
Thanks
But i really need each version run in the two mode.
How can i modify my configs file for that,please.

Regards
The administrator has disabled public write access.

2 version of telemac2d 10 years 9 months ago #12005

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

If you need your two version in two modes, you need to have 4 configurations in your configuration file.

But first, for the parallel configuration, you need to also have MPICH2 installed and know the location the METIS library.

Here how it would look like (you have to replace the path of C:\mpich2_64\bin\mpiexec.exe, /include:C:\mpich2_64\include, C:\opentelemac\lib\libmetis64b.lib and C:\mpich2_64\lib\fmpich2.lib in two of your configurations.

Hope this helps,
Sébastien.

# _____                              _______________________________
# ____/ TELEMAC Project Definitions /______________________________/
#
[Configurations]
configs:    vdot1 vdot2 vpar1 vpar2
# _____                         ____________________________________
# ____/ general common options /___________________________________/
#
[general]
#
language:   2
modules:    update telemac2d
options:
#
cmd_obj: gfortran -c -O3 -fconvert=big-endian -frecord-marker=4 <mods> <incs> <f95name>
cmd_lib: ar cru <libname> <objs>
cmd_exe: gfortran -fconvert=big-endian -frecord-marker=4 -v -o <exename> <objs> <libs>
#
mods_all:   -I <config>
#
sfx_zip:    .gztar
sfx_lib:    .a
sfx_obj:    .o
sfx_mod:    .mod
sfx_exe:
#
val_root:   <root>/examples
val_rank:   all
# _____                      _______________________________________
# ____/ VDOT1 configuration /______________________________________/
#
[vdot1]
#
root:      /home/nheili/v6p3r1
version:    v6p3
# _____                      _______________________________________
# ____/ VDOT2 configuration /______________________________________/
#
[vdot2]
#
root:      /home/nheili/DOT2
version:    v6p3
#
# _____                      _______________________________________
# ____/ VPAR1 configuration /______________________________________/
#
[vpar1]
#
root:      /home/nheili/v6p3r1
version:    v6p3
#options:    
#
par_cmdexec:   <config>/partel < PARTEL.PAR >> <partel.log>
#
mpi_cmdexec:   C:\mpich2_64\bin\mpiexec.exe -wdir <wdir> -n <ncsize> <exename>
mpi_hosts: 
#
cmd_obj: gfortran -c -O3 -fconvert=big-endian -frecord-marker=4 -DHAVE_MPI <mods> <incs> <f95name>
cmd_lib: ar cru <libname> <objs>
cmd_exe: gfortran -fconvert=big-endian -frecord-marker=4 -v -o <exename> <objs> <libs>
#
incs_parallel:      /include:C:\mpich2_64\include
libs_partel:        C:\opentelemac\lib\libmetis64b.lib
libs_all:           C:\mpich2_64\lib\fmpich2.lib
# _____                      _______________________________________
# ____/ VPAR2 configuration /______________________________________/
#
[vpar2]
#
root:      /home/nheili/DOT2
version:    v6p3
#
par_cmdexec:   <config>/partel < PARTEL.PAR >> <partel.log>
#
mpi_cmdexec:   C:\mpich2_64\bin\mpiexec.exe -wdir <wdir> -n <ncsize> <exename>
mpi_hosts: 
#
cmd_obj: gfortran -c -O3 -fconvert=big-endian -frecord-marker=4 -DHAVE_MPI <mods> <incs> <f95name>
cmd_lib: ar cru <libname> <objs>
cmd_exe: gfortran -fconvert=big-endian -frecord-marker=4 -v -o <exename> <objs> <libs>
#
incs_parallel:      /include:C:\mpich2_64\include
libs_partel:        C:\opentelemac\lib\libmetis64b.lib
libs_all:           C:\mpich2_64\lib\fmpich2.lib
The administrator has disabled public write access.
The following user(s) said Thank You: NHEILI

2 version of telemac2d 10 years 7 months ago #12557

  • NHEILI
  • NHEILI's Avatar
Hello
Conserning multiple versions of telemac i have a question
Did i add in my .bashrc the path of each scripts python like this:
# telemac$PATH
export PATH=$PATH:/home/nheili/telemac_version/DOT/scripts/python27/:/home/nheili/telemac_version/DOT2/scripts/python27/
export SYSTELCFG=/home/nheili/telemac_version/systel.cfg

Regards
The administrator has disabled public write access.
  • Page:
  • 1
  • 2
Moderators: pham

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