Welcome, Guest
Username: Password: Remember me

TOPIC: Compilation

Compilation 8 years 3 months ago #23457

  • smk.svks
  • smk.svks's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 93
  • Thank you received: 1
Hi Yugi,

Same error again :(
The administrator has disabled public write access.

Compilation 8 years 3 months ago #23458

  • yugi
  • yugi's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 851
  • Thank you received: 244
Could post what ls in that folder (/home/administrator/opentelemac/v7p1r1/builds/ubugfmpich2/lib/utils/special/) returns.
There are 10 types of people in the world: those who understand binary, and those who don't.
The administrator has disabled public write access.

Compilation 8 years 3 months ago #23466

  • smk.svks
  • smk.svks's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 93
  • Thank you received: 1
Seems it is an empty folder :ohmy:
The administrator has disabled public write access.

Compilation 8 years 3 months ago #23474

  • yugi
  • yugi's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 851
  • Thank you received: 244
Okay it looks like the compilation is not working properly.

Can you try adding the option -v to both cmd_exe and cmd_obj.

And rerun compileTELEMAC.py --clean and post the result here.
There are 10 types of people in the world: those who understand binary, and those who don't.
The administrator has disabled public write access.

Compilation 8 years 3 months ago #23475

  • smk.svks
  • smk.svks's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 93
  • Thank you received: 1
Hello,

-v is there in cmd_exe and I don't find cmd_obj from the file u sent.!!
Attachments:
The administrator has disabled public write access.

Compilation 8 years 3 months ago #23476

  • yugi
  • yugi's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 851
  • Thank you received: 244
And that is the problem you seemed to have removed the entire line that is why is not doing anything.

Here is what you should have:
# _____                              _______________________________
# ____/ TELEMAC Project Definitions /______________________________/
#
[Configurations]
configs:    ubugfmpich2
#
#
# _____          ___________________________________________________
# ____/ GENERAL /__________________________________________________/
[general]
modules: system
#
#
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
# also possible val_rank:   <3 >7 6
#
# _____                         ____________________________________
# ____/ Ubuntu gfortran mpich2 /___________________________________/
[ubugfmpich2]
#
brief: parallel mode, using mpiexec directly (of the MPICH2 package).
       The only difference with the scalar versions (optimised) is the presence
       of the key mpi_cmdexec and the -DHAVE_MPI compilation directive.
       Of course, you also need the key par_cmdexec.
       Finally, note that this configuration also works whether
       processor is 0 or 1.
#
mpi_cmdexec:   mpiexec -wdir <wdir> -n <ncsize> <exename>
#
cmd_obj:    mpif90 -v -c -O3 -fbacktrace -finit-real=nan -DHAVE_MPI -fconvert=big-endian -frecord-marker=4 <mods> <incs> <f95name>
cmd_lib:    ar cru <libname> <objs>
cmd_exe:    mpif90 -fconvert=big-endian -frecord-marker=4 -v -lm -o <exename> <objs>  <libs>

#
libs_partel:        <root>/optionals/metis-5.1.0/libmetis/libmetis.a
libs_all:           -lstdc++ 
#

That should work.
There are 10 types of people in the world: those who understand binary, and those who don't.
The administrator has disabled public write access.

Compilation 8 years 3 months ago #23477

  • smk.svks
  • smk.svks's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 93
  • Thank you received: 1
Hello Yugi,

I guess it is done without any error. So was it compiled all the modules?

Or should I give Update system in the .cfg file instead of system?
Because the example file is not running!!
Attachments:
The administrator has disabled public write access.

Compilation 8 years 3 months ago #23479

  • josekdiaz
  • josekdiaz's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 161
  • Thank you received: 48
Dear Sathish,

You do not have the "telemac2d.py" nor "runcode.py" in your path system variable, that's the reason behind the "Command not found".

To fix this, add the "python27" telemac folder to the path system variable (in the env system file or in your bashrc, or similar depending your distro).Another solution would be that any time you open a new terminal add it:
export PATH="/your/telemac/root-folder/scripts/python27":$PATH

And then run your simulation.

Regards,

José D.
The administrator has disabled public write access.

Compilation 8 years 3 months ago #23480

  • smk.svks
  • smk.svks's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 93
  • Thank you received: 1
Hello Jose,

Thanks. Actually, I did add the path then systel path too. Then it was not working, so when I was trying with Yugi suggestion I did open the new terminal that time it shows Systel not found so I did set it again.

Is that everytime you open a new cmd terminal we have to set path for both (python and systel)?

or am I missing something to fix it permanently?
The administrator has disabled public write access.

Compilation 8 years 3 months ago #23482

  • josekdiaz
  • josekdiaz's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 161
  • Thank you received: 48
Dear Sathish,

In that workflow, the "export [variable]" needs to be executed for each new terminal (for both cfg file and the python scripts folder path).

To fix it permanently add the complete statement "export "[path]":$PATH and SYSTELCFG=[path of cfg] to your bashrc file , which is commonly located under the home directory for that specific user or using root privileges to /etc/environment file if you want a global solution.

In this post there is a more step-by-step process.In any case, be careful when editing those files!

Regards,

José D.
The administrator has disabled public write access.
Moderators: borisb

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