|
16 | 16 | #include <thread> |
17 | 17 | #include <exp_thread.h> |
18 | 18 | #include <EXPException.H> |
| 19 | +#include <exputils.H> |
19 | 20 |
|
20 | 21 | #include <Eigen/Eigenvalues> |
21 | 22 |
|
@@ -391,6 +392,8 @@ void EmpCylSL::reset(int numr, int lmax, int mmax, int nord, |
391 | 392 | ortho = std::make_shared<SLGridSph>(make_sl(), LMAX, NMAX, NUMR, |
392 | 393 | RMIN, RMAX*0.99, false, 1, 1.0); |
393 | 394 |
|
| 395 | + orthoTest(ortho->orthoCheck(std::max<int>(NMAX*50, 200)), "EmpCylSL[SLGridSph]", "l"); |
| 396 | + |
394 | 397 | // Resize (should not be necessary) but just in case some future |
395 | 398 | // feature changes mulitstep on the fly |
396 | 399 | // |
@@ -868,6 +871,8 @@ int EmpCylSL::read_eof_file(const string& eof_file) |
868 | 871 | ortho = std::make_shared<SLGridSph>(make_sl(), LMAX, NMAX, NUMR, |
869 | 872 | RMIN, RMAX*0.99, false, 1, 1.0); |
870 | 873 |
|
| 874 | + orthoTest(ortho->orthoCheck(std::max<int>(NMAX*50, 200)), "EmpCylSL[SLGridSph]", "l"); |
| 875 | + |
871 | 876 | setup_eof(); |
872 | 877 | setup_accumulation(); |
873 | 878 |
|
@@ -1434,10 +1439,13 @@ void EmpCylSL::compute_eof_grid(int request_id, int m) |
1434 | 1439 | { |
1435 | 1440 | // Check for existence of ortho and create if necessary |
1436 | 1441 | // |
1437 | | - if (not ortho) |
| 1442 | + if (not ortho) { |
1438 | 1443 | ortho = std::make_shared<SLGridSph>(make_sl(), LMAX, NMAX, NUMR, |
1439 | 1444 | RMIN, RMAX*0.99, false, 1, 1.0); |
1440 | 1445 |
|
| 1446 | + orthoTest(ortho->orthoCheck(std::max<int>(NMAX*50, 200)), "EmpCylSL[SLGridSph]", "l"); |
| 1447 | + } |
| 1448 | + |
1441 | 1449 |
|
1442 | 1450 | // Read in coefficient matrix or |
1443 | 1451 | // make grid if needed |
@@ -1613,11 +1621,14 @@ void EmpCylSL::compute_even_odd(int request_id, int m) |
1613 | 1621 | { |
1614 | 1622 | // check for ortho |
1615 | 1623 | // |
1616 | | - if (not ortho) |
| 1624 | + if (not ortho) { |
1617 | 1625 | ortho = std::make_shared<SLGridSph>(make_sl(), |
1618 | 1626 | LMAX, NMAX, NUMR, RMIN, RMAX*0.99, |
1619 | 1627 | false, 1, 1.0); |
1620 | 1628 |
|
| 1629 | + orthoTest(ortho->orthoCheck(std::max<int>(NMAX*50, 200)), "EmpCylSL[SLGridSph]", "l"); |
| 1630 | + } |
| 1631 | + |
1621 | 1632 | double dens, potl, potr, pott; |
1622 | 1633 |
|
1623 | 1634 | int icnt, off; |
@@ -2293,9 +2304,14 @@ void EmpCylSL::generate_eof(int numr, int nump, int numt, |
2293 | 2304 |
|
2294 | 2305 | // Create spherical orthogonal basis if necessary |
2295 | 2306 | // |
2296 | | - if (not ortho) |
| 2307 | + if (not ortho) { |
2297 | 2308 | ortho = std::make_shared<SLGridSph>(make_sl(), LMAX, NMAX, NUMR, |
2298 | 2309 | RMIN, RMAX*0.99, false, 1, 1.0); |
| 2310 | + |
| 2311 | + orthoTest(ortho->orthoCheck(std::max<int>(NMAX*50, 200)), "EmpCylSL[SLGridSph]", "l"); |
| 2312 | + } |
| 2313 | + |
| 2314 | + |
2299 | 2315 | // Initialize fixed variables and storage |
2300 | 2316 | // |
2301 | 2317 | setup_eof(); |
@@ -2585,9 +2601,13 @@ void EmpCylSL::generate_eof(int numr, int nump, int numt, |
2585 | 2601 | void EmpCylSL::accumulate_eof(double r, double z, double phi, double mass, |
2586 | 2602 | int id, int mlevel) |
2587 | 2603 | { |
2588 | | - if (not ortho) |
| 2604 | + if (not ortho) { |
2589 | 2605 | ortho = std::make_shared<SLGridSph> |
2590 | 2606 | (make_sl(), LMAX, NMAX, NUMR, RMIN, RMAX*0.99, false, 1, 1.0); |
| 2607 | + |
| 2608 | + orthoTest(ortho->orthoCheck(std::max<int>(NMAX*50, 200)), "EmpCylSL[SLGridSph]", "l"); |
| 2609 | + } |
| 2610 | + |
2591 | 2611 | if (eof_made) { |
2592 | 2612 | if (VFLAG & 2) |
2593 | 2613 | cerr << "accumulate_eof: Process " << setw(4) << myid << ", Thread " |
|
0 commit comments