Skip to content
Commit 7aa77d91 authored by Christoph Schwering's avatar Christoph Schwering
Browse files

Fixed: Setup::Units::Resize(n) is well-defined for n = 0.

This is relevant for the last Grounder::Ply. We create the shallow copy
for the setup first and then minimize the setup, which could increase
Setup::Units::n_orig_ > 0, whereas ShallowCopy::n_units_ = 0.

In general, one should call ShallowCopy::Minimize() instead of
Setup::Minimize(), and ShallowCopy::Minimize() doesn't
Setup::Units::SealOriginalUnits(). In the special case of a ShallowCopy
of an empty setup, however, Setup::Minimize() should be a safe call and
now is.
parent b9f39667
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment