std::vector<double> coeffs(n_mon);
for (unsigned int i = 0; i < n_mon; ++i)
- coeffs[i] = std::pow(-1,i)*(i+1);
+ coeffs[i] = std::pow(-1.0,i)*(i+1);
Functions::Polynomial<dim> poly(exponents, coeffs);
#include <limits>
#include <typeinfo>
+// replace type names found on MAC OS
+std::string cleanup_type(std::string &in)
+{
+ std::string ret = in;
+ ret = Utilities::replace_in_string(ret, "NSt3__17complexIfEE", "St7complexIfE");
+ ret = Utilities::replace_in_string(ret, "NSt3__17complexIdEE", "St7complexIdE");
+ return ret;
+}
+
template <typename number>
void check (const number &x)
{
- deallog << "typeid(x).name() = " << typeid(x).name()
+ deallog << "typeid(x).name() = "
+ << cleanup_type(typeid(x).name())
<< std::endl;
deallog << "typeid(NumberTraits<number>::real_type).name() = "
std::string unify_pretty_function (const std::string &text)
{
std::string t=text;
- t=Utilities::replace_in_string(t, " &", "& ");
+ t=Utilities::replace_in_string(t, " &", " & ");
t=Utilities::replace_in_string(t, " & ,", "&,");
+ t=Utilities::replace_in_string(t, " & )", "&)");
t=Utilities::replace_in_string(t, " & ", "& ");
t=Utilities::replace_in_string(t, "virtual ", "");
return t;