<h3>Specific improvements</h3>
<ol>
+ <li>
+ Fixed: The ParameterHandler::declare_entry() did not check that the
+ default value of a parameter indeed satisfies the pattern given for this
+ parameter (despite a statement in the documentation that this checking
+ would happen). This is now fixed.
+ <br>
+ (Wolfgang Bangerth, 2013/08/21)
+ </li>
+
<li>
New: Patterns::List and Patterns::Map now accept a string
different than the default comma that denotes the separator
const Patterns::PatternBase &pattern,
const std::string &documentation)
{
+ Assert (pattern.match (default_value),
+ ExcMessage (std::string("The default value <") +
+ default_value +
+ "> for the entry <" +
+ entry +
+ "> does not match the given pattern " +
+ pattern.description()));
+
entries->put (get_current_full_path(entry) + path_separator + "value",
default_value);
entries->put (get_current_full_path(entry) + path_separator + "default_value",
void check (const char *p)
{
ParameterHandler prm;
- prm.declare_entry ("test_13", "-1:a, 0:b, 1:c",
+ prm.declare_entry ("test_13", "-1:a xyz 0:b xyz 1:c",
Patterns::Map(Patterns::Integer(-1,1),
Patterns::Selection("a|b|c"),
2,3, "xyz"));
void check (const char *p)
{
ParameterHandler prm;
- prm.declare_entry ("test_1", "-1,0",
+ prm.declare_entry ("test_1", "-1 xyz 0",
Patterns::List(Patterns::Integer(-1,1),2,3,"xyz"));
std::ifstream in(p);
-DEAL::test_1=-1,0
+DEAL::test_1=1 xyz 0 xyz 1
-set test_1 = 1,0,1xyz1,0,-1
+set test_1 = 1 xyz 0 xyz 1