Welcome, Guest
Username: Password: Remember me

TOPIC: Segmentation fault in Fortran compiler "if (.not.checkFmt( fmt)) then

Segmentation fault in Fortran compiler "if (.not.checkFmt( fmt)) then 6 years 3 weeks ago #31869

  • preeti123
  • preeti123's Avatar
I have downloaded all the files of telemac v7p2 using automatic installer in my window PC. Then I tried to compile "compileTELEMAC.py" on command window. I faced a problem at "if (.not.checkFmt( fmt)) then" line 413 of

Source file: mascaret/Fox/fsys/fox_m_fsys_format.F90

I have also attached the error page in error.png. The fortran compiler is gcc 8.1.0.


Can anyone help me out that how to solve this problem.

Thanks

Regards
Preeti
Attachments:
The administrator has disabled public write access.

Segmentation fault in Fortran compiler "if (.not.checkFmt( fmt)) then 6 years 3 weeks ago #31873

  • yugi
  • yugi's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 851
  • Thank you received: 244
Hi,

First I would suggest downloading a more recent version of Telemac-Mascaret (v7p3r1).

Your issue is that the option -cpp is missing from your configuration file (systel.....cfg) in cmd_obj.
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.
The following user(s) said Thank You: preeti123

Segmentation fault in Fortran compiler "if (.not.checkFmt( fmt)) then 6 years 3 weeks ago #31874

  • preeti123
  • preeti123's Avatar
Thank You Yugi!

Can I fix this error in systel..cfg?
The administrator has disabled public write access.

Segmentation fault in Fortran compiler "if (.not.checkFmt( fmt)) then 6 years 3 weeks ago #31876

  • yugi
  • yugi's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 851
  • Thank you received: 244
Ye you can add it yourself and run compileTELEMAC.py --clean that should solve thing.
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.

Segmentation fault in Fortran compiler "if (.not.checkFmt( fmt)) then 6 years 3 weeks ago #31877

  • preeti123
  • preeti123's Avatar
Hi Guru!

To add "option -cpp" in systel.cfg file, I have to download c++ compiler and add a command into systel.cfg. Can you help me how the command should look like?

can you show some light that how I should edit systel.cfg.

Next I have downloaded the latest verion of telemac v7p3r1. Now, I am facing a problem with NESTOR interface while I compile the compileTELEMAC.py. I have attached the error.png. Kindly help me with it.

Thanks!

Regards
Preeti
Attachments:
The administrator has disabled public write access.

Segmentation fault in Fortran compiler "if (.not.checkFmt( fmt)) then 6 years 3 weeks ago #31878

  • yugi
  • yugi's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 851
  • Thank you received: 244
You do not need the c++ compiler.
The issue with v7p3r1 is the same.

You can edit the cfg by opening it with a text editor.

You can post your systel.cfg file here and I'll show you what to change.

It should be something like that:

[your-config]
...
cmd_obj: gfortran ... ...
...

And you add -cpp after gfortran
...
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.
The following user(s) said Thank You: preeti123

Segmentation fault in Fortran compiler "if (.not.checkFmt( fmt)) then 6 years 2 weeks ago #31882

  • preeti123
  • preeti123's Avatar
Hi Guru,

Thank you. I have attached the systel.cfg file.

Here is the content:

# _____ _______________________________
# ____/ TELEMAC Project Definitions /______________________________/
#
[Configurations]
configs: win7gfors win7gforsdbg win7telsdbg
# win7tels win7gfors
# _____ ________________________________________
# ____/ windows 7 generals /_______________________________________/
[general]
#
root: D:\Coastal_zone_study\Soft\New_folder\Telemac\v7p2r3
version: v7p3
language: 2
modules: update system
options: parallel mpi
#
sfx_zip: .zip
sfx_lib: .lib
sfx_mod: .mod
sfx_exe: .exe
#
val_root: <root>\examples
val_rank: all
# also possible val_rank: <3 >7 6
#
# _____ ____________________________________
# ____/ windows 7 intel scalar /___________________________________/
[win7tels]
#
cmd_obj: ifort.exe /c /Ot /iface:cref /iface:nomixed_str_len_arg /nologo /fpp /names:uppercase /convert:big_endian <mods> <incs> <f95name>
cmd_lib: xilib.exe /nologo /out:<libname> <objs>
cmd_exe: xilink.exe /nologo /subsystem:console /stack:536870912 /out:<exename> <objs> <libs>
#
mods_all: /include:<config>
#
sfx_obj: .obj
#
# _____ ____________________________________
# ____/ windows 7 intel scalar debug /___________________________________/
[win7telsdbg]
#
cmd_obj: ifort.exe /c /debug:full /iface:cref /iface:nomixed_str_len_arg /nologo /fpp /names:uppercase /convert:big_endian <mods> <incs> <f95name>
cmd_lib: xilib.exe /nologo /out:<libname> <objs>
cmd_exe: xilink.exe /nologo /subsystem:console /stack:536870912 /out:<exename> <objs> <libs>
#
mods_all: /include:<config>
#
sfx_obj: .obj
#
# _____ _________________________________
# ____/ windows 7 gfortran scalar /________________________________/
[win7gfors]
#
cmd_obj: gfortran -c -O3 -fopenmp -fconvert=big-endian -frecord-marker=4 <mods> <incs> <f95name>
cmd_lib: ar cru <libname> <objs>
cmd_exe: gfortran -fopenmp -fconvert=big-endian -frecord-marker=4 -v -lm -o <exename> <objs> <libs>
#
mods_all: -I <config>
libs_all: <root>\..\lib\XDMF\XdmfUtils.a /usr/lib/libfmpich.so
incs_parallel: -I/usr/include/mpich2
libs_parallel: /usr/lib/metis-4.0/libmetis.a
#
sfx_obj: .o
#
# _____ _________________________________
# ____/ windows 7 gfortran scalar debug /________________________________/
[win7gforsdbg]
#
cmd_obj: gfortran -c -O3 -fopenmp -fconvert=big-endian -frecord-marker=4 <mods> <incs> <f95name>
cmd_lib: ar cru <libname> <objs>
cmd_exe: gfortran -fopenmp -fconvert=big-endian -frecord-marker=4 -v -lm -o <exename> <objs> <libs>
#
mods_all: -I <config>
#
sfx_obj: .o
#

Attachments:
The administrator has disabled public write access.

Segmentation fault in Fortran compiler "if (.not.checkFmt( fmt)) then 6 years 2 weeks ago #31884

  • yugi
  • yugi's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 851
  • Thank you received: 244
Two questions:
- Can your give me the return of running config.py
- You do not seem to be compiling a parallel version of Telemac is that your intention ?
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.

Segmentation fault in Fortran compiler "if (.not.checkFmt( fmt)) then 6 years 1 week ago #31962

  • preeti123
  • preeti123's Avatar
Hello Guru,

I am attaching here my config.py file. Secondly, I didn't understand about the parallel version of Telemac.

Bascially, I have downloaded all the files froma PC having internet and now I am trying to install it on my offline PC (not having internet).

Regards
Preeti
Attachments:
The administrator has disabled public write access.

Segmentation fault in Fortran compiler "if (.not.checkFmt( fmt)) then 6 years 1 week ago #31963

  • yugi
  • yugi's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 851
  • Thank you received: 244
Want i wanted was the result of the execution of config.py.
Not the script itself.

And by parallel i mean the ability to run telemac on multiple cores which speed up execution a lot.
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.
The following user(s) said Thank You: preeti123
Moderators: borisb

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