@@ -44,8 +44,8 @@ namespace dftfe
4444 * sphericalFUnction class shared pointer.
4545 */
4646 void
47- init (const std::vector<unsigned int > &atomicNumbers,
48- const std::map<std::pair<unsigned int , unsigned int >,
47+ init (const std::vector<dftfe::uInt > &atomicNumbers,
48+ const std::map<std::pair<dftfe::uInt, dftfe::uInt >,
4949 std::shared_ptr<AtomCenteredSphericalFunctionBase>>
5050 &listOfSphericalFunctions);
5151 /* *
@@ -59,12 +59,12 @@ namespace dftfe
5959 void
6060 initaliseCoordinates (const std::vector<double > &atomCoords,
6161 const std::vector<std::vector<double >> &periodicCoords,
62- const std::vector<int > &imageIds);
62+ const std::vector<dftfe::Int> &imageIds);
6363 /* *
6464 * @brief Returns the number of atoms present in domain
6565 * @return Returns size of atomicNumbers vector
6666 */
67- unsigned int
67+ dftfe::uInt
6868 getNumAtomCentersSize ();
6969
7070
@@ -78,7 +78,7 @@ namespace dftfe
7878 * @brief Returns the map of atomId vs vector of image coordinates
7979 * @return Returns d_periodicImageCoord
8080 */
81- const std::map<unsigned int , std::vector<double >> &
81+ const std::map<dftfe::uInt , std::vector<double >> &
8282 getPeriodicImageCoordinatesList () const ;
8383
8484 // This functions returns the number of spherical functions associated with
@@ -88,24 +88,24 @@ namespace dftfe
8888 * @brief Returns the he number of total spherical functions indexed by {ilm} associated with an atomic number. If the atomic number does not exist, it returns a zero.
8989 * @return d_numSphericalFunctions.find(atomicNumber)->size()
9090 */
91- unsigned int
92- getTotalNumberOfSphericalFunctionsPerAtom (unsigned int atomicNumber);
91+ dftfe::uInt
92+ getTotalNumberOfSphericalFunctionsPerAtom (dftfe::uInt atomicNumber);
9393
9494 /* *
9595 * @brief Returns the he number of radial spherical functions indexed by {i} associated with an atomic number. If the atomic number does not exist, it returns a zero.
9696 * @return d_numRadialSphericalFunctions.find(atomicNumber)->size()
9797 */
98- unsigned int
99- getTotalNumberOfRadialSphericalFunctionsPerAtom (unsigned int atomicNumber);
98+ dftfe::uInt
99+ getTotalNumberOfRadialSphericalFunctionsPerAtom (dftfe::uInt atomicNumber);
100100 /* *
101101 * @brief Returns the total number of total spherical functions indexed by {ilm} present in the current processor. If the atomic number does not exist, it returns a zero.
102102 */
103- unsigned int
103+ dftfe::uInt
104104 getTotalNumberOfSphericalFunctionsInCurrentProcessor ();
105105 /* *
106106 * @brief Returns the maximum number of total spherical functions indexed by {ilm} across all atom Types present in atomNumbers vector
107107 */
108- unsigned int
108+ dftfe::uInt
109109 getMaximumNumberOfSphericalFunctions ();
110110 /* *
111111 * @brief
@@ -121,39 +121,39 @@ namespace dftfe
121121 */
122122 void
123123 getTotalAtomsAndNonLocalElementsInCurrentProcessor (
124- unsigned int &totalAtomsInCurrentProcessor,
125- unsigned int &totalNonLocalElements,
126- std::vector<unsigned int > &numberCellsForEachAtom,
127- std::vector<unsigned int > &numberCellsAccumNonLocalAtoms,
128- std::vector<unsigned int > &iElemNonLocalToElemIndexMap);
124+ dftfe::uInt &totalAtomsInCurrentProcessor,
125+ dftfe::uInt &totalNonLocalElements,
126+ std::vector<dftfe::uInt > &numberCellsForEachAtom,
127+ std::vector<dftfe::uInt > &numberCellsAccumNonLocalAtoms,
128+ std::vector<dftfe::uInt > &iElemNonLocalToElemIndexMap);
129129
130130 /* *
131131 * @brief Returns the total number of total radial-spherical functions indexed by {i} present in atomicNumbers list.
132132 */
133- unsigned int
133+ dftfe::uInt
134134 getTotalNumberOfRadialSphericalFunctions ();
135135
136136 /* *
137137 * @brief Returns the shared_ptr of AtomCenteredSphericalFunctionBase associated with std::pair(atomic Number and lQuantumNo)
138138 */
139- const std::map<std::pair<unsigned int , unsigned int >,
139+ const std::map<std::pair<dftfe::uInt, dftfe::uInt >,
140140 std::shared_ptr<AtomCenteredSphericalFunctionBase>> &
141141 getSphericalFunctions () const ;
142142 /* *
143143 * @brief Returns the vector of size Natoms of all atoms in system
144144 */
145- const std::vector<unsigned int > &
145+ const std::vector<dftfe::uInt > &
146146 getAtomicNumbers () const ;
147147 /* *
148148 * @brief Returns the atomIds of atoms present in current processor
149149 */
150- const std::vector<unsigned int > &
150+ const std::vector<dftfe::uInt > &
151151 getAtomIdsInCurrentProcess () const ;
152152 /* *
153153 * @brief Returns the startIndex of spherical Function alpha associated with atomic number Znum
154154 */
155- const unsigned int
156- getTotalSphericalFunctionIndexStart (unsigned int Znum, unsigned int alpha);
155+ const dftfe::uInt
156+ getTotalSphericalFunctionIndexStart (dftfe::uInt Znum, dftfe::uInt alpha);
157157 // COmputes the sparsity Pattern for the compact support Fn
158158 // cutOffVal the max/min value to consider to be part of copact support
159159 // cutOffType = 0 based on Fn Value, cutOffType = 1 based on Distance from
@@ -165,40 +165,40 @@ namespace dftfe
165165 dftfe::basis::FEBasisOperations<NumberType,
166166 double ,
167167 dftfe::utils::MemorySpace::HOST>>
168- &basisOperationsPtr,
169- const unsigned int quadratureIndex,
170- const double cutOffVal = 1.0E-8 ,
171- const unsigned int cutOffType = 0 );
168+ &basisOperationsPtr,
169+ const dftfe::uInt quadratureIndex,
170+ const double cutOffVal = 1.0E-8 ,
171+ const dftfe::uInt cutOffType = 0 );
172172
173173
174- std::vector<std::vector<unsigned int >> d_elementIndexesInAtomCompactSupport;
174+ std::vector<std::vector<dftfe::uInt >> d_elementIndexesInAtomCompactSupport;
175175 void
176- setImageCoordinates (const std::vector<int > &imageIds,
176+ setImageCoordinates (const std::vector<dftfe::Int> &imageIds,
177177 const std::vector<std::vector<double >> &periodicCoords);
178178
179179
180180
181- const std::vector<int > &
182- getAtomIdsInElement (unsigned int iElem);
181+ const std::vector<dftfe::Int > &
182+ getAtomIdsInElement (dftfe::uInt iElem);
183183
184- const std::map<unsigned int , std::vector<int >> &
184+ const std::map<dftfe::uInt , std::vector<dftfe::Int >> &
185185 getSparsityPattern ();
186186
187187 bool
188- atomSupportInElement (unsigned int iElem);
188+ atomSupportInElement (dftfe::uInt iElem);
189189
190190 void
191191 getDataForSparseStructure (
192- const std::map<unsigned int , std::vector<int >> &sparsityPattern,
192+ const std::map<dftfe::uInt , std::vector<dftfe::Int >> &sparsityPattern,
193193 const std::vector<std::vector<dealii::CellId>>
194194 &elementIdsInAtomCompactSupport,
195- const std::vector<std::vector<unsigned int >>
196- &elementIndexesInAtomCompactSupport,
197- const std::vector<unsigned int > &atomIdsInCurrentProcess,
198- unsigned int numberElements);
195+ const std::vector<std::vector<dftfe::uInt >>
196+ &elementIndexesInAtomCompactSupport,
197+ const std::vector<dftfe::uInt > &atomIdsInCurrentProcess,
198+ dftfe::uInt numberElements);
199199
200- const unsigned int
201- getOffsetLocation (const unsigned int iAtom);
200+ const dftfe::uInt
201+ getOffsetLocation (const dftfe::uInt iAtom);
202202
203203 private:
204204 // A flattened vector that stores the coordinates of the atoms of interest
@@ -210,37 +210,37 @@ namespace dftfe
210210 // A vector of size = number of atoms of interest
211211 // the Ith atom in d_atomicNumbers has its coordinates
212212 // in d_atomCoords[3*I+0], d_atomCoords[3*I+1], d_atomCoords[3*I+2]
213- std::vector<unsigned int > d_atomicNumbers;
213+ std::vector<dftfe::uInt > d_atomicNumbers;
214214
215215 // This maps the atom I in the unit cell to all its image atoms.
216216 // number of image atoms of Ith atom = d_periodicImageCoord[I].size()/ dim
217217 // with dim=3 The coordinates are stored as a flattened vector
218- std::map<unsigned int , std::vector<double >> d_periodicImageCoord;
218+ std::map<dftfe::uInt , std::vector<double >> d_periodicImageCoord;
219219
220220
221221 // This maps, from std::pair<atomic number, \alpha> to S_{z,\alpha},
222222 // where \alpha is the index for unique radial function
223- std::map<std::pair<unsigned int , unsigned int >,
223+ std::map<std::pair<dftfe::uInt, dftfe::uInt >,
224224 std::shared_ptr<AtomCenteredSphericalFunctionBase>>
225225 d_sphericalFunctionsContainer;
226226 // Stores the number of distinct Radial Functions for a particular AtomType
227- std::map<unsigned int , unsigned int > d_numRadialSphericalFunctions;
227+ std::map<dftfe::uInt, dftfe::uInt > d_numRadialSphericalFunctions;
228228 // Stores the number of distinct Functions include m for a particular
229229 // AtomType
230- std::map<unsigned int , unsigned int > d_numSphericalFunctions;
230+ std::map<dftfe::uInt, dftfe::uInt > d_numSphericalFunctions;
231231 // This maps is between atomId in unit cell and the sparsity pattern of the
232232 // atom and its images in the unitcell domain.
233- std::map<unsigned int , std::vector<int >> d_sparsityPattern;
233+ std::map<dftfe::uInt , std::vector<dftfe::Int >> d_sparsityPattern;
234234 //
235235 std::vector<std::vector<dealii::CellId>> d_elementIdsInAtomCompactSupport;
236- // std::vector<std::vector<unsigned int >>
236+ // std::vector<std::vector<dftfe::uInt >>
237237 // d_elementIndexesInAtomCompactSupport;
238238 std::vector<std::vector<dealii::DoFHandler<3 >::active_cell_iterator>>
239- d_elementOneFieldIteratorsInAtomCompactSupport;
240- std::vector<unsigned int > d_AtomIdsInCurrentProcess;
241- std::vector<unsigned int > d_offsetLocation;
242- std::vector<std::vector<int >> d_AtomIdsInElement;
243- std::map<unsigned int , std::vector<unsigned int >>
239+ d_elementOneFieldIteratorsInAtomCompactSupport;
240+ std::vector<dftfe::uInt > d_AtomIdsInCurrentProcess;
241+ std::vector<dftfe::uInt > d_offsetLocation;
242+ std::vector<std::vector<dftfe::Int >> d_AtomIdsInElement;
243+ std::map<dftfe::uInt , std::vector<dftfe::uInt >>
244244 d_totalSphericalFunctionIndexStart;
245245
246246 }; // end of class AtomCenteredSphericalFunctionContainerBase
0 commit comments