Message from discussion
A Error Compare Logical(4) -- Help
MIME-Version: 1.0
Received: by 10.100.6.16 with SMTP id 16mr203942anf.8.1244749113614; Thu, 11
Jun 2009 12:38:33 -0700 (PDT)
Date: Thu, 11 Jun 2009 12:38:33 -0700 (PDT)
In-Reply-To: <Pine.LNX.4.64.0906111319370.3546@localhost.localdomain>
X-IP: 70.152.90.198
References: <fec22d23-71ac-443f-80fd-4eed6d6e1b60@q37g2000vbi.googlegroups.com>
<Pine.LNX.4.64.0906111319370.3546@localhost.localdomain>
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.0.10)
Gecko/2009042316 Firefox/3.0.10 (.NET CLR 3.5.30729),gzip(gfe),gzip(gfe)
Message-ID: <8002947c-0b12-424a-823d-be22112ff517@g15g2000pra.googlegroups.com>
Subject: Re: A Error Compare Logical(4) -- Help
From: Shangshu Cai <shangshu....@gmail.com>
To: gg95 <gg95@googlegroups.com>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Thanks.
shangshu
On Jun 11, 12:21=A0pm, Robert Funnell <robert.funn...@mcgill.ca> wrote:
> On Thu, 11 Jun 2009, Shangshu Cai wrote:
> > =A0 =A0 I am totally a newbie to =A0Fortran and G95. I wrote a small
> > program. =A0The compiler gave me the error as followed:
>
> > g95 -o test test.f90 -L. ex.dll
> > In file test.f90:7
>
> > IF (WFLG /=3D .FALSE.) r =3D 1
> > =A0 =A0 =A0 =A0 =A01
> > Error: Operands of comparison operator '.ne.' at (1) are LOGICAL(4)/
> > LOGICAL(4)
>
> Normally one would just say
> =A0 =A0IF (WFLG) r =3D 1
> =A0 or
> =A0 =A0IF (.NOT.WFLG) r =3D 1
>