- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Does anyone know if a namelist can read a variable array?
I was wondering if the namelist can first read the array size then read the array values.
Thanks
I was wondering if the namelist can first read the array size then read the array values.
Thanks
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You can have an array in a NAMELIST. However, all you can do is read in values (you can use subscripting in the array reference) - you can't change the array size. For example, you could have in the input:
A(3) = 4,5,6
where this would assign to elements 3:5 (you could also say A(3:5), but not, I think, in 6.1.)
Steve
A(3) = 4,5,6
where this would assign to elements 3:5 (you could also say A(3:5), but not, I think, in 6.1.)
Steve

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page