Unexpected behaviour for Parameter assignment
Bug #1071820 reported by
Felix Ospald
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
DOLFIN |
New
|
Undecided
|
Unassigned |
Bug Description
Parameters p;
p.add("prop1", 1);
p.add("prop2", 2);
p["prop1"] = p["prop2"] = 88;
std::cout << p["prop1"
gives "1 88".
There is no copy-construcor or assignment operator defined for Parameter class. e.g.
/// Assignment from Parameter
virtual const Parameter& operator= (const Parameter& value);
is missing.
To post a comment you must log in.
Stumbled today again over this problem.
solver1- >parameters[ "relative_ tolerance" ] = solver2- >parameters[ "relative_ tolerance" ] ;
did not have the desired effect.
solver1- >parameters[ "relative_ tolerance" ] = (double) solver2- >parameters[ "relative_ tolerance" ] ;
works.