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 = "Fortran compiler environment variable 'FC' not set.\n\nFor example, if you had the g95 compiler:\n\n  sh: export FC=g95\n csh: setenv FC g95\n windows: set FC=C:\\\\Program Files\\\\g95\n  COMPILER\n  raise error_message unless ENV['FC']\nend\n"