mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
BUG: sample: avoid double registration
This commit is contained in:
@ -132,6 +132,11 @@ int main(int argc, char *argv[])
|
||||
)
|
||||
);
|
||||
|
||||
// Note: both IOsampledSets and IOsampledSurfaces read the
|
||||
// same dictionary. Unregister one to make sure no duplicates
|
||||
// trying to register
|
||||
sSetsPtr().checkOut();
|
||||
|
||||
sSurfsPtr.reset
|
||||
(
|
||||
new IOsampledSurfaces
|
||||
@ -160,6 +165,8 @@ int main(int argc, char *argv[])
|
||||
)
|
||||
);
|
||||
|
||||
sSetsPtr().checkOut();
|
||||
|
||||
sSurfsPtr.reset
|
||||
(
|
||||
new IOsampledSurfaces
|
||||
|
||||
Reference in New Issue
Block a user