init_wannier_defaults.f90 4.2 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
!--------------------------------------------------------------------------------
! Copyright (c) 2017 Peter Grünberg Institut, Forschungszentrum Jülich, Germany
! This file is part of FLEUR and available as free software under the conditions
! of the MIT license as expressed in the LICENSE file in more detail.
!--------------------------------------------------------------------------------

MODULE m_init_wannier_defaults

CONTAINS

SUBROUTINE initWannierDefaults(wann)

   !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
   !!!
   !!!  This subroutine sets most of the attributes of the t_wann
   !!!  type to standard values.
   !!!
   !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

20
   USE m_types_setup
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145

   IMPLICIT NONE

   TYPE(t_wann), INTENT(INOUT) :: wann

   wann%wan90version = 2 ! Set the standard to Wannier90-1.2

   wann%oc_num_orbs = 0
!        integer,allocatable :: oc_orbs(:)

   wann%l_unformatted = .FALSE.
   wann%l_oc_f = .FALSE.
   wann%l_ndegen = .FALSE.
   wann%l_orbitalmom = .FALSE.
   wann%l_orbcomp = .FALSE.
   wann%l_orbcomprs = .FALSE.
   wann%l_denmat = .FALSE.
   wann%l_perturbrs = .FALSE.
   wann%l_perturb = .FALSE.
   wann%l_nedrho = .FALSE.
   wann%l_anglmomrs = .FALSE.
   wann%l_anglmom = .FALSE.
   wann%l_spindisp = .FALSE.
   wann%l_spindisprs = .FALSE.
   wann%l_socspicom = .FALSE.
   wann%l_socspicomrs = .FALSE.
   wann%l_offdiposoprs = .FALSE.
   wann%l_offdiposop = .FALSE.
   wann%l_torque = .FALSE.
   wann%l_torquers = .FALSE.
   wann%l_atomlist = .FALSE.

   wann%atomlist_num = 0 ! has to be initialize to atoms%nat or something smaller at some point
!        integer,allocatable :: atomlist(:)

   wann%l_berry = .FALSE.
   wann%l_perpmagrs = .FALSE.
   wann%l_perpmag = .FALSE.
   wann%l_perpmagat = .FALSE.
   wann%l_perpmagatrs = .FALSE.
   wann%l_socmatrs = .FALSE.
   wann%l_socmat = .FALSE.
   wann%l_soctomom = .FALSE.
   wann%l_kptsreduc2 = .FALSE.
   wann%l_nablapaulirs = .FALSE.
   wann%l_nablars = .FALSE.
   wann%l_surfcurr = .FALSE.
   wann%l_updown = .FALSE.
   wann%l_ahe = .FALSE.
   wann%l_she = .FALSE.
   wann%l_rmat = .FALSE.
   wann%l_nabla = .FALSE.
   wann%l_socodi = .FALSE.
   wann%l_pauli = .FALSE.
   wann%l_pauliat = .FALSE.
   wann%l_potmat = .FALSE.
   wann%l_projgen = .FALSE.
   wann%l_plot_symm = .FALSE.
   wann%l_socmmn0 = .FALSE.
   wann%l_bzsym = .FALSE.
   wann%l_hopping = .FALSE.
   wann%l_kptsreduc = .FALSE.
   wann%l_prepwan90 = .FALSE.
   wann%l_plot_umdat = .FALSE.
   wann%l_wann_plot = .FALSE.
   wann%l_bynumber = .FALSE.
   wann%l_stopopt = .FALSE.
   wann%l_matrixmmn = .FALSE.
   wann%l_matrixamn = .FALSE.
   wann%l_projmethod = .FALSE.
   wann%l_wannierize = .FALSE.
   wann%l_plotw90 = .FALSE.
   wann%l_byindex = .FALSE.
   wann%l_byenergy = .FALSE.
   wann%l_proj_plot = .FALSE.
   wann%l_bestproj = .FALSE.
   wann%l_ikptstart = .FALSE.
   wann%l_lapw = .FALSE.
   wann%l_plot_lapw = .FALSE.
   wann%l_fermi = .FALSE.
   wann%l_dipole = .FALSE.
   wann%l_dipole2 = .FALSE.
   wann%l_dipole3 = .FALSE.
   wann%l_mmn0 = .FALSE.
   wann%l_mmn0at = .FALSE.
   wann%l_manyfiles = .FALSE.
   wann%l_collectmanyfiles = .FALSE.
   wann%l_ldauwan = .FALSE.
   wann%l_lapw_kpts = .FALSE.
   wann%l_lapw_gfleur = .FALSE.
   wann%l_kpointgen = .FALSE.
   wann%l_w90kpointgen = .FALSE.
   wann%l_finishnocoplot = .FALSE.
   wann%l_finishgwf = .FALSE.
   wann%l_skipkov = .FALSE.
   wann%l_matrixuHu = .FALSE.
   wann%l_matrixuHu_dmi = .FALSE.

   wann%ikptstart = 1
   wann%band_min(1:2) = -1
   wann%band_max(1:2) = -1
   wann%gfthick = 0
   wann%gfcut = 0
   wann%unigrid(6) = 0
   wann%mhp(3) = 0

!---> gwf
   wann%l_ms = .FALSE.
   wann%l_sgwf = .FALSE.
   wann%l_socgwf = .FALSE.
   wann%l_gwf = .FALSE.
   wann%l_bs_comf = .FALSE.
   wann%l_exist = .FALSE.
   wann%l_opened = .FALSE.
   wann%l_cleverskip = .FALSE.
   wann%l_dim(3) = .FALSE.

   wann%scale_param = 0.0
   wann%aux_latt_const = 0.0
   wann%hdwf_t1 = 0.0
   wann%hdwf_t2 = 0.0
   wann%nparampts = 0
   wann%fn_eig = ''
   wann%param_file = ''

146 147 148 149
   wann%scale_param = 1.0
   wann%aux_latt_const = 8.0!5.5!5.45886450 !5.98136400 !8.0725882513951497 !5.4170 !1.0
   wann%param_file='qpts'
   wann%l_dim=.false.
150 151 152 153

END SUBROUTINE initWannierDefaults

END MODULE m_init_wannier_defaults