gs2crmod 0.12.10 → 0.12.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 +1 -1
- data/gs2crmod.gemspec +2 -2
- data/lib/gs2crmod/calculations.rb +9 -5
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.12.
|
1
|
+
0.12.11
|
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.12.
|
8
|
+
s.version = "0.12.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"]
|
12
|
-
s.date = "2015-09-
|
12
|
+
s.date = "2015-09-16"
|
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"]
|
@@ -276,12 +276,16 @@ def calculate_frequencies
|
|
276
276
|
'end' => [0, -1, -1, -1])
|
277
277
|
omega_avg_narray.reshape!(*omega_avg_narray.shape.slice(1..2))
|
278
278
|
|
279
|
-
|
280
|
-
@frequency_at_ky_at_kx
|
281
|
-
|
282
|
-
|
279
|
+
if @grid_option == 'single'
|
280
|
+
@frequency_at_ky_at_kx = omega_avg_narray[0]
|
281
|
+
else
|
282
|
+
list(:ky).values.sort.each_with_index do |kyv, i|
|
283
|
+
@frequency_at_ky_at_kx[kyv] = FloatHash.new
|
284
|
+
list(:kx).values.sort.each_with_index do |kxv, j|
|
285
|
+
@frequency_at_ky_at_kx[kyv][kxv] = omega_avg_narray[i, j]
|
286
|
+
end
|
287
|
+
write_results
|
283
288
|
end
|
284
|
-
write_results
|
285
289
|
end
|
286
290
|
end
|
287
291
|
|
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.12.
|
4
|
+
version: 0.12.11
|
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: 2015-09-
|
13
|
+
date: 2015-09-16 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: coderunner
|