Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,29 @@
# CHANGELOG of Wannier90

## v4.0.0 (2nd April 2025)

### New Wannier90 features

- Library redesign enabling all wannier90.x functionality via fortran and c interfaces in serial and parallel

- Implements translationally-invariant formulation for position related matrix elements [[#553]](https://github.com/wannier-developers/wannier90/pull/533)

- Allows explicit specification of k-point lists, simplifying band structure comparisons [[#519]](https://github.com/wannier-developers/wannier90/pull/519)

- Implements higher-order finite difference methods [[#504]](https://github.com/wannier-developers/wannier90/pull/504)

- Implementation of Stengel-Spaldin Functional in Wannierization [[#498]](https://github.com/wannier-developers/wannier90/pull/498)

- Introduction of Cmake build system [[#497]](https://github.com/wannier-developers/wannier90/pull/487)

- Adopts readthedocs for documentation [[#493]](https://github.com/wannier-developers/wannier90/pull/493)

- Add projectability-disentangled Wannier functions [[#338](https://github.com/wannier-developers/wannier90/pull/448)

### New postw90 features

### Various improvements and bugfixes

## v3.1.0 (5th March 2020)

### New features
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ As the community of developers grows, it is important to maintain a degree of co
- contain the `IMPLICIT NONE` statement
- depend on as few other modules as possible
- be declared `PRIVATE` and have a minimal set of public entities
- start with the GPL header that is common to all module files
- start with the Lesser-GPL (LGPL) header that is common to all module files
- be properly annotated with Fortran Documenter (FORD) comments
* Subroutines that are public should be named with a common prefix associated with the module in which they sit. E.g., the names of public subroutines in `wannierise_mod.F90` start with `wann_`, etc.
* Variable, parameter, function, subroutine and module names should be informative and, in so far as possible, maintain consistency of style with existing names
Expand Down
683 changes: 422 additions & 261 deletions LICENSE

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ For the method please cite:
Licence
+++++++

The Wannier90 code is licensed under GPLv2.
The Wannier90 code is licensed under LGPLv2.1.
You can read the licence text in the LICENSE file in the root directory
of the Wannier90 distribution.

Expand Down
4 changes: 2 additions & 2 deletions docs/docs/tutorials/tutorial_34.md
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,8 @@ For more details on the methodology, see Ref.[@Qiao2023-pdwf].
pw.x < graphene.nscf > nscf.out
```

7. Run `pw.x` to generate a list of the required overlaps (written into the
`graphene.nnkp` file).
7. Run `wannier90.x -pp` to generate a list of the required overlaps (written
into the `graphene.nnkp` file).

!!! note

Expand Down
2 changes: 1 addition & 1 deletion docs/solution_booklet/Example1.tex
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ \section{Gallium Arsenide --- MLWFs for the valence bands}
\begin{tcolorbox}[colback=blue!10,hbox,title=Xcrysden: {\tt Tools} $\mapsto$ {\tt Data Grid}]
{\tt
Degree of triCubic Spline = 3;
Isovolume = 0.95;
Isovalue = 0.95;
Render +/- isovalue = yes
}
\end{tcolorbox}
Expand Down
2 changes: 1 addition & 1 deletion docs/solution_booklet/Example8.tex
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ \subsection*{Density of states}
{\includegraphics[width=0.5\columnwidth]{figure/example08/convergence_dos_up_integral.pdf}}
\subfloat[$N_{\uparrow+\downarrow}$]
{\includegraphics[width=0.5\columnwidth]{figure/example08/convergence_dos_tot_integral.pdf}}
\caption{Panel (a) interpolated DOS for the up-spin channel of bcc iron for different $\mathbf{k}$-mesh sizes. Panel (b) corresponding integrated DOS. The integral of the DOS is used as a convergence criterion. $N_{\uparrow+\downarrow}$ has been scaled such as the final value is equal to the total number of electrons.}\label{fig8.2}
\caption{Panel (a) interpolated DOS for the down-spin channel of bcc iron for different $\mathbf{k}$-mesh sizes. Panel (b) corresponding integrated DOS. The integral of the DOS is used as a convergence criterion. $N_{\uparrow+\downarrow}$ has been scaled such as the final value is equal to the total number of electrons.}\label{fig8.2}
\end{figure}
\end{itemize}
\clearpage
Expand Down
15 changes: 15 additions & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
#!--------------------------------------------------------------!
#! This file is distributed as part of the Wannier90 code and !
#! under the terms of the !
#! !
#! GNU Lesser General Public License, version 2.1 !
#! !
#! see file `LICENSE' in the root directory of the Wannier90 !
#! distribution, or https://www.gnu.org/licenses/lgpl-2.1.html !
#! !
#! The webpage of the Wannier90 code is www.wannier.org !
#! !
#! The Wannier90 code is hosted on GitHub !
#! https://github.com/wannier-developers/wannier90 !
#!--------------------------------------------------------------!

## Source files definitions
target_sources(Wannier90_lib PRIVATE
c_interface.F90
Expand Down
15 changes: 15 additions & 0 deletions src/c_interface.F90
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
!!-*- mode: F90 -*-!
!------------------------------------------------------------!
! This file is distributed as part of the Wannier90 code and !
! under the terms of the !
! !
! GNU Lesser General Public License, version 2.1 !
! !
! see file `LICENSE' in the root directory of the Wannier90 !
! distribution or https://www.gnu.org/licenses/lgpl-2.1.html !
! !
! The webpage of the Wannier90 code is www.wannier.org !
! !
! The Wannier90 code is hosted on GitHub !
! https://github.com/wannier-developers/wannier90 !
!------------------------------------------------------------!

module w90_library_c
!Fortran 2018: Assumed-length character dummy argument ‘keyword’ at (1) of procedure ‘cset_option_int’ with BIND(C) attribute
Expand Down
12 changes: 7 additions & 5 deletions src/comms.F90
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
!-*- mode: F90 -*-!
!------------------------------------------------------------!
! This file is distributed as part of the Wannier90 code and !
! under the terms of the GNU General Public License. See the !
! file `LICENSE' in the root directory of the Wannier90 !
! distribution, or http://www.gnu.org/copyleft/gpl.txt !
! under the terms of the !
! !
! The webpage of the Wannier90 code is www.wannier.org !
! GNU Lesser General Public License, version 2.1 !
! !
! see file `LICENSE' in the root directory of the Wannier90 !
! distribution or https://www.gnu.org/licenses/lgpl-2.1.html !
! !
! The Wannier90 code is hosted on GitHub: !
! The webpage of the Wannier90 code is www.wannier.org !
! !
! The Wannier90 code is hosted on GitHub !
! https://github.com/wannier-developers/wannier90 !
!------------------------------------------------------------!
! !
Expand Down
12 changes: 7 additions & 5 deletions src/constants.F90
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
!-*- mode: F90 -*-!
!------------------------------------------------------------!
! This file is distributed as part of the Wannier90 code and !
! under the terms of the GNU General Public License. See the !
! file `LICENSE' in the root directory of the Wannier90 !
! distribution, or http://www.gnu.org/copyleft/gpl.txt !
! under the terms of the !
! !
! The webpage of the Wannier90 code is www.wannier.org !
! GNU Lesser General Public License, version 2.1 !
! !
! see file `LICENSE' in the root directory of the Wannier90 !
! distribution or https://www.gnu.org/licenses/lgpl-2.1.html !
! !
! The Wannier90 code is hosted on GitHub: !
! The webpage of the Wannier90 code is www.wannier.org !
! !
! The Wannier90 code is hosted on GitHub !
! https://github.com/wannier-developers/wannier90 !
!------------------------------------------------------------!
! !
Expand Down
12 changes: 7 additions & 5 deletions src/disentangle.F90
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
!-*- mode: F90 -*-!
!------------------------------------------------------------!
! This file is distributed as part of the Wannier90 code and !
! under the terms of the GNU General Public License. See the !
! file `LICENSE' in the root directory of the Wannier90 !
! distribution, or http://www.gnu.org/copyleft/gpl.txt !
! under the terms of the !
! !
! The webpage of the Wannier90 code is www.wannier.org !
! GNU Lesser General Public License, version 2.1 !
! !
! see file `LICENSE' in the root directory of the Wannier90 !
! distribution or https://www.gnu.org/licenses/lgpl-2.1.html !
! !
! The Wannier90 code is hosted on GitHub: !
! The webpage of the Wannier90 code is www.wannier.org !
! !
! The Wannier90 code is hosted on GitHub !
! https://github.com/wannier-developers/wannier90 !
!------------------------------------------------------------!
! !
Expand Down
12 changes: 7 additions & 5 deletions src/error.F90
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
!-*- mode: F90 -*-!
!------------------------------------------------------------!
! This file is distributed as part of the Wannier90 code and !
! under the terms of the GNU General Public License. See the !
! file `LICENSE' in the root directory of the Wannier90 !
! distribution, or http://www.gnu.org/copyleft/gpl.txt !
! under the terms of the !
! !
! The webpage of the Wannier90 code is www.wannier.org !
! GNU Lesser General Public License, version 2.1 !
! !
! see file `LICENSE' in the root directory of the Wannier90 !
! distribution or https://www.gnu.org/licenses/lgpl-2.1.html !
! !
! The Wannier90 code is hosted on GitHub: !
! The webpage of the Wannier90 code is www.wannier.org !
! !
! The Wannier90 code is hosted on GitHub !
! https://github.com/wannier-developers/wannier90 !
!------------------------------------------------------------!

Expand Down
12 changes: 7 additions & 5 deletions src/error_base.F90
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
!-*- mode: F90 -*-!
!------------------------------------------------------------!
! This file is distributed as part of the Wannier90 code and !
! under the terms of the GNU General Public License. See the !
! file `LICENSE' in the root directory of the Wannier90 !
! distribution, or http://www.gnu.org/copyleft/gpl.txt !
! under the terms of the !
! !
! The webpage of the Wannier90 code is www.wannier.org !
! GNU Lesser General Public License, version 2.1 !
! !
! see file `LICENSE' in the root directory of the Wannier90 !
! distribution or https://www.gnu.org/licenses/lgpl-2.1.html !
! !
! The Wannier90 code is hosted on GitHub: !
! The webpage of the Wannier90 code is www.wannier.org !
! !
! The Wannier90 code is hosted on GitHub !
! https://github.com/wannier-developers/wannier90 !
!------------------------------------------------------------!

Expand Down
12 changes: 7 additions & 5 deletions src/hamiltonian.F90
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
!-*- mode: F90 -*-!
!------------------------------------------------------------!
! This file is distributed as part of the Wannier90 code and !
! under the terms of the GNU General Public License. See the !
! file `LICENSE' in the root directory of the Wannier90 !
! distribution, or http://www.gnu.org/copyleft/gpl.txt !
! under the terms of the !
! !
! The webpage of the Wannier90 code is www.wannier.org !
! GNU Lesser General Public License, version 2.1 !
! !
! see file `LICENSE' in the root directory of the Wannier90 !
! distribution or https://www.gnu.org/licenses/lgpl-2.1.html !
! !
! The Wannier90 code is hosted on GitHub: !
! The webpage of the Wannier90 code is www.wannier.org !
! !
! The Wannier90 code is hosted on GitHub !
! https://github.com/wannier-developers/wannier90 !
!------------------------------------------------------------!
! !
Expand Down
12 changes: 7 additions & 5 deletions src/io.F90
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
!-*- mode: F90 -*-!
!------------------------------------------------------------!
! This file is distributed as part of the Wannier90 code and !
! under the terms of the GNU General Public License. See the !
! file `LICENSE' in the root directory of the Wannier90 !
! distribution, or http://www.gnu.org/copyleft/gpl.txt !
! under the terms of the !
! !
! The webpage of the Wannier90 code is www.wannier.org !
! GNU Lesser General Public License, version 2.1 !
! !
! see file `LICENSE' in the root directory of the Wannier90 !
! distribution or https://www.gnu.org/licenses/lgpl-2.1.html !
! !
! The Wannier90 code is hosted on GitHub: !
! The webpage of the Wannier90 code is www.wannier.org !
! !
! The Wannier90 code is hosted on GitHub !
! https://github.com/wannier-developers/wannier90 !
!------------------------------------------------------------!
! !
Expand Down
18 changes: 9 additions & 9 deletions src/kmesh.F90
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
!-*- mode: F90 -*-!
!------------------------------------------------------------!
! This file is distributed as part of the Wannier90 code and !
! under the terms of the GNU General Public License. See the !
! file `LICENSE' in the root directory of the Wannier90 !
! distribution, or http://www.gnu.org/copyleft/gpl.txt !
! under the terms of the !
! !
! The webpage of the Wannier90 code is www.wannier.org !
! GNU Lesser General Public License, version 2.1 !
! !
! see file `LICENSE' in the root directory of the Wannier90 !
! distribution or https://www.gnu.org/licenses/lgpl-2.1.html !
! !
! The Wannier90 code is hosted on GitHub: !
! The webpage of the Wannier90 code is www.wannier.org !
! !
! The Wannier90 code is hosted on GitHub !
! https://github.com/wannier-developers/wannier90 !
!------------------------------------------------------------!
! !
Expand Down Expand Up @@ -163,10 +165,8 @@ subroutine kmesh_get(kmesh_input, kmesh_info, print_output, kpt_latt, real_latti
l = lmn(1, loop); m = lmn(2, loop); n = lmn(3, loop)
!
vkpp = kpt_cart(:, nkp) + matmul(lmn(:, loop), recip_lattice)
!dist = sqrt((kpt_cart(1, 1) - vkpp(1))**2 &
! + (kpt_cart(2, 1) - vkpp(2))**2 + (kpt_cart(3, 1) - vkpp(3))**2)
dist = sqrt(vkpp(1)**2 + vkpp(2)**2 + vkpp(3)**2) !just assume a gamma-centred mesh JJ
!
dist = sqrt((kpt_cart(1, 1) - vkpp(1))**2 &
+ (kpt_cart(2, 1) - vkpp(2))**2 + (kpt_cart(3, 1) - vkpp(3))**2)
if ((dist .gt. kmesh_input%tol) .and. (dist .gt. dnn0 + kmesh_input%tol)) then
if (dist .lt. dnn1 - kmesh_input%tol) then
dnn1 = dist ! found a closer shell
Expand Down
12 changes: 7 additions & 5 deletions src/library_extra.F90
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,16 @@
! distribution. !
! !
! This file is distributed as part of the Wannier90 code and !
! under the terms of the GNU General Public License. See the !
! file `LICENSE' in the root directory of the Wannier90 !
! distribution, or http://www.gnu.org/copyleft/gpl.txt !
! under the terms of the !
! !
! The webpage of the Wannier90 code is www.wannier.org !
! GNU Lesser General Public License, version 2.1 !
! !
! see file `LICENSE' in the root directory of the Wannier90 !
! distribution or https://www.gnu.org/licenses/lgpl-2.1.html !
! !
! The Wannier90 code is hosted on GitHub: !
! The webpage of the Wannier90 code is www.wannier.org !
! !
! The Wannier90 code is hosted on GitHub !
! https://github.com/wannier-developers/wannier90 !
!------------------------------------------------------------!

Expand Down
12 changes: 7 additions & 5 deletions src/library_interface.F90
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,16 @@
! distribution. !
! !
! This file is distributed as part of the Wannier90 code and !
! under the terms of the GNU General Public License. See the !
! file `LICENSE' in the root directory of the Wannier90 !
! distribution, or http://www.gnu.org/copyleft/gpl.txt !
! under the terms of the !
! !
! The webpage of the Wannier90 code is www.wannier.org !
! GNU Lesser General Public License, version 2.1 !
! !
! see file `LICENSE' in the root directory of the Wannier90 !
! distribution or https://www.gnu.org/licenses/lgpl-2.1.html !
! !
! The Wannier90 code is hosted on GitHub: !
! The webpage of the Wannier90 code is www.wannier.org !
! !
! The Wannier90 code is hosted on GitHub !
! https://github.com/wannier-developers/wannier90 !
!------------------------------------------------------------!

Expand Down
Loading
Loading