Skip to content

Commit

Permalink
fix logic bug where elec den overwrites prot den in epc
Browse files Browse the repository at this point in the history
  • Loading branch information
aodongliu committed Apr 29, 2024
1 parent 232cdaa commit e40e739
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -438,8 +438,8 @@ void ReferenceReplicatedXCHostIntegrator<ValueType>::
// Prepare for kernal input
for (int32_t iPt = 0; iPt < npts; iPt++ ){
// Treat total erho as spin-up, treat total prho as spin down
protonic_den_eval[2*iPt] = is_rks ? den_eval[iPt] : (den_eval[2*iPt] + den_eval[2*iPt+1]);
protonic_den_eval[2*iPt+1] = protonic_den_eval[2*iPt] + protonic_den_eval[2*iPt+1];
protonic_den_eval[2*iPt] = is_rks ? den_eval[iPt] : (den_eval[2*iPt] + den_eval[2*iPt+1]);
}

// EPC Functional Evaluation (Calling ExchCXX Builtin Function)
Expand All @@ -457,7 +457,6 @@ void ReferenceReplicatedXCHostIntegrator<ValueType>::
protonic_den_eval[2*iPt] = protonic_den_eval[2*iPt+1];
protonic_den_eval[2*iPt] = 0.0;
}

} // End if(evalProtonic)
//----------------------End EPC functional Evaluation---------------------------------------

Expand Down

0 comments on commit e40e739

Please sign in to comment.