Re: optional assumed-shape array
- From: Ron Shepard <ron-shepard@xxxxxxxxxxxxxxxxxx>
- Date: Mon, 02 Jun 2008 20:35:54 -0500
In article <1ihwfcx.191ny0pvt9bggN%nospam@xxxxxxxxxxxxx>,
nospam@xxxxxxxxxxxxx (Richard Maine) wrote:
mecej4 <mecej4_spam_nyet@xxxxxxxxxxxxx> wrote:
Richard Maine wrote:
real, allocatable :: ai_local(:)
...
if (present(ai)) then
allocate(ai_local(size(ai)))
Shouldn't a check be made for ai having been allocated before using its
contents?
ai isn't allocatable (see the OP's code), so no.
Oops, you're right. My previous reply was about the local array,
not the dummy array. I didn't answer the question that was actually
asked.
$.02 -Ron Shepard
.
- References:
- Re: optional assumed-shape array
- From: Mike
- Re: optional assumed-shape array
- From: Richard Maine
- Re: optional assumed-shape array
- From: mecej4
- Re: optional assumed-shape array
- From: Richard Maine
- Re: optional assumed-shape array
- Prev by Date: Re: one-liner for characater replacement
- Next by Date: Re: one-liner for characater replacement
- Previous by thread: Re: optional assumed-shape array
- Next by thread: Re: optional or interface
- Index(es):