Class: Funit::Compiler

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

Overview

Fortran compiler

Instance Method Summary collapse

Constructor Details

#initializeCompiler

Returns a new instance of Compiler.



8
9
10
11
12
13
14
15
16
17
18
19
# File 'lib/funit/compiler.rb', line 8

def initialize
  error_message = <<-COMPILER
Fortran compiler environment variable 'FC' not set.

For example, if you had the g95 compiler:

  sh: export FC=g95
 csh: setenv FC g95
 windows: set FC=C:\\Program Files\\g95
  COMPILER
  raise error_message unless ENV['FC']
end