Skip to content

Commit c20c318

Browse files
committed
Merge branch 'publicGithubDevelop' into release1.0
Conflicts: Doxyfile doc/manual/manual.tex utils/dftParameters.cc
2 parents 7ed34a1 + 862ba45 commit c20c318

File tree

78 files changed

+568
-568
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

78 files changed

+568
-568
lines changed

.github/workflows/documentation.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: documentation
2+
3+
# Controls when the action will run. Triggers the workflow on push or pull request
4+
# events but only for the master branch
5+
on:
6+
push:
7+
branches: [ publicGithubDevelop ]
8+
9+
jobs:
10+
build-documentation:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v2
15+
- name: config
16+
run: |
17+
git config --global init.defaultBranch publicGithubDevelop
18+
19+
# Build the HTML documentation
20+
- name: Doxygen Action
21+
uses: mattnotmitt/doxygen-action@v1.1.0
22+
with:
23+
doxyfile-path: ./Doxyfile
24+
working-directory: .
25+
26+
# Deploy the HTML documentation to GitHub Pages
27+
- name: GH Pages Deployment
28+
uses: peaceiris/actions-gh-pages@v3
29+
with:
30+
github_token: ${{ secrets.GITHUB_TOKEN }}
31+
publish_dir: ./doc/html/
32+
enable_jekyll: false
33+
allow_empty_commit: false
34+
force_orphan: true
35+
publish_branch: gh-pages

Doxyfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ PROJECT_NAME = "DFT-FE"
3838
# could be handy for archiving the generated documentation or if some version
3939
# control system is used.
4040

41-
PROJECT_NUMBER = "1.0.0"
41+
PROJECT_NUMBER = "1.0.1"
4242

4343
# Using the PROJECT_BRIEF tag one can provide an optional one line description
4444
# for a project that appears at the top of each page and should give viewer a
@@ -58,7 +58,7 @@ PROJECT_LOGO =
5858
# entered, it will be relative to the location where doxygen was started. If
5959
# left blank the current directory will be used.
6060

61-
OUTPUT_DIRECTORY = docs
61+
OUTPUT_DIRECTORY = ./doc/
6262

6363
# If the CREATE_SUBDIRS tag is set to YES then doxygen will create 4096 sub-
6464
# directories (in 2 levels) under the output directory of each output format and

doc/manual/manual.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@
136136
\hfill{\Huge \fontfamily{\sfdefault}\selectfont User Manual \\
137137
\raggedleft \huge \fontfamily{\sfdefault}\selectfont Version
138138
% keep the following line as is so that we can replace this using a script:
139-
1.0.0 %VERSION-INFO%
139+
1.0.1 %VERSION-INFO%
140140
\\\large(generated \today)\\
141141
\vspace{1.5em}
142142
{\Large Sambit Das\,\\Vikram Gavini\,\\Phani Motamarri\\}

src/dft/densityCalculatorCUDA.cu

Lines changed: 16 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,22 @@ namespace dftfe
298298
isEvaluateGradRho ? (cellsBlockSize * numQuadPoints * BVec) : 1,
299299
zero);
300300

301+
cudaUtils::Vector<NumberType, dftfe::MemorySpace::Host> rhoHost;
302+
cudaUtils::Vector<NumberType, dftfe::MemorySpace::Host> gradRhoHostX;
303+
cudaUtils::Vector<NumberType, dftfe::MemorySpace::Host> gradRhoHostY;
304+
cudaUtils::Vector<NumberType, dftfe::MemorySpace::Host> gradRhoHostZ;
305+
306+
rhoHost.resize(totalLocallyOwnedCells * numQuadPoints, zero);
307+
308+
if (isEvaluateGradRho)
309+
{
310+
gradRhoHostX.resize(totalLocallyOwnedCells * numQuadPoints, zero);
311+
312+
gradRhoHostY.resize(totalLocallyOwnedCells * numQuadPoints, zero);
313+
gradRhoHostZ.resize(totalLocallyOwnedCells * numQuadPoints, zero);
314+
}
315+
316+
301317
NumberType *shapeFunctionValuesInvertedDevice;
302318

303319
CUDACHECK(
@@ -364,35 +380,10 @@ namespace dftfe
364380
reinterpret_cast<NumberType *>(thrust::raw_pointer_cast(
365381
&operatorMatrix.getCellWaveFunctionMatrix()[0]));
366382

367-
// set density to zero
368383
typename dealii::DoFHandler<3>::active_cell_iterator cell =
369384
dofHandler.begin_active();
370385
typename dealii::DoFHandler<3>::active_cell_iterator endc =
371386
dofHandler.end();
372-
for (; cell != endc; ++cell)
373-
if (cell->is_locally_owned())
374-
{
375-
const dealii::CellId cellid = cell->id();
376-
377-
std::fill((*rhoValues)[cellid].begin(),
378-
(*rhoValues)[cellid].end(),
379-
0.0);
380-
if (isEvaluateGradRho)
381-
std::fill((*gradRhoValues)[cellid].begin(),
382-
(*gradRhoValues)[cellid].end(),
383-
0.0);
384-
385-
if (dftParameters::spinPolarized == 1)
386-
{
387-
std::fill((*rhoValuesSpinPolarized)[cellid].begin(),
388-
(*rhoValuesSpinPolarized)[cellid].end(),
389-
0.0);
390-
if (isEvaluateGradRho)
391-
std::fill((*gradRhoValuesSpinPolarized)[cellid].begin(),
392-
(*gradRhoValuesSpinPolarized)[cellid].end(),
393-
0.0);
394-
}
395-
}
396387

397388
std::vector<double> rhoValuesFlattened(totalLocallyOwnedCells *
398389
numQuadPoints,
@@ -1063,38 +1054,23 @@ namespace dftfe
10631054

10641055

10651056
// do cuda memcopy to host
1066-
cudaUtils::Vector<NumberType, dftfe::MemorySpace::Host> rhoHost;
1067-
cudaUtils::Vector<NumberType, dftfe::MemorySpace::Host>
1068-
gradRhoHostX;
1069-
cudaUtils::Vector<NumberType, dftfe::MemorySpace::Host>
1070-
gradRhoHostY;
1071-
cudaUtils::Vector<NumberType, dftfe::MemorySpace::Host>
1072-
gradRhoHostZ;
1073-
1074-
rhoHost.resize(totalLocallyOwnedCells * numQuadPoints, zero);
10751057
cudaUtils::copyCUDAVecToHostVec(rhoDevice.begin(),
10761058
rhoHost.begin(),
10771059
totalLocallyOwnedCells *
10781060
numQuadPoints);
10791061

10801062
if (isEvaluateGradRho)
10811063
{
1082-
gradRhoHostX.resize(totalLocallyOwnedCells * numQuadPoints,
1083-
zero);
10841064
cudaUtils::copyCUDAVecToHostVec(gradRhoDeviceX.begin(),
10851065
gradRhoHostX.begin(),
10861066
totalLocallyOwnedCells *
10871067
numQuadPoints);
10881068

1089-
gradRhoHostY.resize(totalLocallyOwnedCells * numQuadPoints,
1090-
zero);
10911069
cudaUtils::copyCUDAVecToHostVec(gradRhoDeviceY.begin(),
10921070
gradRhoHostY.begin(),
10931071
totalLocallyOwnedCells *
10941072
numQuadPoints);
10951073

1096-
gradRhoHostZ.resize(totalLocallyOwnedCells * numQuadPoints,
1097-
zero);
10981074
cudaUtils::copyCUDAVecToHostVec(gradRhoDeviceZ.begin(),
10991075
gradRhoHostZ.begin(),
11001076
totalLocallyOwnedCells *

src/dft/dft.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1467,7 +1467,7 @@ namespace dftfe
14671467
}
14681468
else
14691469
{
1470-
initNoRemesh(true, true, false, true);
1470+
initNoRemesh(false, true, false, true);
14711471
}
14721472
}
14731473

src/dft/initBoundaryConditions.cc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,13 +283,15 @@ dftClass<FEOrder, FEOrderElectro>::initBoundaryConditions(
283283
<< init_pref << std::endl;
284284

285285
if (!meshOnlyDeformed)
286+
{
286287
createMasterChargeIdToImageIdMaps(d_pspCutOff,
287288
d_imageIds,
288289
d_imagePositions,
289290
d_globalChargeIdToImageIdMap);
290291

291-
createMasterChargeIdToImageIdMaps(d_nlPSPCutOff,
292+
createMasterChargeIdToImageIdMaps(d_nlPSPCutOff,
292293
d_imageIdsTrunc,
293294
d_imagePositionsTrunc,
294295
d_globalChargeIdToImageIdMapTrunc);
296+
}
295297
}

src/dft/psiInitialGuess.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -402,6 +402,7 @@ dftClass<FEOrder, FEOrderElectro>::readPSIRadialValues()
402402

403403
boost::math::normal normDist;
404404
bool pp = false;
405+
std::srand(this_mpi_process);
405406
for (unsigned int dof = 0; dof < numberDofs; dof++)
406407
{
407408
const dealii::types::global_dof_index dofID = locallyOwnedDOFs[dof];

src/geoOpt/geoOptCell.cc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,7 @@ namespace dftfe
198198
tol * 2.0; // Dummy parameter for CGPRP, the actual stopping criteria are
199199
// the Wolfe conditions and maxLineSearchIter
200200
const double lineSearchDampingParameter = 0.5;
201+
const double maxUpdateInAnyComponent = 0.2;
201202
const unsigned int maxLineSearchIter =
202203
dftParameters::maxLineSearchIterCGPRP;
203204
const unsigned int debugLevel =
@@ -212,7 +213,8 @@ namespace dftfe
212213
mpi_communicator,
213214
lineSearchTol,
214215
maxLineSearchIter,
215-
lineSearchDampingParameter);
216+
lineSearchDampingParameter,
217+
maxUpdateInAnyComponent);
216218

217219
if (dftParameters::chkType >= 1 && dftParameters::restartFromChk)
218220
pcout

0 commit comments

Comments
 (0)