Skip to content

Commit 68849c6

Browse files
committed
Fix return of parameter registration functions
1 parent b4ff5d0 commit 68849c6

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/libcadet/model/parts/ParticleDiffusionOperatorDG.cpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2357,10 +2357,10 @@ namespace parts
23572357
if (multiplexTypeParameterValue(pId, hashString("PAR_POROSITY"), _singleParPorosity, _parPorosity, value, nullptr))
23582358
return true;
23592359

2360-
2361-
23622360
if (model::setParameter(pId, value, _parDepSurfDiffusion, _singleParDepSurfDiffusion))
23632361
return true;
2362+
2363+
return false;
23642364
}
23652365

23662366
bool ParticleDiffusionOperatorDG::setParameter(const ParameterId& pId, int value)
@@ -2389,10 +2389,10 @@ namespace parts
23892389
if (multiplexTypeParameterValue(pId, hashString("PAR_POROSITY"), _singleParPorosity, _parPorosity, value, &sensParams))
23902390
return true;
23912391

2392-
2393-
23942392
if (model::setSensitiveParameterValue(pId, value, sensParams, _parDepSurfDiffusion, _singleParDepSurfDiffusion))
23952393
return true;
2394+
2395+
return false;
23962396
}
23972397

23982398
bool ParticleDiffusionOperatorDG::setSensitiveParameter(std::unordered_set<active*>& sensParams, const ParameterId& pId, unsigned int adDirection, double adValue)
@@ -2433,6 +2433,7 @@ namespace parts
24332433
return true;
24342434
}
24352435

2436+
return false;
24362437
}
24372438

24382439

0 commit comments

Comments
 (0)