I wish to define a parameter that will not change in my module from a input variable.
Example
module foo
contains
subroutine function1(external_var)
integer, parameter x = external_var(1)
write(*,*) x
end subroutine function1
end module foo
However, this gives an error.
PGF90-S-0087-Non-constant expression where constant expression required