<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="http://sobereva.com/wfnbbs/extern.php?action=feed&amp;tid=1609&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Multiwfn forum / possible bug in   LEA QAMS surface properties of each atom]]></title>
		<link>http://sobereva.com/wfnbbs/viewtopic.php?id=1609</link>
		<description><![CDATA[The most recent posts in possible bug in   LEA QAMS surface properties of each atom.]]></description>
		<lastBuildDate>Tue, 11 Feb 2025 09:24:36 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: possible bug in   LEA QAMS surface properties of each atom]]></title>
			<link>http://sobereva.com/wfnbbs/viewtopic.php?pid=4895#p4895</link>
			<description><![CDATA[<p>Thanks! I was about to suggest the common trick of adding some small quantity to the denominator:</p><p>fragsurvar=fragsurvar/(fragsurarea+0.000000000000001)</p><p>But your solution will definitely be more stable and less sensitive to numeric errors!</p>]]></description>
			<author><![CDATA[dummy@example.com (lsimon)]]></author>
			<pubDate>Tue, 11 Feb 2025 09:24:36 +0000</pubDate>
			<guid>http://sobereva.com/wfnbbs/viewtopic.php?pid=4895#p4895</guid>
		</item>
		<item>
			<title><![CDATA[Re: possible bug in   LEA QAMS surface properties of each atom]]></title>
			<link>http://sobereva.com/wfnbbs/viewtopic.php?pid=4894#p4894</link>
			<description><![CDATA[<p>Thank you for your report. This piece of code should be changed to</p><div class="codebox"><pre><code>		fragsurvar(:,2:3)=fragsurvar(:,2:3)/fragsurarea(:,2:3)
 		do ifrag=1,nsurfrag
			if (fragsurarea(ifrag,2)&gt;0) fragsurvar(ifrag,1)=fragsurvar(ifrag,1)+fragsurvar(ifrag,2)
			if (fragsurarea(ifrag,3)&gt;0) fragsurvar(ifrag,1)=fragsurvar(ifrag,1)+fragsurvar(ifrag,3)
 		end do</code></pre></div><p>This issue will be fixed in the next update of Multiwfn.</p>]]></description>
			<author><![CDATA[dummy@example.com (sobereva)]]></author>
			<pubDate>Tue, 11 Feb 2025 02:42:19 +0000</pubDate>
			<guid>http://sobereva.com/wfnbbs/viewtopic.php?pid=4894#p4894</guid>
		</item>
		<item>
			<title><![CDATA[Re: possible bug in   LEA QAMS surface properties of each atom]]></title>
			<link>http://sobereva.com/wfnbbs/viewtopic.php?pid=4892#p4892</link>
			<description><![CDATA[<p>Hi again... I opened the code and found these two lines in surfana.f90 file:</p><p>&#160; &#160; &#160; &#160; fragsurvar=fragsurvar/fragsurarea<br />&#160; &#160; &#160; &#160; fragsurvar(:,1)=fragsurvar(:,2)+fragsurvar(:,3)</p><p>¿Could this be that &quot;fragsurarea&quot; is 0 for positive values (the surface area corresponding to positive values of the LEA is zero, since LEA is negative everywhere, so fragsurvar is NaN for positive values, and accordingly the first element of the vector is also NaN since it is calculated by the sume in the second instruction? Maybe for LEA the second instruction should be changed to:</p><p>&#160; &#160; &#160; &#160; fragsurvar(:,1)=fragsurvar(:,3)</p><p>or even an if..else could be used to determine wether to use one or the other alternative depending on NaN values in fragsurvar(:,2)...</p>]]></description>
			<author><![CDATA[dummy@example.com (lsimon)]]></author>
			<pubDate>Mon, 10 Feb 2025 12:35:38 +0000</pubDate>
			<guid>http://sobereva.com/wfnbbs/viewtopic.php?pid=4892#p4892</guid>
		</item>
		<item>
			<title><![CDATA[possible bug in   LEA QAMS surface properties of each atom]]></title>
			<link>http://sobereva.com/wfnbbs/viewtopic.php?pid=4891#p4891</link>
			<description><![CDATA[<p>analysing the LEA of each atom surface using QAMS (sequence of options: 12 2 4 0 11) I obtained results like this:</p><p> Note: Average and variance below are in eV and eV^2 respectively<br />&#160; Atom#&#160; &#160; All/Positive/Negative average&#160; &#160; &#160; &#160;All/Positive/Negative variance<br />&#160; &#160; &#160; 3&#160; &#160;-36.41248&#160; &#160; &#160; &#160; NaN&#160; -36.41248&#160; &#160; &#160; &#160; &#160; &#160;NaN&#160; &#160; &#160; &#160; NaN&#160; &#160;24.17663<br />&#160; &#160; &#160; 4&#160; &#160;-36.25866&#160; &#160; &#160; &#160; NaN&#160; -36.25866&#160; &#160; &#160; &#160; &#160; &#160;NaN&#160; &#160; &#160; &#160; NaN&#160; &#160;21.78491<br />&#160; &#160; &#160; 5&#160; &#160;-35.78661&#160; &#160; &#160; &#160; NaN&#160; -35.78661&#160; &#160; &#160; &#160; &#160; &#160;NaN&#160; &#160; &#160; &#160; NaN&#160; &#160;23.29892<br />&#160; &#160; &#160; 6&#160; &#160;-35.81292&#160; &#160; &#160; &#160; NaN&#160; -35.81292&#160; &#160; &#160; &#160; &#160; &#160;NaN&#160; &#160; &#160; &#160; NaN&#160; &#160;23.65038<br />&#160; &#160; &#160;12&#160; &#160;-22.13457&#160; &#160; &#160; &#160; NaN&#160; -22.13457&#160; &#160; &#160; &#160; &#160; &#160;NaN&#160; &#160; &#160; &#160; NaN&#160; &#160; 8.27424<br />&#160; &#160; &#160;13&#160; &#160;-21.98016&#160; &#160; &#160; &#160; NaN&#160; -21.98016&#160; &#160; &#160; &#160; &#160; &#160;NaN&#160; &#160; &#160; &#160; NaN&#160; &#160;14.85794</p><br /><p>While I find reasonable the results in the first 3 columns (basically, the &quot;positive&quot; values are all NaN and not used in calculating the average, so the average of all values and of negative values are identical), I wonder if the other 3 columns are correct. I would expect a similar result than with the others: NAN for &quot;positive&quot;, and therefore identical variance considering all points or only negative points. Could this be a problem and the &quot;All variance&quot; column should also match the &quot;Negative variance&quot; column?</p><p>Thanks</p><p>Luis</p>]]></description>
			<author><![CDATA[dummy@example.com (lsimon)]]></author>
			<pubDate>Mon, 10 Feb 2025 08:33:39 +0000</pubDate>
			<guid>http://sobereva.com/wfnbbs/viewtopic.php?pid=4891#p4891</guid>
		</item>
	</channel>
</rss>
