Skip to content

Commit 31ede6e

Browse files
author
Martin D. Weinberg
committed
Added a 'cylheight' parameter whose sole function is to multiply itself by 2 and set 'hcyl'
1 parent bdb502d commit 31ede6e

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

expui/BiorthBasis.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -874,6 +874,7 @@ namespace BasisClasses
874874
"rcylmax",
875875
"acyl",
876876
"hcyl",
877+
"cylheight",
877878
"snr",
878879
"evcut",
879880
"nmaxfid",
@@ -1130,6 +1131,7 @@ namespace BasisClasses
11301131

11311132
if (conf["acyl" ]) acyl = conf["acyl" ].as<double>();
11321133
if (conf["hcyl" ]) hcyl = conf["hcyl" ].as<double>();
1134+
if (conf["cylheight" ]) hcyl = conf["cylheight" ].as<double>()*2;
11331135
if (conf["lmaxfid" ]) lmaxfid = conf["lmaxfid" ].as<int>();
11341136
if (conf["nmaxfid" ]) nmaxfid = conf["nmaxfid" ].as<int>();
11351137
if (conf["nmax" ]) nmax = conf["nmax" ].as<int>();

src/Cylinder.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ Cylinder::valid_keys = {
2929
"rcylmax",
3030
"acyl",
3131
"hcyl",
32+
"cylheight",
3233
"hexp",
3334
"snr",
3435
"evcut",
@@ -414,6 +415,7 @@ void Cylinder::initialize()
414415

415416
if (conf["acyl" ]) acyl = conf["acyl" ].as<double>();
416417
if (conf["hcyl" ]) hcyl = conf["hcyl" ].as<double>();
418+
if (conf["cylheight" ]) hcyl = conf["cylheight" ].as<double>()*2;
417419
if (conf["hexp" ]) hexp = conf["hexp" ].as<double>();
418420
if (conf["snr" ]) snr = conf["snr" ].as<double>();
419421
if (conf["evcut" ]) rem = conf["evcut" ].as<double>();

0 commit comments

Comments
 (0)