Home > Archive > Fortran > April 2006 > index elemental?
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
|
|
|
| Just wondering if this is correct ... I'm nearly sure it is, but we
have a problem with one compiler.
write(6,*) INDEX("abc",(/"a","b"/)).EQ.0
END
Thanks,
Joost
| |
| Richard Maine 2006-04-21, 7:05 pm |
| Joost <jv244@cam.ac.uk> wrote:
> Just wondering if this is correct ... I'm nearly sure it is, but we
> have a problem with one compiler.
>
> write(6,*) INDEX("abc",(/"a","b"/)).EQ.0
> END
Yes, INDEX is elemental. I don't see any obvious problem in the above.
--
Richard Maine | Good judgement comes from experience;
email: last name at domain . net | experience comes from bad judgement.
domain: summertriangle | -- Mark Twain
|
|
|
|
|