Skip to content

Commit c3cba29

Browse files
fix enum default; clean up deprecations
1 parent 0896666 commit c3cba29

5 files changed

Lines changed: 12 additions & 10 deletions

File tree

expui/BiorthBasis.H

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -969,7 +969,7 @@ namespace BasisClasses
969969
int ncylodd, ncylnx, ncylny, ncylr, cmap, cmapR, cmapZ, vflag;
970970
int rnum, pnum, tnum;
971971
double rcylmin, rcylmax, acyl, hcyl;
972-
bool expcond, logarithmic, density, EVEN_M, sech2 = false;
972+
bool expcond, logarithmic, density, EVEN_M, sech2 = true;
973973

974974
std::vector<Eigen::MatrixXd> potd, dpot, dpt2, dend;
975975
std::vector<Eigen::MatrixXd> legs, dlegs, d2legs;

expui/BiorthBasis.cc

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1658,10 +1658,12 @@ namespace BasisClasses
16581658
case DiskType::doubleexpon:
16591659
case DiskType::exponential:
16601660
case DiskType::diskbulge:
1661+
std::cout << "---- pyEXP assumes sech^2(z/(2h)) by default in v7.9.0 and later" << std::endl
1662+
<< "---- Use the 'sech2: true' in your YAML config to use sech^2(z/(2h))" << std::endl
1663+
<< "---- This warning will be removed in v7.10.0." << std::endl;
1664+
break;
16611665
default:
1662-
std::cout << "---- pyEXP uses sech^2(z/h) rather than the more common sech^2(z/(2h))" << std::endl
1663-
<< "---- Use the 'sech2: true' in your YAML config to use sech^2(z/(2h))" << std::endl
1664-
<< "---- pyEXP will assume sech^2(z/(2h)) by default in v 7.9.0 and later" << std::endl;
1666+
break;
16651667
}
16661668
}
16671669
}

exputil/EmpCylSL.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ EmpCylSL::EmpCylSL(int mlim, std::string cachename)
267267
if (myid==0)
268268
std::cout << "---- EmpCylSL::ReadH5Cache: "
269269
<< "using a workaround for a HighFive HDF5 wrapper bug. "
270-
<< "this workaround will be removed in EXP 7.9.0. "
270+
<< "this workaround will be removed in EXP 7.10.0. "
271271
<< "Please consider rebuilding your cache if possible!"
272272
<< std::endl;
273273
}
@@ -7502,7 +7502,7 @@ bool EmpCylSL::ReadH5Cache()
75027502
if (myid==0)
75037503
std::cout << "---- EmpCylSL::ReadH5Cache: "
75047504
<< "using a workaround for a HighFive HDF5 wrapper bug. "
7505-
<< "this workaround will be removed in EXP 7.9.0. "
7505+
<< "this workaround will be removed in EXP 7.10.0. "
75067506
<< "Please consider rebuilding your cache if possible!" << std::endl;
75077507
}
75087508
else {

src/Cylinder.H

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ class Cylinder : public Basis
127127
{
128128
private:
129129

130-
bool precond, EVEN_M, subsamp, sech2 = false;
130+
bool precond, EVEN_M, subsamp, sech2 = true;
131131
int rnum, pnum, tnum;
132132
double ashift;
133133
unsigned int vflag;

src/Cylinder.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -461,9 +461,9 @@ void Cylinder::initialize()
461461
// Deprecation warning
462462
if (not sech2 and not conf["pyname"]) {
463463
if (myid==0)
464-
std::cout << "---- Cylinder uses sech^2(z/h) rather than the more common sech^2(z/(2h))" << std::endl
465-
<< "---- Use the 'sech2: true' in your YAML config to use sech^2(z/(2h))" << std::endl
466-
<< "---- Cylinder will assume sech^2(z/(2h)) by default in v 7.9.0 and later" << std::endl;
464+
std::cout << "---- Cylinder assumes sech^2(z/(2h)) by default in v7.9.0 and later" << std::endl
465+
<< "---- Use the 'sech2: true' in your YAML config to use sech^2(z/(2h))" << std::endl
466+
<< "---- This warning will be removed in v7.10.0." << std::endl;
467467
}
468468

469469
// Deprecation warning

0 commit comments

Comments
 (0)