gs2crmod 0.11.85 → 0.11.86
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 +5 -7
- data/lib/gs2crmod/graphs.rb +16 -0
- data/lib/gs2crmod/gsl_data.rb +6 -1
- metadata +40 -22
- checksums.yaml +0 -7
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.11.
|
|
1
|
+
0.11.86
|
data/gs2crmod.gemspec
CHANGED
|
@@ -2,17 +2,14 @@
|
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
|
3
3
|
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
|
4
4
|
# -*- encoding: utf-8 -*-
|
|
5
|
-
# stub: gs2crmod 0.11.85 ruby lib
|
|
6
|
-
# stub: ext/extconf.rb
|
|
7
5
|
|
|
8
6
|
Gem::Specification.new do |s|
|
|
9
7
|
s.name = "gs2crmod"
|
|
10
|
-
s.version = "0.11.
|
|
8
|
+
s.version = "0.11.86"
|
|
11
9
|
|
|
12
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
|
13
|
-
s.require_paths = ["lib"]
|
|
14
11
|
s.authors = ["Edmund Highcock", "Ferdinand van Wyk"]
|
|
15
|
-
s.date = "2015-01-
|
|
12
|
+
s.date = "2015-01-27"
|
|
16
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."
|
|
17
14
|
s.email = "edmundhighcock@sourceforge.net"
|
|
18
15
|
s.extensions = ["ext/extconf.rb"]
|
|
@@ -79,12 +76,13 @@ Gem::Specification.new do |s|
|
|
|
79
76
|
]
|
|
80
77
|
s.homepage = "http://gs2crmod.sourceforge.net"
|
|
81
78
|
s.licenses = ["GSLv3"]
|
|
79
|
+
s.require_paths = ["lib"]
|
|
82
80
|
s.required_ruby_version = Gem::Requirement.new(">= 1.9.1")
|
|
83
|
-
s.rubygems_version = "
|
|
81
|
+
s.rubygems_version = "1.8.23"
|
|
84
82
|
s.summary = "Module to allow CodeRunner to run and analyse the GS2 and AstroGK codes."
|
|
85
83
|
|
|
86
84
|
if s.respond_to? :specification_version then
|
|
87
|
-
s.specification_version =
|
|
85
|
+
s.specification_version = 3
|
|
88
86
|
|
|
89
87
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
|
90
88
|
s.add_runtime_dependency(%q<coderunner>, [">= 0.15.5"])
|
data/lib/gs2crmod/graphs.rb
CHANGED
|
@@ -56,6 +56,7 @@ def auto_axiskits(name, options)
|
|
|
56
56
|
#'phi0_over_x_over_y' => ["Phi at t = #{sprintf("%.3f" ,(options[:t] or list(:t)[options[:t_index]] or list(:t).values.max))}", '', 2],
|
|
57
57
|
'phi0_over_x_over_y' => ["Phi at theta = 0", '', 2],
|
|
58
58
|
'es_mom_flux_over_time' => ["#{species_type((options[:species_index] or 1)).capitalize} Momentum Flux", '', 1],
|
|
59
|
+
'es_part_flux_over_time' => ["#{species_type((options[:species_index] or 1)).capitalize} Particle Flux", '', 1],
|
|
59
60
|
'zonal_spectrum' => ["Zonal spectrum at t = #{sprintf("%.3f" ,(options[:t] or list(:t)[options[:t_index]] or list(:t).values.max))}", '', 1],
|
|
60
61
|
'zonal_flow_velocity_over_x' => ['Zonal Flow Velocity', "", 1],
|
|
61
62
|
'mean_flow_velocity_over_x' => ['Mean Flow Velocity', "", 1]
|
|
@@ -466,6 +467,21 @@ module GraphKits
|
|
|
466
467
|
end
|
|
467
468
|
end
|
|
468
469
|
|
|
470
|
+
def es_part_flux_vs_time_graphkit(options={})
|
|
471
|
+
case options[:command]
|
|
472
|
+
when :help
|
|
473
|
+
return "Particle flux vs time for each species."
|
|
474
|
+
when :options
|
|
475
|
+
return [:t_index_window, :species_index]
|
|
476
|
+
else
|
|
477
|
+
kit = GraphKit.autocreate({x: axiskit('t', options), y: axiskit('es_part_flux_over_time', options)})
|
|
478
|
+
kit.data[0].title = "#{species_type(options[:species_index])} partflux: #@run_name"
|
|
479
|
+
kit.data[0].with = "l" #"lines"
|
|
480
|
+
kit.file_name = options[:graphkit_name]
|
|
481
|
+
return kit
|
|
482
|
+
end
|
|
483
|
+
end
|
|
484
|
+
|
|
469
485
|
def transient_es_heat_flux_amplification_vs_kx_graphkit(options={})
|
|
470
486
|
options[:kxy] = :kx
|
|
471
487
|
transient_es_heat_flux_amplification_vs_kxy_graphkit(options)
|
data/lib/gs2crmod/gsl_data.rb
CHANGED
|
@@ -879,11 +879,16 @@ module GSLVectors
|
|
|
879
879
|
end
|
|
880
880
|
def es_mom_flux_over_time_gsl_vector(options)
|
|
881
881
|
Dir.chdir(@directory) do
|
|
882
|
-
|
|
883
882
|
options.setup_time_window
|
|
884
883
|
return GSL::Vector.alloc(netcdf_file.var('es_mom_flux').get('start' => [options[:species_index].to_i - 1, options[:begin_element]], 'end' => [options[:species_index].to_i - 1, options[:end_element]]).to_a.flatten)
|
|
885
884
|
end
|
|
886
885
|
end
|
|
886
|
+
def es_part_flux_over_time_gsl_vector(options)
|
|
887
|
+
Dir.chdir(@directory) do
|
|
888
|
+
options.setup_time_window
|
|
889
|
+
return GSL::Vector.alloc(netcdf_file.var('es_part_flux').get('start' => [options[:species_index].to_i - 1, options[:begin_element]], 'end' => [options[:species_index].to_i - 1, options[:end_element]]).to_a.flatten)
|
|
890
|
+
end
|
|
891
|
+
end
|
|
887
892
|
# Velocity space diagnostics: fraction of dist func in higher
|
|
888
893
|
# pitch angle harmonics
|
|
889
894
|
def lpc_pitch_angle_gsl_vector(options)
|
metadata
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: gs2crmod
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.11.
|
|
4
|
+
version: 0.11.86
|
|
5
|
+
prerelease:
|
|
5
6
|
platform: ruby
|
|
6
7
|
authors:
|
|
7
8
|
- Edmund Highcock
|
|
@@ -9,53 +10,60 @@ authors:
|
|
|
9
10
|
autorequire:
|
|
10
11
|
bindir: bin
|
|
11
12
|
cert_chain: []
|
|
12
|
-
date: 2015-01-
|
|
13
|
+
date: 2015-01-27 00:00:00.000000000 Z
|
|
13
14
|
dependencies:
|
|
14
15
|
- !ruby/object:Gem::Dependency
|
|
15
16
|
name: coderunner
|
|
16
17
|
requirement: !ruby/object:Gem::Requirement
|
|
18
|
+
none: false
|
|
17
19
|
requirements:
|
|
18
|
-
- -
|
|
20
|
+
- - ! '>='
|
|
19
21
|
- !ruby/object:Gem::Version
|
|
20
22
|
version: 0.15.5
|
|
21
23
|
type: :runtime
|
|
22
24
|
prerelease: false
|
|
23
25
|
version_requirements: !ruby/object:Gem::Requirement
|
|
26
|
+
none: false
|
|
24
27
|
requirements:
|
|
25
|
-
- -
|
|
28
|
+
- - ! '>='
|
|
26
29
|
- !ruby/object:Gem::Version
|
|
27
30
|
version: 0.15.5
|
|
28
31
|
- !ruby/object:Gem::Dependency
|
|
29
32
|
name: rubyhacks
|
|
30
33
|
requirement: !ruby/object:Gem::Requirement
|
|
34
|
+
none: false
|
|
31
35
|
requirements:
|
|
32
|
-
- -
|
|
36
|
+
- - ! '>='
|
|
33
37
|
- !ruby/object:Gem::Version
|
|
34
38
|
version: 0.1.2
|
|
35
39
|
type: :runtime
|
|
36
40
|
prerelease: false
|
|
37
41
|
version_requirements: !ruby/object:Gem::Requirement
|
|
42
|
+
none: false
|
|
38
43
|
requirements:
|
|
39
|
-
- -
|
|
44
|
+
- - ! '>='
|
|
40
45
|
- !ruby/object:Gem::Version
|
|
41
46
|
version: 0.1.2
|
|
42
47
|
- !ruby/object:Gem::Dependency
|
|
43
48
|
name: ruby-netcdf-updated
|
|
44
49
|
requirement: !ruby/object:Gem::Requirement
|
|
50
|
+
none: false
|
|
45
51
|
requirements:
|
|
46
|
-
- -
|
|
52
|
+
- - ! '>='
|
|
47
53
|
- !ruby/object:Gem::Version
|
|
48
54
|
version: 0.6.6.1
|
|
49
55
|
type: :runtime
|
|
50
56
|
prerelease: false
|
|
51
57
|
version_requirements: !ruby/object:Gem::Requirement
|
|
58
|
+
none: false
|
|
52
59
|
requirements:
|
|
53
|
-
- -
|
|
60
|
+
- - ! '>='
|
|
54
61
|
- !ruby/object:Gem::Version
|
|
55
62
|
version: 0.6.6.1
|
|
56
63
|
- !ruby/object:Gem::Dependency
|
|
57
64
|
name: shoulda
|
|
58
65
|
requirement: !ruby/object:Gem::Requirement
|
|
66
|
+
none: false
|
|
59
67
|
requirements:
|
|
60
68
|
- - '='
|
|
61
69
|
- !ruby/object:Gem::Version
|
|
@@ -63,6 +71,7 @@ dependencies:
|
|
|
63
71
|
type: :development
|
|
64
72
|
prerelease: false
|
|
65
73
|
version_requirements: !ruby/object:Gem::Requirement
|
|
74
|
+
none: false
|
|
66
75
|
requirements:
|
|
67
76
|
- - '='
|
|
68
77
|
- !ruby/object:Gem::Version
|
|
@@ -70,57 +79,65 @@ dependencies:
|
|
|
70
79
|
- !ruby/object:Gem::Dependency
|
|
71
80
|
name: rdoc
|
|
72
81
|
requirement: !ruby/object:Gem::Requirement
|
|
82
|
+
none: false
|
|
73
83
|
requirements:
|
|
74
|
-
- -
|
|
84
|
+
- - ~>
|
|
75
85
|
- !ruby/object:Gem::Version
|
|
76
86
|
version: '3.12'
|
|
77
87
|
type: :development
|
|
78
88
|
prerelease: false
|
|
79
89
|
version_requirements: !ruby/object:Gem::Requirement
|
|
90
|
+
none: false
|
|
80
91
|
requirements:
|
|
81
|
-
- -
|
|
92
|
+
- - ~>
|
|
82
93
|
- !ruby/object:Gem::Version
|
|
83
94
|
version: '3.12'
|
|
84
95
|
- !ruby/object:Gem::Dependency
|
|
85
96
|
name: bundler
|
|
86
97
|
requirement: !ruby/object:Gem::Requirement
|
|
98
|
+
none: false
|
|
87
99
|
requirements:
|
|
88
|
-
- -
|
|
100
|
+
- - ! '>'
|
|
89
101
|
- !ruby/object:Gem::Version
|
|
90
102
|
version: 1.0.0
|
|
91
103
|
type: :development
|
|
92
104
|
prerelease: false
|
|
93
105
|
version_requirements: !ruby/object:Gem::Requirement
|
|
106
|
+
none: false
|
|
94
107
|
requirements:
|
|
95
|
-
- -
|
|
108
|
+
- - ! '>'
|
|
96
109
|
- !ruby/object:Gem::Version
|
|
97
110
|
version: 1.0.0
|
|
98
111
|
- !ruby/object:Gem::Dependency
|
|
99
112
|
name: jeweler
|
|
100
113
|
requirement: !ruby/object:Gem::Requirement
|
|
114
|
+
none: false
|
|
101
115
|
requirements:
|
|
102
|
-
- -
|
|
116
|
+
- - ! '>='
|
|
103
117
|
- !ruby/object:Gem::Version
|
|
104
118
|
version: 1.8.4
|
|
105
119
|
type: :development
|
|
106
120
|
prerelease: false
|
|
107
121
|
version_requirements: !ruby/object:Gem::Requirement
|
|
122
|
+
none: false
|
|
108
123
|
requirements:
|
|
109
|
-
- -
|
|
124
|
+
- - ! '>='
|
|
110
125
|
- !ruby/object:Gem::Version
|
|
111
126
|
version: 1.8.4
|
|
112
127
|
- !ruby/object:Gem::Dependency
|
|
113
128
|
name: minitest
|
|
114
129
|
requirement: !ruby/object:Gem::Requirement
|
|
130
|
+
none: false
|
|
115
131
|
requirements:
|
|
116
|
-
- -
|
|
132
|
+
- - ~>
|
|
117
133
|
- !ruby/object:Gem::Version
|
|
118
134
|
version: '4'
|
|
119
135
|
type: :development
|
|
120
136
|
prerelease: false
|
|
121
137
|
version_requirements: !ruby/object:Gem::Requirement
|
|
138
|
+
none: false
|
|
122
139
|
requirements:
|
|
123
|
-
- -
|
|
140
|
+
- - ~>
|
|
124
141
|
- !ruby/object:Gem::Version
|
|
125
142
|
version: '4'
|
|
126
143
|
description: GS2 is a gyrokinetic flux tube initial value turbulence code which can
|
|
@@ -136,7 +153,7 @@ extra_rdoc_files:
|
|
|
136
153
|
- README.md
|
|
137
154
|
- README.rdoc
|
|
138
155
|
files:
|
|
139
|
-
-
|
|
156
|
+
- .document
|
|
140
157
|
- Gemfile
|
|
141
158
|
- LICENSE.txt
|
|
142
159
|
- README.md
|
|
@@ -193,25 +210,26 @@ files:
|
|
|
193
210
|
homepage: http://gs2crmod.sourceforge.net
|
|
194
211
|
licenses:
|
|
195
212
|
- GSLv3
|
|
196
|
-
metadata: {}
|
|
197
213
|
post_install_message:
|
|
198
214
|
rdoc_options: []
|
|
199
215
|
require_paths:
|
|
200
216
|
- lib
|
|
201
217
|
required_ruby_version: !ruby/object:Gem::Requirement
|
|
218
|
+
none: false
|
|
202
219
|
requirements:
|
|
203
|
-
- -
|
|
220
|
+
- - ! '>='
|
|
204
221
|
- !ruby/object:Gem::Version
|
|
205
222
|
version: 1.9.1
|
|
206
223
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
224
|
+
none: false
|
|
207
225
|
requirements:
|
|
208
|
-
- -
|
|
226
|
+
- - ! '>='
|
|
209
227
|
- !ruby/object:Gem::Version
|
|
210
228
|
version: '0'
|
|
211
229
|
requirements: []
|
|
212
230
|
rubyforge_project:
|
|
213
|
-
rubygems_version:
|
|
231
|
+
rubygems_version: 1.8.23
|
|
214
232
|
signing_key:
|
|
215
|
-
specification_version:
|
|
233
|
+
specification_version: 3
|
|
216
234
|
summary: Module to allow CodeRunner to run and analyse the GS2 and AstroGK codes.
|
|
217
235
|
test_files: []
|
checksums.yaml
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
SHA1:
|
|
3
|
-
metadata.gz: 7940a19eb719531ed06ee4b1e898068b7e8d2ab0
|
|
4
|
-
data.tar.gz: 083c2ab1b9205a6a374f91952f6ce78f7cac3786
|
|
5
|
-
SHA512:
|
|
6
|
-
metadata.gz: f4efdf8ba32a8f97ad52938d4ab35538cb05ae44018d1d6632cd2b3dbe6097b98ef578209483f526c5c77c727991def361407f348f09b4b1556dcbc8e01945c8
|
|
7
|
-
data.tar.gz: f3269ef0b4d623b45296f11f283c6ad822d387b11349172720228330858ec495103f694c3715c1e36fa5d55f7f7a2503e7673015f49a5722c9fcdf70264fe56e
|