Class: Funit::Compiler

Inherits:
Object
  • Object
show all
Defined in:
lib/funit/functions.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name = ENV['FC']) ⇒ Compiler

Returns a new instance of Compiler.



17
18
19
20
21
22
23
24
25
26
27
28
# File 'lib/funit/functions.rb', line 17

def initialize( name=ENV['FC'] )
  errorMessage = "\nFortran compiler environment variable 'FC' not set:\n\nfor bourne-based shells: export FC=lf95 (in .profile)\nfor c-based shells: setenv FC lf95 (in .login)\nfor windows: set FC=C:\\\\Program Files\\\\lf95 (in autoexec.bat)\n\n"
  raise(errorMessage) unless @name = name
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



15
16
17
# File 'lib/funit/functions.rb', line 15

def name
  @name
end