Re: [Wien] Wien2k installation:siteconfig_lapw

2018-08-19 Thread Gavin Abo
Regarding 2), I had forgotten that we had a fix for that [ 
https://www.mail-archive.com/wien@zeus.theochem.tuwien.ac.at/msg16030.html 
].


Change csh to tcsh by hand in the first line of siteconfig_lapw, or you 
can make the same change with the following patch.


I tested the following WIEN2k 18.2 patch and siteconfig_lapw in Ubuntu 
14.04 works for me again:


username@computername:~/Desktop$ cd $WIENROOT
username@computername:~/WIEN2k$ ./siteconfig
Word too long.
username@computername:~/WIEN2k$ wget 
https://raw.githubusercontent.com/gsabo/WIEN2k-Patches/master/18.2/siteconfig_lapw.patch

...
username@computername:~/WIEN2k$ patch -b siteconfig_lapw 
siteconfig_lapw.patch

patching file siteconfig_lapw
username@computername:~/WIEN2k$ ./siteconfig


***
   *    WIEN 2k  *
   *  site configuration *
***

   This is the first time that you install WIEN2k on this computer. Please
   follow the subsequent steps to set up WIEN2k.


You seem to have installed the ifort compiler at:
/opt/intel/composer_xe_2013_sp1.1.106/bin/ia32/ifort
Please remember VERSION and PATH for later reference
Your MKLROOT variable is:
/opt/intel/composer_xe_2013_sp1.1.106/mkl
I could not find your MKL_TARGET_ARCH. You will have to specify it later.

 Press RETURN to continue

On 8/16/2018 10:02 PM, Gavin Abo wrote:

It looks like you might have two different problems:

1) tcsh: bad interpreter: No such file or directory <- This usually 
indicates that tcsh is not installed.

    - If using Ubuntu, try installing tcsh using: sudo apt install tcsh
    - If using a different Linux distribution, use a search engine 
(such as Google) to find out how to install it for your system.


2) The "word too large" should be because the number of sed commands 
increased for "alias update_makefiles" in siteconfig. Some systems are 
not able to handle the alias with the longer string of commands.  For 
example, it works fine for me when using Ubuntu 18.04.  However, the 
script fails with the same error using Ubuntu 14.04.  It may be that 
the string of sed commands in siteconfig_lapw can be broken into two 
alias commands to get it working again for all systems.  Using Ubuntu 
18.04, however, is the solution that I'm using.  I'm transitioning to 
the newer Linux distributions since BoltzTraP2 needs Python 3.5 or 
higher [1] which may not be available to install with the package 
manager in older Linux versions.


[1] 
https://www.imc.tuwien.ac.at/forschungsbereich_theoretische_chemie/forschungsgruppen/prof_dr_gkh_madsen_theoretical_materials_chemistry/boltztrap2/


On 8/16/2018 5:30 AM, BUSHRA SABIR wrote:

Prof Peter Blaha and Gavin abo,

i am trying to install wien2k latest version 18.2,
while installation i am facing problem.

In command

./siteconfig_lapw

i face error "word too large"

i go through mailing list and find solutions recommended by Gavin abo 
to make changes in first line of siteconfig_lapw

bushra@bushra-MS-7A70:~/Wien2k_18.2$ sed -n 1p siteconfig_lapw
#!/bin/csh -fx


bushra@bushra-MS-7A70:~/Wien2k_18.2$ ./siteconfig
unalias rm
set name = ./siteconfig
set bin = .
if ! ( -d . ) set bin = .
cd .
set bin = `pwd`
pwd
alias define_installdate date >$bin/WIEN2k_INSTALLDATE
alias wait echo "";echo " Press RETURN to continue"; set yn = ($<)
Word too long.
bushra@bushra-MS-7A70:~/Wien2k_18.2$ ./siteconfig


bash: ./siteconfig: /bin/tcsh: bad interpreter: No such file or directory

kindly help me to understand this problem


Bushra Sabir



___
Wien mailing list
Wien@zeus.theochem.tuwien.ac.at
http://zeus.theochem.tuwien.ac.at/mailman/listinfo/wien
SEARCH the MAILING-LIST at:  
http://www.mail-archive.com/wien@zeus.theochem.tuwien.ac.at/index.html


Re: [Wien] Dense mesh calculation

2018-08-19 Thread pluto

Dear Prof. Blaha, dear All,

Thank you for your comments!

/SCRATCH directories on the older cluster that I am using are usually 
quite full (in some cases perhaps can be solved by writing some emails 
asking people to delete old stuff). New harddisk solution is considered, 
hopefully will be possible. In any case it's always good to have a 
solution to use less space.


In the meantime (after SCF and doing save_lapw) I reduced emin/emax 
ranges in in1c and inso and managed to calculate 100x100 mesh overnight 
on the /SCRATCH space that was available.


Best,
Lukasz



On 2018-08-19 07:16, Peter Blaha wrote:

By choosing a local scratch directory  (like /scratch or /tmp or ...,
this depends on your computers, you can then add -scratch /scratch to
all wien2k run or x commands) and using massively k-parallelism (on as
many different nodes as possible, you can distribute these large
case.vector_xx files on many computers. (PS: otherwise a 2 or 4TB
harddisk costs less than 100 $ !!??).

The case.vectorso_xx files are not needed for fermi surfaces (but of
course they are needed for scf or optics, or ...) and can be reduced
in size by selecting emin/emax in case.inso very narrow.

Another simple trick to save disk space would be:

Start x lapw1 -p -band -up/dn  and kill this after a few seconds. Do
the same with  lapwso.

It will prepare a couple of uplapw1_xx.def and case.klist_xx files.

Now you run in a small loop (csh syntax):

foreach i (1 2 3 4)
 lapw1c uplapw1_$i.def  # or lapw1 , depending on in1 or in1c)
 lapw1c dnlapw1_$i.def
 lapwso uplapwso_$i.def
 rm case.vectorup_$i case.vectordn_$i
end

This should produce only one vector file at the time and by choosing
many cores, you can make them arbitrarily small.

Of course, this does not work when you need the vector files for other
programs (lapw2, optics, ...)


Am 18.08.2018 um 20:18 schrieb pluto:

Dear Gavin,

Thank you for your comments. This is what I was afraid.

I can glue output files by myself, no problem, hopefully they don't 
change the order of k-points. But one way to solve the disk-space 
issue would be to write a script that calculates SOC eigenvalues 
k-point by k-point. Then there would be no large vector files.


I am not feeling competent to modify and recompile WIEN2k, but perhaps 
I am able to solve it by the script.


Best,
Lukasz



On 8/18/2018 3:43 PM, Gavin Abo wrote:


From WIEN2k 18.2 UG page 126:

WFFIL: standard option, writes wave functions to file case.vector 
(needed in lapw2)
SUPWF: suppresses wave function calculation (faster for testing 
eigenvalues only)
WFPRI: prints eigenvectors to case.output1 and writes case.vector 
(produces long outputs!)
With SUPWF from above, it looks like case.vector* files are not 
written by lapw1 unless WFFIL or WFPRI are used instead.  Since Table 
4.3 shows case.vector* files are required for lapwso, it may be that 
you cannot workaround not using them.


As far as I know, there is no built in WIEN2k program to combine the 
.output* files.  That is why the multiple recent and past posts about 
it, such as:


https://www.mail-archive.com/wien@zeus.theochem.tuwien.ac.at/msg17847.html 
https://www.mail-archive.com/wien@zeus.theochem.tuwien.ac.at/msg17829.html 
https://www.mail-archive.com/wien@zeus.theochem.tuwien.ac.at/msg00508.html 
https://www.mail-archive.com/wien@zeus.theochem.tuwien.ac.at/msg02057.html 
https://www.mail-archive.com/wien@zeus.theochem.tuwien.ac.at/msg02055.html 
(awk)

http://www.democritos.it/pipermail/xcrysden/2015-September/001731.html
http://www.democritos.it/pipermail/xcrysden/2015-December/001788.html

Though, I don't see why you couldn't automate it yourself either 
using a job script (e.g., by adding the "cat case.outputso_1* > 
case.output1up" to it), by writing your own script (e.g., bash script 
containing your run[sp]_lapw and "cat case.outputso_1* > 
case.output1up" commands), or by modifying the WIEN2k source code.


On 8/18/2018 5:07 AM, pluto wrote:

Dear All, dear Prof. Blaha,

I used SUPWF in case.in1c to limit the size of output files.

Then I used:

x lapw1 -band -up -p -c
x lapw1 -band -dn -p -c
x lapwso -up -p -c

There are no errors, but lapwso does not seem to calculate 
eigenvalues.


I use 4 parallel cores, so I have 4 output files. Output files 
without SOC look OK, they contain eigenvalues (files 
case.output1up_1 to 4, same for dn).  But SOC output files 
(outputso_1 to 4) do not contain any eigenvalues, and I don't see 
any other output files.


Am I doing something wrong? Manual in Table 4.3 says that lapwso 
needs vector files, which are of course missing here. Is there a way 
out?


Also, is there a way to automatically "glue" output files to have 
just one large output file?


Best,
Lukasz



___
Wien mailing list
Wien@zeus.theochem.tuwien.ac.at
http://zeus.theochem.tuwien.ac.at/mailman/listinfo/wien
SEARCH the MAILING-LIST at: 
http://www.mail-archive.com/wien@zeus.theochem.tuwien.ac.at/