Skip to content

Commit

Permalink
renaming
Browse files Browse the repository at this point in the history
  • Loading branch information
chrxh committed Sep 17, 2024
1 parent f6b831c commit 908a54d
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions source/EngineGpuKernels/CellFunctionProcessor.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ __inline__ __device__ void CellFunctionProcessor::resetFetchedActivities(Simulat
auto otherExecutionOrderNumber = cell->connections[i].cell->executionOrderNumber;
auto otherInputExecutionOrderNumber = cell->connections[i].cell->inputExecutionOrderNumber;
auto otherOutputBlocked = cell->connections[i].cell->outputBlocked;
bool flowToCell = !(cudaSimulationParameters.features.legacyModes && cudaSimulationParameters.legacyCellDirectionalConnection)
bool flowToCell = !(cudaSimulationParameters.features.legacyModes && cudaSimulationParameters.legacyCellDirectionalConnections)
? cell->inputExecutionOrderNumber == otherExecutionOrderNumber && !otherOutputBlocked
&& cell->executionOrderNumber > otherInputExecutionOrderNumber
: false;
Expand Down Expand Up @@ -135,7 +135,7 @@ __inline__ __device__ Activity CellFunctionProcessor::calcInputActivity(Cell* ce
if (connectedCell->outputBlocked || connectedCell->livingState != LivingState_Ready ) {
continue;
}
if (!(cudaSimulationParameters.features.legacyModes && cudaSimulationParameters.legacyCellDirectionalConnection) && connectedCell->inputExecutionOrderNumber == cell->executionOrderNumber
if (!(cudaSimulationParameters.features.legacyModes && cudaSimulationParameters.legacyCellDirectionalConnections) && connectedCell->inputExecutionOrderNumber == cell->executionOrderNumber
&& connectedCell->executionOrderNumber > cell->executionOrderNumber && !cell->outputBlocked) {
continue;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ void LegacyAuxiliaryDataParserService::activateParametersAndFeaturesForLegacyFil
if (programVersion.empty()) {
parameters.features.legacyModes = true;
parameters.legacyCellFunctionMuscleNoActivityReset = true;
parameters.legacyCellDirectionalConnection = true;
parameters.legacyCellDirectionalConnections = true;
}

//*******************
Expand Down
2 changes: 1 addition & 1 deletion source/EngineInterface/SimulationParameters.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,6 @@ bool SimulationParameters::operator==(SimulationParameters const& other) const
&& legacyCellFunctionMuscleMovementAngleFromSensor == other.legacyCellFunctionMuscleMovementAngleFromSensor
&& muscleMovementVisualization == other.muscleMovementVisualization
&& legacyCellFunctionMuscleNoActivityReset == other.legacyCellFunctionMuscleNoActivityReset
&& legacyCellDirectionalConnection == other.legacyCellDirectionalConnection
&& legacyCellDirectionalConnections == other.legacyCellDirectionalConnections
;
}
2 changes: 1 addition & 1 deletion source/EngineInterface/SimulationParameters.h
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ struct SimulationParameters

bool legacyCellFunctionMuscleMovementAngleFromSensor = false;
bool legacyCellFunctionMuscleNoActivityReset = false;
bool legacyCellDirectionalConnection = false;
bool legacyCellDirectionalConnections = false;

bool operator==(SimulationParameters const& other) const;
bool operator!=(SimulationParameters const& other) const { return !operator==(other); }
Expand Down
4 changes: 2 additions & 2 deletions source/Gui/SimulationParametersWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1596,9 +1596,9 @@ void _SimulationParametersWindow::processBase()
AlienImGui::CheckboxParameters()
.name("Allow bidirectional connections")
.textWidth(RightColumnWidth)
.defaultValue(origParameters.legacyCellDirectionalConnection)
.defaultValue(origParameters.legacyCellDirectionalConnections)
.tooltip("If activated, two connected cells can receive each other's input if the 'input execution number' matches."),
parameters.legacyCellDirectionalConnection);
parameters.legacyCellDirectionalConnections);
AlienImGui::EndTreeNode();
}
}
Expand Down

0 comments on commit 908a54d

Please sign in to comment.