|
18 | 18 | //
|
19 | 19 |
|
20 | 20 | #include <KohnShamDFTBaseOperator.h>
|
21 |
| -# include <KohnShamDFTOperatorKernels.h> |
| 21 | +#include <KohnShamDFTOperatorKernels.h> |
22 | 22 | #include <ExcDFTPlusU.h>
|
23 | 23 | #ifdef _OPENMP
|
24 | 24 | # include <omp.h>
|
@@ -697,19 +697,23 @@ namespace dftfe
|
697 | 697 | &pdecDensitySpinDown =
|
698 | 698 | cDataOut[xcRemainderOutputDataAttributes::pdeDensitySpinDown];
|
699 | 699 |
|
700 |
| - pdexDensitySpinUp.resize(nCellsPerBatch * totalLocallyOwnedCells, 0.0); |
701 |
| - pdecDensitySpinUp.resize(nCellsPerBatch * totalLocallyOwnedCells, 0.0); |
702 |
| - pdexDensitySpinDown.resize(nCellsPerBatch * totalLocallyOwnedCells, 0.0); |
703 |
| - pdecDensitySpinDown.resize(nCellsPerBatch * totalLocallyOwnedCells, 0.0); |
| 700 | + pdexDensitySpinUp.resize(numberQuadraturePointsPerCell * nCellsPerBatch, |
| 701 | + 0.0); |
| 702 | + pdecDensitySpinUp.resize(numberQuadraturePointsPerCell * nCellsPerBatch, |
| 703 | + 0.0); |
| 704 | + pdexDensitySpinDown.resize(numberQuadraturePointsPerCell * nCellsPerBatch, |
| 705 | + 0.0); |
| 706 | + pdecDensitySpinDown.resize(numberQuadraturePointsPerCell * nCellsPerBatch, |
| 707 | + 0.0); |
704 | 708 |
|
705 | 709 | if (isGGA)
|
706 | 710 | {
|
707 | 711 | xDataOut[xcRemainderOutputDataAttributes::pdeSigma] =
|
708 | 712 | dftfe::utils::MemoryStorage<double, dftfe::utils::MemorySpace::HOST>(
|
709 |
| - 3 * nCellsPerBatch * totalLocallyOwnedCells, 0.0); |
| 713 | + 3 * numberQuadraturePointsPerCell * nCellsPerBatch, 0.0); |
710 | 714 | cDataOut[xcRemainderOutputDataAttributes::pdeSigma] =
|
711 | 715 | dftfe::utils::MemoryStorage<double, dftfe::utils::MemorySpace::HOST>(
|
712 |
| - 3 * nCellsPerBatch * totalLocallyOwnedCells, 0.0); |
| 716 | + 3 * numberQuadraturePointsPerCell * nCellsPerBatch, 0.0); |
713 | 717 | }
|
714 | 718 | if (isTauMGGA)
|
715 | 719 | {
|
@@ -906,10 +910,10 @@ namespace dftfe
|
906 | 910 | offsetFactor = kPointIndex * totalLocallyOwnedCells *
|
907 | 911 | numberQuadraturePointsPerCell;
|
908 | 912 | #else
|
909 |
| - auto &d_halfKSquareTimesDerExcwithTauJxWHost = |
| 913 | + auto &d_halfKSquareTimesDerExcwithTauJxWHost = |
910 | 914 | d_halfKSquareTimesDerExcwithTauJxW[kPointIndex];
|
911 | 915 |
|
912 |
| - auto &d_derExcwithTauTimesinvJacKpointTimesJxWHost = |
| 916 | + auto &d_derExcwithTauTimesinvJacKpointTimesJxWHost = |
913 | 917 | d_derExcwithTauTimesinvJacKpointTimesJxW[kPointIndex];
|
914 | 918 | offsetFactor = 0;
|
915 | 919 |
|
|
0 commit comments