Skip to content

Commit

Permalink
bug correction in Tube::max_gate_diam()
Browse files Browse the repository at this point in the history
  • Loading branch information
bneveu committed Mar 25, 2022
1 parent ce50907 commit 0b950f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/domains/tube/codac_Tube.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -922,10 +922,10 @@ namespace codac
double Tube::max_gate_diam(double& t) const
{
const Slice *slice = first_slice();
t = slice->tdomain().lb();

if(slice->input_gate().is_unbounded())
{
t = slice->tdomain().lb();
return numeric_limits<double>::infinity();
}

Expand Down

0 comments on commit 0b950f4

Please sign in to comment.