kendrick icon indicating copy to clipboard operation
kendrick copied to clipboard

Do sum between models instead of using integrate

Open SergeStinckwich opened this issue 3 years ago • 0 comments

We should be able to do a tensorial sum between two models, two produce a new, not using integrate: that modify a model to add another one. This is not a good idea to modify a model that could be used somewhere else.

Current situation:

model := KEModel new.
concernA := KEModelPart new.
concernB := KEModelPart new.
model integrate: concernA.
model integrate: concernB.

What would be better to have:

model := KEModel new.
concernA := KEModelPart new.
concernB := KEModelPart new.
model + concernA + concernB

After removing integrate:, we could simplify KEPopulation, by removing reset method that is needed by the current situation.

SergeStinckwich avatar Mar 01 '21 07:03 SergeStinckwich