gs2crmod 0.5.10 → 0.5.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.5.10
1
+ 0.5.11
data/gs2crmod.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "gs2crmod"
8
- s.version = "0.5.10"
8
+ s.version = "0.5.11"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Edmund Highcock", "Ferdinand van Wyk"]
@@ -556,7 +556,7 @@ module GSLVectors
556
556
  def theta_along_field_line_gsl_vector(options)
557
557
  Dir.chdir(@directory) do
558
558
  case @grid_option
559
- when "single"
559
+ when "single", "range"
560
560
  theta_vector = gsl_vector(:theta)
561
561
  when "box"
562
562
  #eputs "Start theta_along_field_line"
@@ -814,7 +814,10 @@ module GSLVectorComplexes
814
814
  ep 'kx_elements', kx_elements = gsl_vector('linked_kx_elements', options).to_a
815
815
  a = netcdf_file.var('phi').get({'start' => [0, 0, 0, options[:ky_index] - 1], 'end' => [-1, -1, -1, options[:ky_index] - 1]})
816
816
  temp = GSL::Vector.alloc(a.to_a[0].values_at(*kx_elements).flatten)
817
+ else
818
+ raise "invalid grid option"
817
819
  end
820
+
818
821
  vector = GSL::Vector::Complex.alloc(temp.subvector_with_stride(0, 2), temp.subvector_with_stride(1, 2))
819
822
  #ep 'vector', vector.real
820
823
  return vector
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gs2crmod
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.10
4
+ version: 0.5.11
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: