Skip to content

Commit 04d7dff

Browse files
author
Martin D. Weinberg
committed
Fix accidentally swapped potential/density toggle for Spherical
1 parent accfb38 commit 04d7dff

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

expui/BiorthBasis.cc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4743,9 +4743,9 @@ namespace BasisClasses
47434743
double z = rr*costh;
47444744

47454745
if (potential)
4746-
get_pot (potd[tid], rr);
4747-
else
47484746
get_dens(potd[tid], rr);
4747+
else
4748+
get_pot (potd[tid], rr);
47494749

47504750
legendre_R(Lmax, costh, legs[tid]);
47514751

@@ -4826,6 +4826,7 @@ namespace BasisClasses
48264826

48274827
if (ximin<=-1.0) throw std::runtime_error("BiorthBasis::computeQuadrature: x<=-1");
48284828
if (ximax>= 1.0) throw std::runtime_error("BiorthBasis::computeQuadrature: x>=+1");
4829+
48294830
if (ximax<=-1.0) throw std::runtime_error("BiorthBasis::computeQuadrature: x<=-1");
48304831
if (ximax>= 1.0) throw std::runtime_error("BiorthBasis::computeQuadrature: x>=+1");
48314832

0 commit comments

Comments
 (0)