File: INPUT_IMPORTEXPORT_BINARY.def

package info (click to toggle)
espresso 6.7-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 311,040 kB
  • sloc: f90: 447,429; ansic: 52,566; sh: 40,631; xml: 37,561; tcl: 20,077; lisp: 5,923; makefile: 4,502; python: 4,379; perl: 1,219; cpp: 761; fortran: 618; java: 568; awk: 128
file content (94 lines) | stat: -rw-r--r-- 2,758 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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
input_description -distribution {Quantum Espresso} -package PWscf -program importexport_binary.x {

    toc {}

    intro {
	@b {Purpose of importexport_binary.x:}
	    convert the binary file for the charge density (and
            for the spin polarization) from the native binary
            format, that is not machine-independent, to a text-only
            XML format ("export" phase), and import it back to 
            binary for restarting.


	@b {Structure of the input data:}
	============================

	   @b &INPUTPP
	     prefix = '...'
	     ...
	   @b /
    }

    namelist INPUTPP {

	var prefix -type CHARACTER {
	    default { 'pwscf' } 
	    info {
		prefix of input file produced by pw.x    
		(wavefunctions are not needed)
	    }
	}

        var outdir -type CHARACTER {
            info {
                   directory containing the input data, i.e. the same as in pw.x }
            default {
                      value of the @tt ESPRESSO_TMPDIR environment variable if set;
                      current directory ('./') otherwise }
        }

        var direction -type CHARACTER {
	    options {
		info {
		    Selects the direction:
		}
		opt -val 'export' {
		    for converting the charge density from the 
		    native binary format to text XML format
		}
		opt -val 'import' {
		    for converting a previously exported folder
		    from text XML format to binary format
		}
	    }
            default { 'export' }
        }

        var newoutdir -type CHARACTER {
            info {
		directory into which the export data is going to be
		generated; after the 'import' phase, it can be then used as
		the outdir to restart for instance a pw.x NSCF calculation }
            default {
		@tt './import' if the direction is @tt 'import', 
		@br @tt './export' if the direction is @tt 'export'
	    }
        }

    }

    section -title Notes {

	subsection -title {Important !} {
	    text {	    
	       The utility will also expect to find, and copy, the 
	       outdir/data-file.xml and the *.UPF pseudopotential files in the
	       @ref prefix.save subdirectory, and will copy them from the outdir
	       to the newoutdir. It will then convert the charge density and
	       spin polarization files in the correct format. Other files,
	       in particular wavefunctions and the band structure (files
	       eigenvals.xml in the K????? subfolder) are ignored and not
	       copied. 

	       If you need also these files, please copy them by hand (they
	       are anyway already in text XML format).
	       
	       Note that while a NSCF calculation does not need the
	       band structure files, many other codes (in particular the
	       post-processing ones) may need them.
	       
	    }
	}
    }
}