Page 1 of 1

error: M_PI not defined in ElmerGUI

Posted: 25 Mar 2021, 13:17
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

Re: error: M_PI not defined in ElmerGUI

Posted: 25 Mar 2021, 14:15
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.

Re: error: M_PI not defined in ElmerGUI

Posted: 20 Apr 2021, 00:22
by raback
This has been fixed for a while.