Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Selective localization and constrained centres from Marianetti et al. [PRB 90, 165125 (2014)] #187

Merged
merged 35 commits into from
Sep 30, 2018

Conversation

VVitale
Copy link
Collaborator

@VVitale VVitale commented Jun 21, 2018

Here is an implementation of the Marianetti et al. work [PRB 90, 165125 (2014)] for selectively localize a subset of functions, also known as Objective Wannier Functions and also for constraining their centres.
A new example, i.e. Example26 on Gallium Arsenide has been added to the list, which reproduce some of the result in the above mentioned paper. Moreover, the Tutorial and user_guide tex files have been modified accordingly. There, it is explained how the algorithm works and how to use the new keywords. A substantial part of the current implementation, particularly the section on selective localization, is based on prior work done by Charles T. Johnson during his MSci project.

@VVitale
Copy link
Collaborator Author

VVitale commented Jun 21, 2018

I noticed that I removed all the trailing spaces in the doc/user_guide/parameters.tex and I moved some of the definitions for the SCDM around. The information contained in the file however is exactly the same as before

@codecov
Copy link

codecov bot commented Jun 21, 2018

Codecov Report

Merging #187 into develop will increase coverage by 0.53%.
The diff coverage is n/a.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop     #187      +/-   ##
===========================================
+ Coverage    60.47%   61.01%   +0.53%     
===========================================
  Files           29       29              
  Lines        16629    16930     +301     
===========================================
+ Hits         10057    10329     +272     
- Misses        6572     6601      +29
Impacted Files Coverage Δ
src/parameters.F90 80.59% <ø> (+0.53%) ⬆️
src/wannierise.F90 77.22% <ø> (+1.39%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 086666e...72911b6. Read the comment docs.

@VVitale
Copy link
Collaborator Author

VVitale commented Jun 22, 2018

I'll create a test for this feature, in order to improve the codecov result

@VVitale
Copy link
Collaborator Author

VVitale commented Aug 31, 2018

I have fixed the conflicts between this repo and develop due to recent additions in PR #193 and PR #194

@mostofi
Copy link
Member

mostofi commented Sep 28, 2018

I've opened a pull request to your branch with some updates to the tutorial and user guide.

Additionally:

(1) May I suggest that you rename the SLWF variables?

sel_loc_num --> slwf_num
sel_loc_constrain --> slwf_constrain
sel_loc_constrain_lambda --> slwf_lambda
centre_constraints --> slwf_centres

This will need a search and replace through the code and the tutorial and user guide.

(2) There is no need to write the value of lambda to the output file at each Wannierisation iteration, since its value is fixed. May I suggest that this behaviour is changed both in the code and, correspondingly, in the user guide?

Thanks.

@mostofi
Copy link
Member

mostofi commented Sep 28, 2018

PS There are a couple of minor conflict with parameters.F90 in the develop branch. Please could you fix before updated the PR? Thanks.

@VVitale
Copy link
Collaborator Author

VVitale commented Sep 28, 2018

I have fixed the minor conflicts with parameters.F90.
Merged @mostofi pull request with changes for tutorial and user_guide.
I have changed the key words as suggested by @mostofi in the parameters.F90 and wannierise.F90 as well as in the tutorial.tex and parameters.tex.
I have modified the gaas.win and related benchmark files in test-suite/tests/testw90_example26
Finally, I have modified the GaAs.win file in examples/example26

@mostofi
Copy link
Member

mostofi commented Sep 30, 2018

@VVitale, I've sent you a pull request, fixing a few typos for the SLWF parts in the user guide.

I also noticed that lambda is still printed every wannierisation iteration (as discussed, it need only be reported at the start of the calculation). Please could you fix this, as well as two instances in userguide/files.tex where it is present?

Valerio Vitale (PDRA and others added 4 commits September 30, 2018 10:53
… the new output style when performing SLWF with constrains on centres.
Update to SLWF sections of user guide
…in the output layout (no more printing of lambda at each iteration)
@VVitale
Copy link
Collaborator Author

VVitale commented Sep 30, 2018

@mostofi, done

Copy link
Member

@mostofi mostofi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks for making the changes.

@mostofi mostofi merged commit ae7405f into wannier-developers:develop Sep 30, 2018
@giovannipizzi giovannipizzi mentioned this pull request Oct 5, 2018
manxkim pushed a commit to manxkim/wannier90 that referenced this pull request Jan 10, 2021
manxkim pushed a commit to manxkim/wannier90 that referenced this pull request Jan 10, 2021
Selective localization and constrained centres from Marianetti et al.  [PRB 90, 165125 (2014)]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants