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

TOPIC: Can't open included file 'mpif.h' + error with parallel systel file

Can't open included file 'mpif.h' + error with parallel systel file 3 years 5 months ago #38600

  • Karla
  • Karla's Avatar
Hi,

I am a new user of the software. I was successful at compiling the first time and when trying to run one of the examples I got an error message (attached as error_running.txt), then I tried to run compile_telemac.py --clean but I got the following error (errorcompilation.txt).
I tried to follow as much as possible the instructions given in older posts but I am stuck at this point.

As an alternative, I tried to compile telemac with the systel_parallel_v8p2.cfg file. I did that by modifying the shortcut configuration:
C:\Windows\System32\cmd.exe /E:ON /V:ON /K set SYSTELCFG=C:\opentelemac-mascaret\v8p2\configs\systel_v8p2.cfg && PATH=C:\opentelemac-mascaret\v8p2\scripts\python3;!PATH!
If I am mistaken with this step I would be glad if somebody can correct me.

Anyway, running compile_telemac.py with the systel_parallel file gave me this new error (error_parallel.txt)

I tried to find out the solution but I couldn't make it.

I hope somebody has encountered the same problem(s) and eventually the solution.

Regards,
Karla
The administrator has disabled public write access.

Can't open included file 'mpif.h' + error with parallel systel file 3 years 5 months ago #38602

  • c.coulet
  • c.coulet's Avatar
  • OFFLINE
  • Moderator
  • Posts: 3722
  • Thank you received: 1031
Hi
Many problems in the way you're working with telemac.
Some of them are quite clear in the error message...

Error_parallel.txt just indicate you have 2 times a keyword in your config file...
wingfors in a configuration for sequential and you have -DHAVE_MPI which is required for parallel computation but you doesn't add the include and library for parallel...

It's good to try with given instructions comming from the forum but you should first try to understand how the configuration works.

Try to start again from the original configuration and don't mix parallel and sequential configuration

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

Can't open included file 'mpif.h' + error with parallel systel file 3 years 5 months ago #38603

  • Karla
  • Karla's Avatar
Hi c.coulet,

Thank you for your response. You are right and I appreciate the feedback.
First, I attempted to remove the little piece of code that was duplicated but still I got an error.

Then following your advice, I took the template which is in the svn repository, replace its name and continued with the configurations....but when running compile_telemac.py I got this new error.

I have the same result if I type compile_telemac.py --clean

Many thanks in advance.

Karla
Attachments:
The administrator has disabled public write access.

Can't open included file 'mpif.h' + error with parallel systel file 3 years 5 months ago #38610

  • c.coulet
  • c.coulet's Avatar
  • OFFLINE
  • Moderator
  • Posts: 3722
  • Thank you received: 1031
-cpp is missing in the compilation line...
The line should be :
cmd_obj:    gfortran -c -O3 -fopenmp -cpp -fconvert=big-endian -frecord-marker=4 <mods> <incs> <f95name>
Christophe
The administrator has disabled public write access.
The following user(s) said Thank You: Karla

Can't open included file 'mpif.h' + error with parallel systel file 3 years 5 months ago #38622

  • Karla
  • Karla's Avatar
Hi again,

I included the -cpp in every line which has the key cmd_obj. But now I have this error: ifort.exe is not recognized….I saw other posts, they recommended 1)check if gfortran is installed and 2) add -DHAVE_MPI in cmd_obj, which is what I’ve done.

I checked that gfortran is installed. I added it even in the path of the environment variables configuration (c:\msys64\mingw64\bin).

As a side question, I have been trying to compile many times to surpass a new error message that appeared. Should I use compile_telemac.py --clean for these cases?.

Thank you and regards.
Karla
Attachments:
The administrator has disabled public write access.

Can't open included file 'mpif.h' + error with parallel systel file 3 years 5 months ago #38624

  • PMV
  • PMV's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 149
  • Thank you received: 42
Hi,

you are compiling win7gfors, win7gfordbg and win7teldbg, as specified in the 5th line of your config file:
«configs: win7gfors win7gforsdbg win7telsdbg»

Your text error is only concerning the win7teldbg configuration. Remove win7teldbg from line 5 and all should be fine, actually you should already have win7gfors and win7gforsdbg in the builds folder and able to run simulations.

Patrick
The administrator has disabled public write access.
The following user(s) said Thank You: Karla

Can't open included file 'mpif.h' + error with parallel systel file 3 years 5 months ago #38636

  • Karla
  • Karla's Avatar
Hello Patrick,

First, thank you so much, finally, I'm able to run the examples; this literally made my day.

If you don't mind, I would like to ask what are the differences between win7gfors, win7gfordbg and win7teldbg. Now that I understand the solution, I'd like to know what are the implications of not having win7telsdbg in the file.

Regards,
Karla
The administrator has disabled public write access.

Can't open included file 'mpif.h' + error with parallel systel file 3 years 5 months ago #38637

  • PMV
  • PMV's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 149
  • Thank you received: 42
Good to hear it works.

Different configuration use different compilers the dbg are debug option that provide more output for programmers (or if you change code yourself).

Cheers,

Patrick
The administrator has disabled public write access.

Can't open included file 'mpif.h' + error with parallel systel file 3 years 5 months ago #38654

  • juansuarez88
  • juansuarez88's Avatar
Hello
Good morning everyone.

I am compiling, but I get the same error that many have. (Error: Can't open included file 'mpif.h'). However and tried to modify the text file as in some recommendations of this forum including -cpp, even with the (compileTELEMAC.py --clean). but it does not work.

I am using the v7p2r1 version

I look forward to your valuable help. Thanks
Attachments:
The administrator has disabled public write access.

Can't open included file 'mpif.h' + error with parallel systel file 3 years 4 months ago #38798

  • Li Guiyi
  • Li Guiyi's Avatar
Hi,
I wonder if your problem has been solved yet? I am installing parallel version of TELEMAC-2D. There are some problems in the interpretation, please refer to the attachment.I hope to get some answers.
Thanks
All the best

File Attachment:

File Name: systel_v7p2r3_parallel_2021-07-09.cfg
File Size: 1 KB


File Attachment:

File Name: error-message.txt
File Size: 2 KB

l.txt[/attachment]
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.