Class: CodeRunner::Cubecalc::WithNamelist

Inherits:
Cubecalc
  • Object
show all
Defined in:
lib/cubecalccrmod/with_namelist.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.defaults_file_headerObject



29
30
31
32
33
34
35
36
37
38
39
# File 'lib/cubecalccrmod/with_namelist.rb', line 29

def self.defaults_file_header
	<<EOF
#############################################################
#
# Defaults for the test program cubecalc_namelist
#
#############################################################

@defaults_file_description = "Basic defaults"
EOF
end

Instance Method Details

#generate_input_fileObject



11
12
13
# File 'lib/cubecalccrmod/with_namelist.rb', line 11

def generate_input_file
	File.open('input_file.in', 'w'){|file| file.puts input_file_text}
end

#input_file_headerObject



15
16
17
18
19
20
21
22
23
24
25
26
27
# File 'lib/cubecalccrmod/with_namelist.rb', line 15

def input_file_header
	<<EOF
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!
!  Input file for the test program cubecalc_namelist
!
!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

! #@defaults_file_description

EOF
end

#parameter_stringObject



7
8
9
# File 'lib/cubecalccrmod/with_namelist.rb', line 7

def parameter_string
	'input_file.in'
end