Let's suppose that I prepare an input file, writing certain parameters defining some molecular structure into to run in Quantum Espresso. For simplicity and convenience I have decided to create an user's variable, for instance, QE_PSEUDO to save a path of a directory with pseudopotentials files. Having passed such a variable into an input file parameter I get an error, see an example of an input file part below.
example.in:
&CONTROL
...,
pseudo_dir='$QE_PSEUDO',
...,
/
But if to use a path without variables "as is" it's okay then. Whether no way to make Quantum Espresso understand an user's variable inside an input file?
Addition 1: CRASH file:
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
task # 0
from readpp : error # 1
file $QE_PSEUDO/Si.bhs not found
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
output file:
Program PWSCF v.7.2 starts on 2Apr2023 at 0:25:40
This program is part of the open-source Quantum ESPRESSO suite
for quantum simulation of materials; please cite
"P. Giannozzi et al., J. Phys.:Condens. Matter 21 395502 (2009);
"P. Giannozzi et al., J. Phys.:Condens. Matter 29 465901 (2017);
"P. Giannozzi et al., J. Chem. Phys. 152 154105 (2020);
URL http://www.quantum-espresso.org",
in publications or presentations arising from this work. More details at
http://www.quantum-espresso.org/quote
Parallel version (MPI), running on 1 processors
MPI processes distributed on 1 nodes
7028 MiB available memory on the printing compute node when the environment starts
Waiting for input...
Reading input from standard input
Current dimensions of program PWSCF are:
Max number of different atomic species (ntypx) = 10
Max number of k-points (npk) = 40000
Max angular momentum in pseudopotentials (lmaxx) = 4
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Error in routine readpp (1):
file $QE_PSEUDO/Si.bhs not found
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
stopping ...
Addition 2: CRASH file:
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
task # 0
from read_namelists : error # 1
bad line in namelist &control: " pseudo_dir=$QE_PSEUDO," (error could be in the previous line)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
output file:
Program PWSCF v.7.2 starts on 2Apr2023 at 0:52: 9
This program is part of the open-source Quantum ESPRESSO suite
for quantum simulation of materials; please cite
"P. Giannozzi et al., J. Phys.:Condens. Matter 21 395502 (2009);
"P. Giannozzi et al., J. Phys.:Condens. Matter 29 465901 (2017);
"P. Giannozzi et al., J. Chem. Phys. 152 154105 (2020);
URL http://www.quantum-espresso.org",
in publications or presentations arising from this work. More details at
http://www.quantum-espresso.org/quote
Parallel version (MPI), running on 1 processors
MPI processes distributed on 1 nodes
6602 MiB available memory on the printing compute node when the environment starts
Waiting for input...
Reading input from standard input
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Error in routine read_namelists (1):
bad line in namelist &control: " pseudo_dir=$QE_PSEUDO," (error could be in the previous line)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
stopping ...
code block
in your question? $\endgroup$$PSEUDO_DIR
is working instead of$QE_PSEUDO
? and lastly, how did you define the environment variables? $\endgroup$