Rocksolid Light

Welcome to Rocksolid Light

mail  files  register  newsreader  groups  login

Message-ID:  

MS-DOS must die!


devel / comp.lang.fortran / Re: Deallocate problem

SubjectAuthor
* Deallocate problemLouis Krupp
`* Deallocate problemdb
 `- Deallocate problemLouis Krupp

1
Re: Deallocate problem

<m5oUK.284288$wLZ8.132681@fx18.iad>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=3627&group=comp.lang.fortran#3627

  copy link   Newsgroups: comp.lang.fortran
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx18.iad.POSTED!not-for-mail
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.2.2
Subject: Re: Deallocate problem
Newsgroups: comp.lang.fortran
References: <tfkp70$1ucf3$1@dont-email.me>
<a1aa6852-cdd1-4b09-84d4-18a6e63bffcbn@googlegroups.com>
<tfnd1h$291l0$1@dont-email.me>
<54ea6c9c-48b1-4e7f-8a80-a07366a6d812n@googlegroups.com>
<tfsc4a$2ten9$1@dont-email.me>
Content-Language: en-US
From: lkrupp@invalid.pssw.com.invalid (Louis Krupp)
In-Reply-To: <tfsc4a$2ten9$1@dont-email.me>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Lines: 26
Message-ID: <m5oUK.284288$wLZ8.132681@fx18.iad>
X-Complaints-To: abuse(at)newshosting.com
NNTP-Posting-Date: Wed, 14 Sep 2022 17:22:26 UTC
Organization: Newshosting.com - Highest quality at a great price! www.newshosting.com
Date: Wed, 14 Sep 2022 11:22:25 -0600
X-Received-Bytes: 1733
 by: Louis Krupp - Wed, 14 Sep 2022 17:22 UTC

On 9/14/2022 4:58 AM, db wrote:
> On 13.09.2022 15.11, Robin Vowels wrote:
> [...]
>>>> .
>>>> You could try deallocating each one separately.
>>> That was the way to the solution. I found that C, X and Z were fine
>>> but it baulked at p. So I looked further and found that although I
>>> had allocated p and r as p(3,NX) and r(3,NZ), in a routine I assigned
>>> values to (p(0,i) and r(0,i), so I overwrote something. When I removed
>>> that, the problem went away. A hard one.
>> .
>> You hadn't used array bounds checking?
>
> I thought I did:
>
> gfortran -o expexpsor.out -g -fcheck=bounds \
>
> ...
>
>

That's why it's good to post a small program that reproduces the
problem; it helps everyone else see exactly what you're seeing.

Louis

Re: Deallocate problem

<tg4ape$5bka$1@dont-email.me>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=3643&group=comp.lang.fortran#3643

  copy link   Newsgroups: comp.lang.fortran
Path: i2pn2.org!i2pn.org!usenet.goja.nl.eu.org!3.eu.feeder.erje.net!feeder.erje.net!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: dieterhansbritz@gmail.com (db)
Newsgroups: comp.lang.fortran
Subject: Re: Deallocate problem
Date: Sat, 17 Sep 2022 13:24:29 +0200
Organization: A noiseless patient Spider
Lines: 35
Message-ID: <tg4ape$5bka$1@dont-email.me>
References: <tfkp70$1ucf3$1@dont-email.me>
<a1aa6852-cdd1-4b09-84d4-18a6e63bffcbn@googlegroups.com>
<tfnd1h$291l0$1@dont-email.me>
<54ea6c9c-48b1-4e7f-8a80-a07366a6d812n@googlegroups.com>
<tfsc4a$2ten9$1@dont-email.me> <m5oUK.284288$wLZ8.132681@fx18.iad>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sat, 17 Sep 2022 11:24:30 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="30846ea3ae22621c459b5b837184fcbf";
logging-data="175754"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18wV6tgBMnIePgqHjc2QglShKmF3nmOOwY="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101
Thunderbird/91.11.0
Cancel-Lock: sha1:lZ9BSWuCQ803ZXw4Jf0nE0jzqzU=
In-Reply-To: <m5oUK.284288$wLZ8.132681@fx18.iad>
Content-Language: en-US
 by: db - Sat, 17 Sep 2022 11:24 UTC

On 14.09.2022 19.22, Louis Krupp wrote:
> On 9/14/2022 4:58 AM, db wrote:
>> On 13.09.2022 15.11, Robin Vowels wrote:
>> [...]
>>>>> .
>>>>> You could try deallocating each one separately.
>>>> That was the way to the solution. I found that C, X and Z were fine
>>>> but it baulked at p. So I looked further and found that although I
>>>> had allocated p and r as p(3,NX) and r(3,NZ), in a routine I assigned
>>>> values to (p(0,i) and r(0,i), so I overwrote something. When I removed
>>>> that, the problem went away. A hard one.
>>> .
>>> You hadn't used array bounds checking?
>>
>> I thought I did:
>>
>> gfortran -o expexpsor.out -g -fcheck=bounds \
>>
>> ...
>>
>>
>
> That's why it's good to post a small program that reproduces the
> problem; it helps everyone else see exactly what you're seeing.
>
> Louis
>

You are right. But before I found the error I didn't know how to produce
a small program that caused it; and now that I know what did, it seems
pointless. I doubt that it woulkd explain why the bounds check didn't
complain. I use gfortran btw.

--
Dieter Britz

Re: Deallocate problem

<A_AVK.381718$6Il8.241688@fx14.iad>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=3650&group=comp.lang.fortran#3650

  copy link   Newsgroups: comp.lang.fortran
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx14.iad.POSTED!not-for-mail
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.2.2
Subject: Re: Deallocate problem
Content-Language: en-US
Newsgroups: comp.lang.fortran
References: <tfkp70$1ucf3$1@dont-email.me>
<a1aa6852-cdd1-4b09-84d4-18a6e63bffcbn@googlegroups.com>
<tfnd1h$291l0$1@dont-email.me>
<54ea6c9c-48b1-4e7f-8a80-a07366a6d812n@googlegroups.com>
<tfsc4a$2ten9$1@dont-email.me> <m5oUK.284288$wLZ8.132681@fx18.iad>
<tg4ape$5bka$1@dont-email.me>
From: lkrupp@invalid.pssw.com.invalid (Louis Krupp)
In-Reply-To: <tg4ape$5bka$1@dont-email.me>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Lines: 41
Message-ID: <A_AVK.381718$6Il8.241688@fx14.iad>
X-Complaints-To: abuse(at)newshosting.com
NNTP-Posting-Date: Sun, 18 Sep 2022 08:51:44 UTC
Organization: Newshosting.com - Highest quality at a great price! www.newshosting.com
Date: Sun, 18 Sep 2022 02:51:45 -0600
X-Received-Bytes: 2314
 by: Louis Krupp - Sun, 18 Sep 2022 08:51 UTC

On 9/17/2022 5:24 AM, db wrote:
> On 14.09.2022 19.22, Louis Krupp wrote:
>> On 9/14/2022 4:58 AM, db wrote:
>>> On 13.09.2022 15.11, Robin Vowels wrote:
>>> [...]
>>>>>> .
>>>>>> You could try deallocating each one separately.
>>>>> That was the way to the solution. I found that C, X and Z were fine
>>>>> but it baulked at p. So I looked further and found that although I
>>>>> had allocated p and r as p(3,NX) and r(3,NZ), in a routine I assigned
>>>>> values to (p(0,i) and r(0,i), so I overwrote something. When I
>>>>> removed
>>>>> that, the problem went away. A hard one.
>>>> .
>>>> You hadn't used array bounds checking?
>>>
>>> I thought I did:
>>>
>>> gfortran -o expexpsor.out -g -fcheck=bounds \
>>>
>>> ...
>>>
>>>
>>
>> That's why it's good to post a small program that reproduces the
>> problem; it helps everyone else see exactly what you're seeing.
>>
>> Louis
>>
>
> You are right. But before I found the error I didn't know how to produce
> a small program that caused it; and now that I know what did, it seems
> pointless. I doubt that it woulkd explain why the bounds check didn't
> complain. I use gfortran btw.
>

Having an example where bounds checking apparently failed might be
interesting. You never know.

Louis

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor