Read the problem dimension from the &control group of filename.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | filename |
path to the namelist file |
||
| integer, | intent(out) | :: | dim |
1, 2, or 3 (defaults to 1 when &control is absent) |
||
| logical, | intent(out) | :: | ok |
.true. on success; .false. on open/parse/range error |
||
| character(len=*), | intent(out) | :: | message |
human-readable error when ok is .false. |