error: M_PI not defined in ElmerGUI

Discussion about building and installing Elmer
Post Reply
ceanwang
Posts: 14
Joined: 20 Mar 2021, 02:09
Antispam: Yes

error: M_PI not defined in ElmerGUI

Post by ceanwang »

Hi,

Trying to compile egmesh.cpp and got an error saying M_PI is not defined.
https://github.com/ElmerCSC/elmerfem/bl ... .cpp#L2571

There is FM_PI used. It is defined in egdef.h which is included by egmesh.cpp:

Code: Select all

#ifndef FM_PI
#define FM_PI 3.1415926
#endif
But can't find M_PI defination.

Cheers

Cean
kevinarden
Posts: 1210
Joined: 25 Jan 2019, 01:28
Antispam: Yes

Re: error: M_PI not defined in ElmerGUI

Post by kevinarden »

It appears in a couple of equations where pi would make since, perhaps just a typo and it should be FM_PI. Just a guess, not an expert.
raback
Site Admin
Posts: 4173
Joined: 22 Aug 2009, 11:57
Antispam: Yes
Location: Espoo, Finland
Contact:

Re: error: M_PI not defined in ElmerGUI

Post by raback »

This has been fixed for a while.
Post Reply