<div dir="ltr"><div><div><div><div><div><div><div><div>Hi there,<br><br></div>Long story short, I got this error when using virtual.x<br><br>     Error in routine set_dft_from_name (1):<br>     : unrecognized dft<br><br></div>So I took a look at the source and found that the compute_virtual(x,filein) subroutine in virtual.f90 was importing the module pseudo, I changed the import to "<span style="font-family:arial,helvetica,sans-serif">use pseudo_mod".</span><br></div></div>Then I set to public all the variables in read_upf.f90 (aka the pseudo_mod).<br></div>Now all the variables are defined within virtual.x and everything is working.<br></div>I hope this helps.<br><br></div>Cheers,<br></div>Stefano.<br></div>