cyclus/core — Issue #4: Switch model copying paradigm
Author: rwcarlsen
Created: 2012-01-31 20:00:47+00:00
State: open

Change from this:

```
...
old_model...
...
Model* new_model = model_creator();
new_model->copyFresh(old_model);
```

To this:

```
...
old_model...
...
Model* new_model = old_model.clone();
```

I remember my investigation into this several weeks ago revealed this sort of change to be more difficult than at first glance. If I remember correctly, the difficulty was primarily due to the inheritance coupling of the current model copying paradigm. There was a fair amount of discussion on this in 2 separate cyclus-dev googlegroup topics:

https://groups.google.com/d/topic/cyclus-dev/3F8fkSMtqtI/discussion

and

https://groups.google.com/d/topic/cyclus-dev/SuDmt4hv9w8/discussion