Sha256: 38907b559454f351471d71b6a43647eac994ee0b6f7b52a5daab3e74f5378508

Contents?: true

Size: 905 Bytes

Versions: 44

Compression:

Stored size: 905 Bytes

Contents

class CodeRunner::Trinity
	def check_parameters

		check_geometery
		check_parallelisation
		check_flux_option

	end

	def check_geometery
		error( "Can't find geo_file #@geo_file (the path of geo file should be either absolute or set relative to the run folder #@directory). If you are not using a geometry file for this run please unset the parameter geo_file.") if @geo_file and not FileTest.exist? @geo_file
	end

	def check_parallelisation
		error("nrad must be explicitly specified") unless @nrad
		error("Number of jobs: #{n_flux_tubes_jac} must evenly divide the number of processors: #{actual_number_of_processors} when fork_flag is .true.") if fork_flag_actual.fortran_true? and not actual_number_of_processors%n_flux_tubes_jac == 0

	end

	def check_flux_option
		if @flux_option == "gs2"
		 error("subfolders must be .true. ") unless @subfolders and @subfolders.fortran_true?
		end
	end
end

Version data entries

44 entries across 44 versions & 1 rubygems

Version Path
trinitycrmod-0.8.14 lib/trinitycrmod/check_parameters.rb
trinitycrmod-0.8.13 lib/trinitycrmod/check_parameters.rb
trinitycrmod-0.8.12 lib/trinitycrmod/check_parameters.rb
trinitycrmod-0.8.11 lib/trinitycrmod/check_parameters.rb
trinitycrmod-0.8.10 lib/trinitycrmod/check_parameters.rb
trinitycrmod-0.8.9 lib/trinitycrmod/check_parameters.rb
trinitycrmod-0.8.8 lib/trinitycrmod/check_parameters.rb
trinitycrmod-0.8.7 lib/trinitycrmod/check_parameters.rb
trinitycrmod-0.8.5 lib/trinitycrmod/check_parameters.rb
trinitycrmod-0.8.3 lib/trinitycrmod/check_parameters.rb
trinitycrmod-0.8.2 lib/trinitycrmod/check_parameters.rb
trinitycrmod-0.8.1 lib/trinitycrmod/check_parameters.rb
trinitycrmod-0.8.0 lib/trinitycrmod/check_parameters.rb
trinitycrmod-0.7.11 lib/trinitycrmod/check_parameters.rb
trinitycrmod-0.7.10 lib/trinitycrmod/check_parameters.rb
trinitycrmod-0.7.9 lib/trinitycrmod/check_parameters.rb
trinitycrmod-0.7.8 lib/trinitycrmod/check_parameters.rb
trinitycrmod-0.7.7 lib/trinitycrmod/check_parameters.rb
trinitycrmod-0.7.6 lib/trinitycrmod/check_parameters.rb
trinitycrmod-0.7.5 lib/trinitycrmod/check_parameters.rb