Closed mgjarrett closed 3 weeks ago
Hi @mgjarrett - I might be misremembering but I think that we need to handle the case where the original XS settings are a link to an external cross section file or files. In that case we might need to default to 0D. Maybe I am misrememberinf why I implemented it this way.
Hi @mgjarrett - I might be misremembering but I think that we need to handle the case where the original XS settings are a link to an external cross section file or files. In that case we might need to default to 0D. Maybe I am misrememberinf why I implemented it this way.
We shouldn't be trying to make a modified representative block based on a XS group that uses pregenerated cross sections. There is a warning logged in that situation:
No error is thrown, and you could even end up not getting the warning, depending on the arguments passed into _getModifiedReprBlocks
. Maybe we need stronger controls around this. I can't tell if the intention is actually to prevent the user from passing in pregenerated XS to this method, or just to warn and allow it anyway.
What is the change?
When the cross section group manager creates a new XS ID that is based on a previous XS ID within
CrossSectionGroupManager._getModifiedReprBlocks()
, the new settings will now be inherited from the settings for the original XS group.Why is the change being made?
Previously, a new XS ID would just be initialized with default cross section settings. Typically, when a user is creating a modified representative block with a new XS ID, they would want to keep the cross section settings from the original XS group.
Checklist
doc/release/0.X.rst
) are up-to-date with any important changes.doc
folder.pyproject.toml
.