read_dim Subroutine

public subroutine read_dim(filename, dim, ok, message)

Read the problem dimension from the &control group of filename.

Arguments

Type IntentOptional 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.


Namelists

Namelist control


Variables

Name Type Default Description
dim integer None

1, 2, or 3 (defaults to 1 when &control is absent)