<div>Hi Rubee,</div><div><br /></div><div>I don't think you can directly add two cube files. But the cubecruncher supports multiplication. So the two following commands add two cube files:<br />cubecruncher.x -i b.cube -multiply -1 -o minus_b.cube</div><div>cubecruncher.x -i  a.cube -subtract minus_b.cube -o a_plus_b.cube

<br /></div><div>rm 
minus_b.cube

</div><div><br /></div><div>Cheers,</div><div>Fabian</div><div><br /></div><div class="gmail_quote"><div dir="auto" class="gmail_attr">On Tuesday, 28 October 2025 at 07:16:48 UTC+1 Rubee Soni wrote:<br/></div><blockquote class="gmail_quote" style="margin: 0 0 0 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Dear cp2K,<div><br></div><div>Can one add two cube files using cube cruncher or we can only subtract the cube files.</div><div><br></div><div><br></div><div>Thanks,</div><div><br></div><div>Best,</div><div>Rubee</div></blockquote></div>

<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+unsubscribe@googlegroups.com">cp2k+unsubscribe@googlegroups.com</a>.<br />
To view this discussion visit <a href="https://groups.google.com/d/msgid/cp2k/3fec7f6e-5870-40b7-85f7-93aa936449a0n%40googlegroups.com?utm_medium=email&utm_source=footer">https://groups.google.com/d/msgid/cp2k/3fec7f6e-5870-40b7-85f7-93aa936449a0n%40googlegroups.com</a>.<br />