Skip to content

Commit

Permalink
Added else if block for CorrelatorType::linear to set its limits.
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Zhen Ning Yong committed Apr 30, 2020
1 parent e944f9c commit bb4e9e1
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions physics/2pt-fit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,14 @@ int main(int argc, char *argv[])
globMin.setLowLimit(p + 1, -10.*fabs(init(p + 1)));
globMin.setHighLimit(p + 1, 10.*fabs(init(p + 1)));
}
else if(modelPar.type == CorrelatorType::linear)
{
globMin.setLowLimit(p, -10.*fabs(init(p)));
locMin.setLowLimit(p, -10.*fabs(init(p)));
globMin.setHighLimit(p, 10.*init(p));
globMin.setLowLimit(p + 1, -10.*fabs(init(p + 1)));
globMin.setHighLimit(p + 1, 10.*fabs(init(p + 1)));
}
else
{
globMin.setLowLimit(p, -10*fabs(init(p)));
Expand Down

0 comments on commit bb4e9e1

Please sign in to comment.