@@ -241,7 +241,7 @@ ComplexDouble RankZeroOperator::dagger(const mrcpp::Coord<3> &r) const {
241
241
* is added upp with the corresponding coefficient.
242
242
*/
243
243
Orbital RankZeroOperator::operator ()(Orbital inp) {
244
- if (not mrcpp::mpi::my_orb (inp) ) return inp.paramCopy ();
244
+ if (inp. getNNodes (NUMBER::Total) == 0 ) return inp.paramCopy ();
245
245
246
246
RankZeroOperator &O = *this ;
247
247
std::vector<mrcpp::ComplexFunction> func_vec;
@@ -262,7 +262,7 @@ Orbital RankZeroOperator::operator()(Orbital inp) {
262
262
* NOT IMPLEMENTED
263
263
*/
264
264
Orbital RankZeroOperator::dagger (Orbital inp) {
265
- if (not mrcpp::mpi::my_orb (inp) ) return inp.paramCopy ();
265
+ if (inp. getNNodes (NUMBER::Total) == 0 ) return inp.paramCopy ();
266
266
267
267
RankZeroOperator &O = *this ;
268
268
std::vector<mrcpp::ComplexFunction> func_vec;
@@ -470,7 +470,7 @@ ComplexDouble RankZeroOperator::trace(const Nuclei &nucs) {
470
470
*/
471
471
Orbital RankZeroOperator::applyOperTerm (int n, Orbital inp) {
472
472
if (n >= this ->oper_exp .size ()) MSG_ABORT (" Invalid oper term" );
473
- if (not mrcpp::mpi::my_orb (inp) ) return inp.paramCopy ();
473
+ if (inp. getNNodes (NUMBER::Total) == 0 ) return inp.paramCopy ();
474
474
475
475
Orbital out = inp;
476
476
for (auto O_nm : this ->oper_exp [n]) {
@@ -482,7 +482,7 @@ Orbital RankZeroOperator::applyOperTerm(int n, Orbital inp) {
482
482
483
483
Orbital RankZeroOperator::daggerOperTerm (int n, Orbital inp) {
484
484
if (n >= this ->oper_exp .size ()) MSG_ABORT (" Invalid oper term" );
485
- if (not mrcpp::mpi::my_orb (inp) ) return inp.paramCopy ();
485
+ if (inp. getNNodes (NUMBER::Total) == 0 ) return inp.paramCopy ();
486
486
487
487
Orbital out = inp;
488
488
for (int i = this ->oper_exp [n].size () - 1 ; i >= 0 ; i--) {
0 commit comments