<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from text --><style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
</head>
<body>
<meta content="text/html; charset=UTF-8">
<style type="text/css" style="">
<!--
p
        {margin-top:0;
        margin-bottom:0}
-->
</style>
<div dir="ltr">
<div id="x_divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:#000000; font-family:Calibri,Helvetica,sans-serif">
<p>Dear Vahid,</p>
<p><br>
</p>
<p>The HP calculation can be split and parallelized. It depends how you want to do this. In example 7 of HP one needs to perturb two atoms, one Mn atom and one Ni atom. So we can split the HP calculation into two - in this case, we need to have different "outdir"
 for these two independent calculations, say TMP1 and TMP2.  You would need to run the PW calculations once (e.g. using TMP1) and then copy temporary files from TMP1 to TMP2. Then you run HP by perturbing Mn and using TMP1, and run HP by perturbing Ni and using
 TMP2. Once the calculation is finished successfully, you need to copy the output of TMP2/HP to TMP1/HP and then run the final step with 
<span>compute_hp = .true.</span> and using TMP1. <br>
</p>
<p><br>
</p>
<p>On top of that, you can parallelize each calculation over q points using start_q, last_q, and sum_pertq. In this case, you would need to further split TMP1 into subfolders and TMP2 into subfolders, if you want to run this in parallel (if you run it sequentially,
 then no need to split TMP1 and TMP2 subfolders). <br>
</p>
<p><br>
</p>
<p>I hope this clarifies a bit how to do it.</p>
<p><br>
</p>
<p>HTH</p>
<p><br>
</p>
<p>Iurii<br>
</p>
<p><br>
</p>
<div id="x_Signature">
<div id="x_divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:rgb(0,0,0); font-family:Calibri,Helvetica,sans-serif,"EmojiFont","Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols">
<div name="x_divtagdefaultwrapper" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:; margin:0">
<div name="x_divtagdefaultwrapper" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:; margin:0">
<font size="3" face="'Times New Roman', Times, serif" color="808080">--<br>
<span style="font-family:Cambria,Georgia,serif">Dr. Iurii TIMROV</span><br>
<span style="font-family:Cambria,Georgia,serif">Senior Research Scientist</span></font></div>
<div name="x_divtagdefaultwrapper" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:; margin:0">
<font size="3" face="'Times New Roman', Times, serif" color="808080"><span style="font-family:Cambria,Georgia,serif">Theory and Simulation of Materials (THEOS)</span></font></div>
<div name="x_divtagdefaultwrapper" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:; margin:0">
<span style="font-size:12pt; color:rgb(128,128,128); font-family:Cambria,Georgia,serif">Swiss Federal Institute of Technology Lausanne (EPFL</span><font color="808080" style="font-size:12pt; color:rgb(128,128,128); font-family:"Times New Roman",Times,serif"><font face="'Times New Roman', Times, serif"><span style="font-family:Cambria,Georgia,serif">)</span></font></font><br>
</div>
<span style="font-family:Cambria,Georgia,serif"></span><font color="808080"></font><span style="font-family:Cambria,Georgia,serif"></span>
<div name="x_divtagdefaultwrapper" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:; margin:0">
<span style="font-family:Cambria,Georgia,serif"></span><font size="3" face="'Times New Roman', Times, serif" color="808080"><span style="font-family:Cambria,Georgia,serif">CH-1015 Lausanne, Switzerland</span><br>
<span style="font-family:Cambria,Georgia,serif">+41 21 69 34 881</span></font></div>
<span style="font-family:Cambria,Georgia,serif"></span>
<div name="x_divtagdefaultwrapper" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:; margin:0">
<span style="font-family:Cambria,Georgia,serif"></span><a href="http://people.epfl.ch/265334" tabindex="0" id="LPNoLP"><span style="font-family:Cambria,Georgia,serif">http://people.epfl.ch/265334</span></a><br>
</div>
</div>
</div>
</div>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="x_divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> users <users-bounces@lists.quantum-espresso.org> on behalf of Vahid Askarpour <vh261281@dal.ca><br>
<b>Sent:</b> Sunday, November 21, 2021 1:29:10 PM<br>
<b>To:</b> Quantum ESPRESSO users Forum<br>
<b>Subject:</b> Re: [QE-users] Splitting Hubbard U directory question</font>
<div> </div>
</div>
</div>
<font size="2"><span style="font-size:10pt;">
<div class="PlainText">In case anyone might be trying this, I ended up creating two self-consistent folders and ran step1.in in one and step2.in in the other.
<br>
<br>
Cheers,<br>
Vahid<br>
<br>
> On Nov 20, 2021, at 7:07 PM, Vahid Askarpour <vh261281@dal.ca> wrote:<br>
> <br>
> Dear QE community,<br>
> <br>
> In the HP/examples/example07, the scf.in, step1.in and step2.in have the same outdir as stated in the HP documentation which in this case is<br>
> <br>
> outdir='/scratch/timrov/WORK_DFPT_plus_U/A_PORTING_2018/A_Gitlab/A_my_Gitlab_08.11.2018/q-e/tempdir/'<br>
> <br>
> But when I run step1.in and step2.in at the same time in the outdir or in separate folders, only one HP subfolder is create in the outdir where step1 and step2  jobs both write to this HP subfolder. How do I create different HP subfolders for step1.in and
 step2.in?<br>
> <br>
> Thank you,<br>
> Vahid<br>
> <br>
> Vahid Askarpour<br>
> Department of physics and atmospheric science<br>
> Dalhousie University<br>
> Halifax, NS<br>
> CANADA<br>
> <br>
> <br>
> <br>
> _______________________________________________<br>
> Quantum ESPRESSO is supported by MaX (<a href="http://www.max-centre.eu">www.max-centre.eu</a>)<br>
> users mailing list users@lists.quantum-espresso.org<br>
> <a href="https://lists.quantum-espresso.org/mailman/listinfo/users">https://lists.quantum-espresso.org/mailman/listinfo/users</a><br>
<br>
_______________________________________________<br>
Quantum ESPRESSO is supported by MaX (<a href="http://www.max-centre.eu">www.max-centre.eu</a>)<br>
users mailing list users@lists.quantum-espresso.org<br>
<a href="https://lists.quantum-espresso.org/mailman/listinfo/users">https://lists.quantum-espresso.org/mailman/listinfo/users</a><br>
</div>
</span></font>
</body>
</html>