gs2crmod 0.5.8 → 0.5.9
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/gs2crmod.gemspec +3 -3
- data/lib/gs2crmod/gsl_data.rb +5 -0
- data/lib/gs2crmod/ingen.rb +4 -0
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.5.
|
1
|
+
0.5.9
|
data/gs2crmod.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "gs2crmod"
|
8
|
-
s.version = "0.5.
|
8
|
+
s.version = "0.5.9"
|
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"]
|
12
|
-
s.date = "2013-05-
|
12
|
+
s.date = "2013-05-28"
|
13
13
|
s.description = "GS2 is a gyrokinetic flux tube initial value turbulence code which can be used for fusion or astrophysical plasmas. CodeRunner is a framework for the automated running and analysis of large simulations. This module allows GS2 (and its sister code AstroGK) to harness the power of the CodeRunner framework."
|
14
14
|
s.email = "edmundhighcock@sourceforge.net"
|
15
15
|
s.extensions = ["ext/extconf.rb"]
|
@@ -69,7 +69,7 @@ Gem::Specification.new do |s|
|
|
69
69
|
s.licenses = ["GSLv3"]
|
70
70
|
s.require_paths = ["lib"]
|
71
71
|
s.required_ruby_version = Gem::Requirement.new(">= 1.9.1")
|
72
|
-
s.rubygems_version = "1.8.
|
72
|
+
s.rubygems_version = "1.8.23"
|
73
73
|
s.summary = "Module to allow CodeRunner to run and analyse the GS2 and AstroGK codes."
|
74
74
|
|
75
75
|
if s.respond_to? :specification_version then
|
data/lib/gs2crmod/gsl_data.rb
CHANGED
@@ -806,6 +806,11 @@ module GSLVectorComplexes
|
|
806
806
|
case @grid_option
|
807
807
|
when "single"
|
808
808
|
temp = GSL::Vector.alloc(netcdf_file.var('phi').get({'start' => [0,0, 0, 0], 'end' => [-1,-1,0,0]}).to_a.flatten)
|
809
|
+
when "range"
|
810
|
+
a = netcdf_file.var('phi').get({'start' => [0, 0, 0, options[:ky_index] - 1], 'end' => [-1, -1, -1, options[:ky_index] - 1]})
|
811
|
+
#temp = GSL::Vector.alloc(a.to_a[0].values_at(*kx_elements).flatten)
|
812
|
+
temp = GSL::Vector.alloc(a.to_a[0][0].flatten)
|
813
|
+
end
|
809
814
|
when "box"
|
810
815
|
ep 'kx_elements', kx_elements = gsl_vector('linked_kx_elements', options).to_a
|
811
816
|
a = netcdf_file.var('phi').get({'start' => [0, 0, 0, options[:ky_index] - 1], 'end' => [-1, -1, -1, options[:ky_index] - 1]})
|
data/lib/gs2crmod/ingen.rb
CHANGED
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.
|
4
|
+
version: 0.5.9
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2013-05-
|
13
|
+
date: 2013-05-28 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: coderunner
|
@@ -171,7 +171,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
171
171
|
version: '0'
|
172
172
|
requirements: []
|
173
173
|
rubyforge_project:
|
174
|
-
rubygems_version: 1.8.
|
174
|
+
rubygems_version: 1.8.23
|
175
175
|
signing_key:
|
176
176
|
specification_version: 3
|
177
177
|
summary: Module to allow CodeRunner to run and analyse the GS2 and AstroGK codes.
|