numeric: make sure that LC_NUMERIC is set to en_US for function parser
Signed-off-by: Thorsten Liebig <Thorsten.Liebig@gmx.de>pull/95/head
parent
d4448fa294
commit
d260025a6d
|
@ -228,6 +228,7 @@ void Excitation::CalcCustomExcitation(double f0, int nTS, string signal)
|
|||
delete[] Signal_curr;
|
||||
Signal_volt = new FDTD_FLOAT[Length];
|
||||
Signal_curr = new FDTD_FLOAT[Length];
|
||||
std::setlocale(LC_NUMERIC, "en_US.UTF-8");
|
||||
FunctionParser fParse;
|
||||
fParse.AddConstant("pi", 3.14159265358979323846);
|
||||
fParse.AddConstant("e", 2.71828182845904523536);
|
||||
|
|
|
@ -25,6 +25,7 @@ using namespace std;
|
|||
|
||||
Operator_Ext_UPML::Operator_Ext_UPML(Operator* op) : Operator_Extension(op)
|
||||
{
|
||||
std::setlocale(LC_NUMERIC, "en_US.UTF-8");
|
||||
m_GradingFunction = new FunctionParser();
|
||||
//default grading function
|
||||
SetGradingFunction(" -log(1e-6)*log(2.5)/(2*dl*Z*(pow(2.5,W/dl)-1)) * pow(2.5, D/dl) ");
|
||||
|
|
|
@ -38,6 +38,7 @@ using namespace std;
|
|||
|
||||
nf2ff::nf2ff(vector<float> freq, vector<float> theta, vector<float> phi, vector<float> center, unsigned int numThreads)
|
||||
{
|
||||
std::setlocale(LC_NUMERIC, "en_US.UTF-8");
|
||||
m_freq = freq;
|
||||
|
||||
m_numTheta = theta.size();
|
||||
|
|
|
@ -64,6 +64,7 @@ double CalcDiffTime(timeval t1, timeval t2)
|
|||
|
||||
openEMS::openEMS()
|
||||
{
|
||||
std::setlocale(LC_NUMERIC, "en_US.UTF-8");
|
||||
FDTD_Op=NULL;
|
||||
FDTD_Eng=NULL;
|
||||
Eng_Ext_SSD=NULL;
|
||||
|
|
Loading…
Reference in New Issue