<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p><font face="Times New Roman">The == should work for C/C++
language. I don't recall ever seeing that being used for
Fortran.</font></p>
<p><font face="Times New Roman">A quote from a HP Doctor Fortran
article [
<a class="moz-txt-link-freetext" href="https://software.intel.com/en-us/forums/intel-visual-fortran-compiler-for-windows/topic/274462">https://software.intel.com/en-us/forums/intel-visual-fortran-compiler-for-windows/topic/274462</a>
]:</font></p>
<p><font face="Times New Roman">"The real trouble with making
assumptions about the internal value of LOGICALs is when you try
testing them for "equality" against another logical expression.
The way many Fortran programmers would naturally do this is as
follows:<br>
<br>
IF (LOGVAL1 .EQ. LOGVAL2) ...<br>
<br>
but the results of this can vary depending on the internal
representation. The Fortran language defines two operators
exclusively for use on logical values, .EQV. ("equivalent to")
and .NEQV. ("not equivalent to"). So the above test would be
properly written as:<br>
<br>
IF (LOGVAL1 .EQV. LOGVAL2) ..."<br>
</font></p>
<div class="moz-cite-prefix">On 6/25/2019 3:14 PM, Fecher, Gerhard
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:e3672e9d8670454ebc68e55be5b63a67@uni-mainz.de">
<pre class="moz-quote-pre" wrap="">Does == work ?
Ciao
Gerhard
DEEP THOUGHT in D. Adams; Hitchhikers Guide to the Galaxy:
"I think the problem, to be quite honest with you,
is that you have never actually known what the question is."
====================================
Dr. Gerhard H. Fecher
Institut of Inorganic and Analytical Chemistry
Johannes Gutenberg - University
55099 Mainz
and
Max Planck Institute for Chemical Physics of Solids
01187 Dresden
________________________________________
Von: Wien [<a class="moz-txt-link-abbreviated" href="mailto:wien-bounces@zeus.theochem.tuwien.ac.at">wien-bounces@zeus.theochem.tuwien.ac.at</a>] im Auftrag von Sam Trickey [<a class="moz-txt-link-abbreviated" href="mailto:trickey@qtp.ufl.edu">trickey@qtp.ufl.edu</a>]
Gesendet: Dienstag, 25. Juni 2019 15:13
An: <a class="moz-txt-link-abbreviated" href="mailto:wien@zeus.theochem.tuwien.ac.at">wien@zeus.theochem.tuwien.ac.at</a>
Betreff: Re: [Wien] gfortran compilation and run problems for 19.1
See below
On 6/25/19 5:47 AM, Peter Blaha wrote:
Hi,
I can confirm the fix for inputpars.F. Of course, according to fortran standards a logical if should have an .eqv. operator (although I never "understood" what that should be good for ...).
Keeps computer scientists occupied introducing needless and annoying distinctions.
peace, Sam
--
Samuel B. Trickey
QTP, Depts. of Physics and Chemistry
2324 Physics Building
Box 118435
Univ. of Florida
Gainesville, FL 32611-8435
Vox: 352-392-6978 (direct)
Vox: 352-392-1597 (receptionist)
Fax: 352-392-8722
<a class="moz-txt-link-freetext" href="http://www.qtp.ufl.edu/ofdft">http://www.qtp.ufl.edu/ofdft</a>
<a class="moz-txt-link-freetext" href="http://users.clas.ufl.edu/trickey">http://users.clas.ufl.edu/trickey</a>
</pre>
</blockquote>
</body>
</html>