From 9c563849484981fe48180735655905bb75abd3ca Mon Sep 17 00:00:00 2001 From: Roxana Margine Date: Wed, 21 Mar 2018 10:51:52 -0400 Subject: [PATCH] Fixing the problem in library mode where num_exclude_bands was subtracted twice. --- src/parameters.F90 | 6 +++++- src/wannier_lib.F90 | 9 ++++----- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/src/parameters.F90 b/src/parameters.F90 index df78633f7..ba0090cd2 100644 --- a/src/parameters.F90 +++ b/src/parameters.F90 @@ -615,7 +615,11 @@ subroutine param_read ( ) if(found) num_bands=i_temp if(.not.found) num_bands=num_wann end if - if (library) num_bands = num_bands - num_exclude_bands + ! RM_2018-03-21: this should only be done once, but param_read is called both in wannier_setup and wannier_run + ! RM_2018-03-21: commented line below, as now the correct value for + ! num_bands (already substracted) is set in library mode before calling + ! param_read +! if (library) num_bands = num_bands - num_exclude_bands if (.not. effective_model) then if(found .and. num_bands