Sha256: 8375473dac3fcbcf3fc9231809f374d607fdd5a51df6107bf94ba516395796f6

Contents?: true

Size: 1.13 KB

Versions: 10

Compression:

Stored size: 1.13 KB

Contents

require 'helper'
CodeRunner.setup_run_class('gryfx')

###################################################################################
# Code to analyse the source code to look for new input variables... very imperfect
################################################################################

CodeRunner::Gryfx.synchronise_variables_from_input_file(ENV['GRYFX_SOURCE'] + '/namelist_defaults.in')
#CodeRunner::Gryfx.update_defaults_from_source_code(ENV['GRYFX_SOURCE'])


############################################################
#  Attempt to copy help from equivalent variables in GS2
###########################################################

CodeRunner.setup_run_class('gs2')

CodeRunner::Gryfx.rcp.namelists.each do |namelist, namelist_hash|
	namelist_hash[:variables].each do |var, varhash|
		if CodeRunner::Gs2.rcp.namelists[namelist] and CodeRunner::Gs2.rcp.namelists[namelist][:variables][var]
			varhash[:help] = CodeRunner::Gs2.rcp.namelists[namelist][:variables][var][:help]
			varhash[:description] = CodeRunner::Gs2.rcp.namelists[namelist][:variables][var][:description]
			CodeRunner::Gryfx.save_namelists
		end
	end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
gryfxcrmod-0.1.11 sync_variables/sync_variables.rb
gryfxcrmod-0.1.10 sync_variables/sync_variables.rb
gryfxcrmod-0.1.9 sync_variables/sync_variables.rb
gryfxcrmod-0.1.8 sync_variables/sync_variables.rb
gryfxcrmod-0.1.7 sync_variables/sync_variables.rb
gryfxcrmod-0.1.6 sync_variables/sync_variables.rb
gryfxcrmod-0.1.5 sync_variables/sync_variables.rb
gryfxcrmod-0.1.4 sync_variables/sync_variables.rb
gryfxcrmod-0.1.3 sync_variables/sync_variables.rb
gryfxcrmod-0.1.2 sync_variables/sync_variables.rb