* method in this case is dim+1. The
* value of this parameter defaults to
* false, i.e. do not consider time.
- *
- * <b>use_degrees</b>. Parameter to
- * decide if the trigonometric functions
- * work in radians or degrees. The
- * default for this parameter is false,
- * i.e. use radians and not degrees.
*/
void initialize (const std::string &vars,
const std::vector<std::string> &expressions,
const ConstMap &constants,
- const bool time_dependent = false,
- const bool use_degrees = false);
+ const bool time_dependent = false);
+
+ /**
+ * Same as above, but with an additional parameter:
+ * <b>use_degrees</b>. Parameter to decide if the trigonometric functions
+ * work in radians or degrees. The default for this parameter is false,
+ * i.e. use radians and not degrees.
+ *
+ * @note: this function is deprecated. Use the function without this
+ * argument instead (which has the default use_degrees=false).
+ */
+ void initialize (const std::string &vars,
+ const std::vector<std::string> &expressions,
+ const ConstMap &constants,
+ const bool time_dependent,
+ const bool use_degrees) DEAL_II_DEPRECATED;
/**
const ConstMap &constants,
const ConstMap &units,
const bool time_dependent = false,
- const bool use_degrees = false);
+ const bool use_degrees = false) DEAL_II_DEPRECATED;
/**
* Initialize the function. Same as
void initialize (const std::string &vars,
const std::string &expression,
const ConstMap &constants,
- const bool time_dependent = false,
- const bool use_degrees = false);
-
+ const bool time_dependent = false);
+
+ /**
+ * Same as above, but with an additional parameter:
+ * <b>use_degrees</b>. Parameter to decide if the trigonometric functions
+ * work in radians or degrees. The default for this parameter is false,
+ * i.e. use radians and not degrees.
+ *
+ * @note: this function is deprecated. Use the function without this
+ * argument instead (which has the default use_degrees=false).
+ */
+ void initialize (const std::string &vars,
+ const std::string &expression,
+ const ConstMap &constants,
+ const bool time_dependent,
+ const bool use_degrees) DEAL_II_DEPRECATED;
/**
* Initialize the function. Same as
* above, but with <b>units</b>.
const ConstMap &constants,
const ConstMap &units,
const bool time_dependent = false,
- const bool use_degrees = false);
+ const bool use_degrees = false) DEAL_II_DEPRECATED;
/**
* A function that returns
use_degrees);
}
+template <int dim>
+void FunctionParser<dim>::initialize (const std::string &vars,
+ const std::vector<std::string> &expressions,
+ const std::map<std::string, double> &constants,
+ const bool time_dependent)
+ {
+ initialize(vars, expressions, constants, time_dependent, false);
+ }
+
+
+
#ifdef DEAL_II_WITH_MUPARSER
template <int dim>
void FunctionParser<dim>:: init_muparser() const
initialized = true;
}
+template <int dim>
+void FunctionParser<dim>::initialize (const std::string &vars,
+ const std::string &expression,
+ const std::map<std::string, double> &constants,
+ const bool time_dependent)
+{
+ initialize(vars, expression, constants, time_dependent, false);
+}
template <int dim>