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.7.4 lib/trinitycrmod/check_parameters.rb
trinitycrmod-0.7.3 lib/trinitycrmod/check_parameters.rb
trinitycrmod-0.7.2 lib/trinitycrmod/check_parameters.rb
trinitycrmod-0.7.1 lib/trinitycrmod/check_parameters.rb
trinitycrmod-0.7.0 lib/trinitycrmod/check_parameters.rb
trinitycrmod-0.6.9 lib/trinitycrmod/check_parameters.rb
trinitycrmod-0.6.8 lib/trinitycrmod/check_parameters.rb
trinitycrmod-0.6.7 lib/trinitycrmod/check_parameters.rb
trinitycrmod-0.6.6 lib/trinitycrmod/check_parameters.rb
trinitycrmod-0.6.5 lib/trinitycrmod/check_parameters.rb
trinitycrmod-0.6.4 lib/trinitycrmod/check_parameters.rb
trinitycrmod-0.6.3 lib/trinitycrmod/check_parameters.rb
trinitycrmod-0.6.2 lib/trinitycrmod/check_parameters.rb
trinitycrmod-0.6.1 lib/trinitycrmod/check_parameters.rb
trinitycrmod-0.6.0 lib/trinitycrmod/check_parameters.rb
trinitycrmod-0.5.8 lib/trinitycrmod/check_parameters.rb
trinitycrmod-0.5.7 lib/trinitycrmod/check_parameters.rb
trinitycrmod-0.5.6 lib/trinitycrmod/check_parameters.rb
trinitycrmod-0.5.5 lib/trinitycrmod/check_parameters.rb
trinitycrmod-0.5.4 lib/trinitycrmod/check_parameters.rb