Method: CodeRunner::Run::FortranNamelist.known_code_variable?
- Defined in:
- lib/coderunner/fortran_namelist.rb
.known_code_variable?(namelist, var) ⇒ Boolean
Returns true if the code variable (which may correspond to the code name) is present in namelist
115 116 117 118 119 |
# File 'lib/coderunner/fortran_namelist.rb', line 115 def self.known_code_variable?(namelist, var) return true if rcp.namelists[namelist.to_s.downcase.to_sym] and rcp.namelists[namelist.to_s.downcase.to_sym][:variables].map{|(v,h)| (h[:code_name] or v).to_s.downcase.to_sym}.include? var.to_s.downcase.to_sym # end return false end |