This PR introduces a new type of set of fields, which must be defined and initialized when creating a new element. Closes issue #47. It is now well-known that the use of Dict{String,AbstractField}, where fields are dynamically defined during the simulation, leads to type instability problems. Problem is solved by having two kinds of fields in the element, let's call them sfields and dfields, where the dfields is the old implementation and sfields is the new one.
This PR introduces a new type of set of fields, which must be defined and initialized when creating a new element. Closes issue #47. It is now well-known that the use of
Dict{String,AbstractField}
, where fields are dynamically defined during the simulation, leads to type instability problems. Problem is solved by having two kinds of fields in the element, let's call themsfields
anddfields
, where thedfields
is the old implementation andsfields
is the new one.