Skip to content
This repository was archived by the owner on May 18, 2019. It is now read-only.

Commit f350041

Browse files
adrpoOpenModelica-Hudson
authored andcommitted
fix MacOS builds
Belonging to [master]: - #2987
1 parent 570e9f0 commit f350041

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

SimulationRuntime/c/dataReconciliation/dataReconciliation.cpp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,13 @@
4545
#include <math.h>
4646
#include <ctime>
4747
#include "omc_config.h"
48+
49+
/* adrpo: MacOS has issues with this, remove it! */
50+
#if !defined(__APPLE__)
4851
#include <boost/math/distributions/chi_squared.hpp>
4952
using boost::math::chi_squared;
53+
#endif
54+
5055
#include "dataReconciliation.h"
5156

5257
extern "C"
@@ -1005,7 +1010,12 @@ int RunReconciliation(DATA* data, threadData_t *threadData, inputData x, matrixD
10051010
myfile << "<tr> \n" << "<th align=right> Final Converged Value(J*/r) : </th> \n" << "<td>" << value << "</td> </tr>\n";
10061011
myfile << "<tr> \n" << "<th align=right> Epsilon : </th> \n" << "<td>" << eps << "</td> </tr>\n";
10071012
myfile << "<tr> \n" << "<th align=right> Final Value of the objective Function (J*) : </th> \n" << "<td>" << (value*data->modelData->nSetcVars) << "</td> </tr>\n";
1013+
/* adrpo: MacOS has issues with this, remove it! */
1014+
#if !defined(__APPLE__)
10081015
myfile << "<tr> \n" << "<th align=right> Chi-square value : </th> \n" << "<td>" << quantile(complement(chi_squared(data->modelData->nSetcVars), 0.05)) << "</td> </tr>\n";
1016+
#else
1017+
myfile << "<tr> \n" << "<th align=right> Chi-square value : </th> \n" << "<td> not avaliable on MacOS </td> </tr>\n";
1018+
#endif
10091019
myfile << "<tr> \n" << "<th align=right> Result of Global Test : </th> \n" << "<td>" << "TRUE" << "</td> </tr>\n";
10101020
myfile << "</table>\n";
10111021

0 commit comments

Comments
 (0)