@@ -163,6 +163,10 @@ namespace BasisClasses
163163
164164 // ! Clear the particle selector callback
165165 void clrSelector () { ftor = nullptr ; }
166+
167+ // ! Evaluate acceleration in Cartesian coordinates in centered
168+ // ! coordinate system
169+ virtual std::vector<double > getAccel (double x, double y, double z) = 0;
166170 };
167171
168172 /* *
@@ -303,10 +307,14 @@ namespace BasisClasses
303307 {
304308 auto [ret, worst, lworst] = orthoCompute (orthoCheck (knots));
305309 // For the CTest log
306- std::cout << " ---- Spherical::orthoTest: worst=" << worst << std::endl;
310+ if (myid==0 )
311+ std::cout << " ---- Spherical::orthoTest: worst=" << worst << std::endl;
307312 return ret;
308313 }
309314
315+ // ! Evaluate acceleration in Cartesian coordinates in centered
316+ // ! coordinate system
317+ virtual std::vector<double > getAccel (double x, double y, double z);
310318 };
311319
312320 /* *
@@ -538,10 +546,15 @@ namespace BasisClasses
538546 {
539547 auto [ret, worst, lworst] = orthoCompute (orthoCheck ());
540548 // For the CTest log
541- std::cout << " ---- FlatDisk::orthoTest: worst=" << worst << std::endl;
549+ if (myid==0 )
550+ std::cout << " ---- FlatDisk::orthoTest: worst=" << worst << std::endl;
542551 return ret;
543552 }
544553
554+ // ! Evaluate acceleration in Cartesian coordinates in centered
555+ // ! coordinate system
556+ std::vector<double > getAccel (double x, double y, double z);
557+
545558 };
546559
547560 /* *
@@ -689,10 +702,15 @@ namespace BasisClasses
689702 {
690703 auto [ret, worst, lworst] = orthoCompute (orthoCheck ());
691704 // For the CTest log
692- std::cout << " CBDisk::orthoTest: worst=" << worst << std::endl;
705+ if (myid==0 )
706+ std::cout << " CBDisk::orthoTest: worst=" << worst << std::endl;
693707 return ret;
694708 }
695709
710+ // ! Evaluate acceleration in Cartesian coordinates in centered
711+ // ! coordinate system
712+ std::vector<double > getAccel (double x, double y, double z);
713+
696714 };
697715
698716 /* *
@@ -718,7 +736,7 @@ namespace BasisClasses
718736 int rnum, pnum, tnum;
719737 double rmin, rmax, rcylmin, rcylmax;
720738 double acyl, hcyl;
721- bool expcond, logarithmic, density, EVEN_M;
739+ bool expcond, logarithmic, density, EVEN_M, sech2 = false ;
722740
723741 std::vector<Eigen::MatrixXd> potd, dpot, dpt2, dend;
724742 std::vector<Eigen::MatrixXd> legs, dlegs, d2legs;
@@ -842,9 +860,15 @@ namespace BasisClasses
842860 {
843861 auto [ret, worst, lworst] = orthoCompute (sl->orthoCheck ());
844862 // For the CTest log
845- std::cout << " ---- Cylindrical::orthoTest: worst=" << worst << std::endl;
863+ if (myid==0 )
864+ std::cout << " ---- Cylindrical::orthoTest: worst=" << worst << std::endl;
846865 return ret;
847866 }
867+
868+ // ! Evaluate acceleration in Cartesian coordinates in centered
869+ // ! coordinate system
870+ std::vector<double > getAccel (double x, double y, double z);
871+
848872 };
849873
850874 /* *
@@ -985,12 +1009,18 @@ namespace BasisClasses
9851009 }
9861010 }
9871011 }
988-
1012+
1013+ if (myid==0 )
9891014 std::cout << " ---- Slab::orthoTest: worst=" << worst << std::endl;
1015+
9901016 if (worst > __EXP__::orthoTol) return false ;
9911017 return true ;
9921018 }
9931019
1020+ // ! Evaluate acceleration in Cartesian coordinates in centered
1021+ // ! coordinate system
1022+ std::vector<double > getAccel (double x, double y, double z);
1023+
9941024 };
9951025
9961026 /* *
@@ -1108,11 +1138,17 @@ namespace BasisClasses
11081138 }
11091139 }
11101140
1111- std::cout << " ---- Cube::orthoTest: worst=" << worst << std::endl;
1141+ if (myid==0 )
1142+ std::cout << " ---- Cube::orthoTest: worst=" << worst << std::endl;
1143+
11121144 if (worst > __EXP__::orthoTol) return false ;
11131145 return true ;
11141146 }
11151147
1148+ // ! Evaluate acceleration in Cartesian coordinates in centered
1149+ // ! coordinate system
1150+ std::vector<double > getAccel (double x, double y, double z);
1151+
11161152 };
11171153
11181154
0 commit comments