<div dir="ltr">Hi<div><br></div><div>You can download the source code into your own directory and create another executable for your own use. This will not affect other people. You can use exactly the same ARCH file to compile the modified code.</div><div><br></div><div>SL</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On 30 May 2016 at 09:36, ashish dabral <span dir="ltr"><<a href="mailto:ashishd...@gmail.com" target="_blank">ashishd...@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Thanks for your input S Ling. I have a lot of servers with cp2k compiled for them. It is not reasonable to do it again just to control the z height as a lot of other people use the same <div>code. If recompilation is the only way then I would rather go for an increased vacuum.</div><div><br></div><div>Thanks<span class=""><br><br>On Friday, 27 May 2016 18:31:10 UTC+2, S Ling wrote:</span><blockquote class="gmail_quote" style="margin:0;margin-left:0.8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><div dir="ltr">Hi<div><br></div><div>If you have vacuum in your model, and you want to keep z fixed during cell_opt, then you need to modify the code and recompile it, see <a href="https://groups.google.com/d/msg/cp2k/XescBifa_ik/SHSnf1G5QdgJ" rel="nofollow" target="_blank">https://groups.google.com/d/msg/cp2k/XescBifa_ik/SHSnf1G5QdgJ</a> for more details.</div><div><br></div><div>Basically, you need to go to your CP2K source code, find the cell_opt_utils.F file (located in $CP2K/cp2k/src/motion directory), go to the end of the file and add "gradient(6) = 0.0_dp" below "gradient = -gradient". Then you will need to recompile the code and run your calculation with the new executable.</div><div><br></div><div>SL</div><div><br></div><div><br></div></div></span><div><br><div class="gmail_quote"><span class="">On 27 May 2016 at 16:54, ashish dabral <span dir="ltr"><<a rel="nofollow">ashis...@gmail.com</a>></span> wrote:<br></span><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><div dir="ltr">Hi,<div><br></div><div>Can someone explain to me how I can do a Cell optimization with a fixed z direction(height) while everything else (including atomic coordinates)</div><div>can change? I usually take 20A as the z height (supercell z vector length) for my 2d systems to isolate image cell interactions but apparently </div><div>some structures are contracting in the z direction and reaching bulk state after 200 iterations, which is really time consuming. I want the system</div><div>to move to prevent any stress but I do not want contraction because it does not remain 2d anymore.</div><div><br></div><div>Also, If I fix the vertical height, will it be right? I mean if the original system with that vertical height want to contract then it has interactions</div><div>with the image cell. If I fix the height then I would still have the interactions with the image cell above but will not see it in optimized structure.</div><div>Will this be right approach?</div><div><br></div><div><br></div><div>Thanks</div></div></span><span><font color="#888888"><span class="">
<p></p>
-- <br>
You received this message because you are subscribed to the Google Groups "cp2k" group.<br></span>
To unsubscribe from this group and stop receiving emails from it, send an email to <a rel="nofollow">cp2k+...@googlegroups.com</a>.<br>
To post to this group, send email to <a rel="nofollow">cp...@googlegroups.com</a>.<span class=""><br>
Visit this group at <a href="https://groups.google.com/group/cp2k" rel="nofollow" target="_blank">https://groups.google.com/group/cp2k</a>.<br>
For more options, visit <a href="https://groups.google.com/d/optout" rel="nofollow" target="_blank">https://groups.google.com/d/optout</a>.<br>
</span></font></span></blockquote></div><br></div>
</blockquote></div></div><div class="HOEnZb"><div class="h5">
<p></p>
-- <br>
You received this message because you are subscribed to the Google Groups "cp2k" group.<br>
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="mailto:cp2k+uns...@googlegroups.com" target="_blank">cp2k+uns...@googlegroups.com</a>.<br>
To post to this group, send email to <a href="mailto:cp...@googlegroups.com" target="_blank">cp...@googlegroups.com</a>.<br>
Visit this group at <a href="https://groups.google.com/group/cp2k" target="_blank">https://groups.google.com/group/cp2k</a>.<br>
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank">https://groups.google.com/d/optout</a>.<br>
</div></div></blockquote></div><br></div>