-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Parsing error using array assignment in namelist #127
Comments
Looks like broadcasting to fields of arrays of derived types is not currently working. This does work:
but your example does not. I will have a look, thanks for reporting it. |
I realize I was unclear on what your example was supposed to produce. This is probably closer to what you were expecting:
At first I thought there may be some ambiguity about whether
Intel gives a more vague error, but otherwise also objects to reading such a record. Also just to clarify: there is no issue with arrays of derived types containing arrays. This seems to have more to do with limitations of the namelist record syntax. I can't find where this is explained in the language standard, but I'm guessing that interpretation in my previous comment is wrong, and the one in this comment is correct: if the derived type is an array, then we can assume its fields to be scalars. |
In the real/production code that I modified to create the above example |
It looks like I made an absolute mess of derived type array handling, so I don't know if there's a quick fix here. Aside from the usual problems, there's a very strong preference to handling I'll try to find a bit of time to get it working, but no idea when it will get done. Apologies if you're working under some kind of time limit here. |
One of the namelists I am trying to parse using
f90nml
contains an array assignment of the following syntaxIf I try to read/parse this namelist
I will get the following error
The text was updated successfully, but these errors were encountered: