mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[solver] Ignore empty equation when resolving systems
This commit is contained in:
@@ -24,21 +24,6 @@ Function * FunctionStore::activeFunctionAtIndex(int i) {
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
Function * FunctionStore::definedFunctionAtIndex(int i) {
|
||||
assert(i>=0 && i<m_numberOfModels);
|
||||
int index = 0;
|
||||
for (int k = 0; k < m_numberOfModels; k++) {
|
||||
if (modelAtIndex(k)->isDefined()) {
|
||||
if (i == index) {
|
||||
return modelAtIndex(k);
|
||||
}
|
||||
index++;
|
||||
}
|
||||
}
|
||||
assert(false);
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
int FunctionStore::numberOfActiveFunctions() {
|
||||
int result = 0;
|
||||
for (int i = 0; i < m_numberOfModels; i++) {
|
||||
@@ -50,16 +35,6 @@ int FunctionStore::numberOfActiveFunctions() {
|
||||
return result;
|
||||
}
|
||||
|
||||
int FunctionStore::numberOfDefinedFunctions() {
|
||||
int result = 0;
|
||||
for (int i = 0; i < m_numberOfModels; i++) {
|
||||
if (modelAtIndex(i)->isDefined()) {
|
||||
result++;
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
template<typename T>
|
||||
T FunctionStore::firstAvailableAttribute(T attributes[], AttributeGetter<T> attribute) {
|
||||
for (int k = 0; k < maxNumberOfModels(); k++) {
|
||||
|
||||
Reference in New Issue
Block a user