-
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
Separate vector element controls are collapsed into array index, which changes results #87
Comments
I agree more control would be very useful, and has been suggested in other What compiler are you using? This seems more like a compiler bug to me. (Edit: #24 first discussed supporting per-entry output) |
I'm using gfortran 8.2.1 on Fedora 28.
|
Very confused.. I am also using 8.2.1. Might be useful to backtrack: What did you use f90nml to do? |
D'oh! I'm so sorry! It looks like this is an error on my part. I must've messed with a file by hand. I was starting with this:
which
This is valid an works correctly. For some reason, I was testing
which is where the mistake comes in: I'm not supplying Basically, I thought I could assign a vector of parameters using a scalar, like I can in compiled code, but I'm wrong. And |
No worries! I actually had thought you stumbled on a known bug of the command line tool, but glad it's ok now :). |
Here's a small example program that reads some numbers from a namelist:
Here's the namelist:
If I compile
vector.f90
and run it, I get the expected outputHowever, if I run
f90nml
oncontrols.in
, it collapses the namelist input towhich runs but doesn't give the expected results. If I change
controls.in
to thef90nml
output, I instead getI'm familiar with this issue from development work, which tripped up a few users.
I'm willing to take a stab at fixing this if we agree on the desired behaviour. I think that
f90nml
should leave entries like this unchanged.The text was updated successfully, but these errors were encountered: