| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent e52d37c commit ad43f63
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -255,7 +255,7 @@ void ConstraintBase::Generate(IdList<Param,hParam> *l) { | |||
| 255 | 255 | size_t eqpos = expression.find_first_of("="); | |
| 256 | 256 | ssassert(eqpos == expression.find_last_of("="), "There is at most one equals sign in the relation \"expression\""); | |
| 257 | 257 | ssassert(eqpos != std::string::npos, "There is at least one equals sign in the relation \"expression\""); | |
| 258 | - Expr::From(expression.substr(0, eqpos), false, &SK.param, NULL)->Minus(Expr::From(expression.substr(eqpos+1, SIZE_MAX), false, &SK.param, NULL)); | ||
| 258 | + Expr::From(expression.substr(0, eqpos), false, l, NULL)->Minus(Expr::From(expression.substr(eqpos+1, SIZE_MAX), false, l, NULL)); | ||
| 259 | 259 | } else if(expression != "" && expr_scaling_to_base != 0) { | |
| 260 | 260 | Expr::From(expression.c_str(), false, l, NULL)->Times(Expr::From(std::to_string(expr_scaling_to_base).c_str(), false, l, NULL)); | |
| 261 | 261 | } else if(expression != "") { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -425,7 +425,7 @@ SolveResult System::Solve(Group *g, int *rank, int *dof, List<hConstraint> *bad, | |||
| 425 | 425 | int x; | |
| 426 | 426 | dbp("%d equations", eq.n); | |
| 427 | 427 | for(x = 0; x < eq.n; x++) { | |
| 428 | - dbp(" %.3f = %s = 0", eq[x].e->Eval(), eq[x].e->Print()); | ||
| 428 | + dbp(" %.3f = %s = 0", eq[x].e->Eval(), eq[x].e->Print().c_str()); | ||
| 429 | 429 | } | |
| 430 | 430 | dbp("%d parameters", param.n); | |
| 431 | 431 | for(x = 0; x < param.n; x++) { | |
| Back | FazBrowse Home | New Git URL |
0 commit comments