Skip to content

Commit 7939bca

Browse files
sawenzelclaude
andcommitted
Do not cache external-kinematics generators in the primary server
This fixes the generator cache of the o2-sim primary server so that it skips external kinematics, as its comment intends. - The condition `!= "extkin" || != "extkinO2"` is always true, so extkin generators were cached too. - A service-mode reconfiguration with a new kinematics file then reused the old generator and file. - The condition now uses `&&`. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent f595dcc commit 7939bca

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎run/O2PrimaryServerDevice.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ class O2PrimaryServerDevice final : public fair::mq::Device
108108
// Not using cached instances for external kinematics since these might change input filenames etc.
109109
// and are in any case quickly setup.
110110
mPrimGen = nullptr;
111-
if (conf.getGenerator().compare("extkin") != 0 || conf.getGenerator().compare("extkinO2") != 0) {
111+
if (conf.getGenerator().compare("extkin") != 0 && conf.getGenerator().compare("extkinO2") != 0) {
112112
auto iter = mPrimGeneratorCache.find(conf.getGenerator());
113113
if (iter != mPrimGeneratorCache.end()) {
114114
mPrimGen = iter->second.get();

0 commit comments

Comments
 (0)