Class: CodeRunner::Cubecalc::WithNamelist
- Defined in:
- lib/cubecalccrmod/with_namelist.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.defaults_file_header ⇒ Object
29 30 31 32 33 34 35 36 37 38 39 |
# File 'lib/cubecalccrmod/with_namelist.rb', line 29 def self.defaults_file_header "#############################################################\n#\n# Defaults for the test program cubecalc_namelist\n#\n#############################################################\n\n@defaults_file_description = \"Basic defaults\"\n" end |
Instance Method Details
#generate_input_file ⇒ Object
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_header ⇒ Object
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 "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n!\n! Input file for the test program cubecalc_namelist\n!\n!\n!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n\n! \#@defaults_file_description\n\n" end |
#parameter_string ⇒ Object
7 8 9 |
# File 'lib/cubecalccrmod/with_namelist.rb', line 7 def parameter_string 'input_file.in' end |