FEM field maps
- Decouple the container holding the coordinates of each node from the containers holding the (weighting) potentials at each node. Weighting potentials are now stored as a map with the electrode identifiers as the key.
- Reduce code duplication (use the same function for reading electrostatic potentials and weighting potentials).
- Pass array of node coordinates instead of reference to the element object to
Coordinates...
andJacobian...
functions. - Some other minor changes to
ComponentComsol
(use local variable instead of class member for the temporary container holding all nodes; const correctness; checkres[0].dis > MaxNodeDistance
after checking forres.empty()
; ...).