We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d227415 + 101b772 commit 490b46cCopy full SHA for 490b46c
2 files changed
.gitignore
@@ -1,5 +1,6 @@
1
2
build/*
3
+_codeql_build_dir/
4
5
Makefile
6
*.lo
expui/BiorthBasis.cc
@@ -1558,6 +1558,17 @@ namespace BasisClasses
1558
pnum = std::max<int>(1, pnum);
1559
tnum = std::max<int>(10, tnum);
1560
1561
+ // Validate bias parameter
1562
+ //
1563
+ if (!std::isfinite(bias)) {
1564
+ throw std::runtime_error("Cylindrical: 'bias' parameter must be finite");
1565
+ }
1566
+ if (bias <= 0.0) {
1567
+ std::ostringstream sout;
1568
+ sout << "Cylindrical: 'bias' parameter must be positive, got " << bias;
1569
+ throw std::runtime_error(sout.str());
1570
1571
+
1572
EmpCylSL::RMIN = rcylmin;
1573
EmpCylSL::RMAX = rcylmax;
1574
EmpCylSL::NUMX = ncylnx;
0 commit comments