gs2crmod 0.11.81 → 0.11.82
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/gs2crmod.gemspec +4 -3
- data/lib/gs2crmod/read_netcdf.rb +5 -5
- data/sync_variables/copy_help.rb +8 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8a9ec4866184f1c377876fbbb1beb6ca83fb73f2
|
4
|
+
data.tar.gz: ab8ac694d76ea93ff291ff2a852109b8cd0f82eb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e0e6745d8c3b8ca5378713d56f5cd45ea7144eb787986851dbdd5a0382fb68832ac1b6c3e4337261e65f43ec90eed252ae93f61b17cc4f3f5dc87a9e23e789c9
|
7
|
+
data.tar.gz: e4e4439e68fe5ea9c5ac42bbf42548043d93100cce03ec807fd68a79e96d7dd8df99e410b6b22d071d1a3767679154b57a9776ae488470475e6a5d6dbe4cc24a
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.11.
|
1
|
+
0.11.82
|
data/gs2crmod.gemspec
CHANGED
@@ -2,17 +2,17 @@
|
|
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.
|
5
|
+
# stub: gs2crmod 0.11.82 ruby lib
|
6
6
|
# stub: ext/extconf.rb
|
7
7
|
|
8
8
|
Gem::Specification.new do |s|
|
9
9
|
s.name = "gs2crmod"
|
10
|
-
s.version = "0.11.
|
10
|
+
s.version = "0.11.82"
|
11
11
|
|
12
12
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
13
13
|
s.require_paths = ["lib"]
|
14
14
|
s.authors = ["Edmund Highcock", "Ferdinand van Wyk"]
|
15
|
-
s.date = "2014-12-
|
15
|
+
s.date = "2014-12-16"
|
16
16
|
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
17
|
s.email = "edmundhighcock@sourceforge.net"
|
18
18
|
s.extensions = ["ext/extconf.rb"]
|
@@ -71,6 +71,7 @@ Gem::Specification.new do |s|
|
|
71
71
|
"lib/gs2crmod_extension.rb",
|
72
72
|
"sync_mediawiki/helper.rb",
|
73
73
|
"sync_mediawiki/sync_mediawiki.rb",
|
74
|
+
"sync_variables/copy_help.rb",
|
74
75
|
"sync_variables/helper.rb",
|
75
76
|
"sync_variables/sync_variables.rb",
|
76
77
|
"sync_variables_sgk/helper.rb",
|
data/lib/gs2crmod/read_netcdf.rb
CHANGED
@@ -105,15 +105,15 @@ class NetcdfSmartReader
|
|
105
105
|
end
|
106
106
|
def dimension_variable_name(n)
|
107
107
|
case n
|
108
|
-
when 'X'
|
108
|
+
when 'X', 'kx'
|
109
109
|
'kx'
|
110
|
-
when 'Y'
|
110
|
+
when 'Y', 'ky'
|
111
111
|
'ky'
|
112
|
-
when 'z'
|
112
|
+
when 'z', 'theta'
|
113
113
|
'kz'
|
114
|
-
when 'e'
|
114
|
+
when 'e', 'energy'
|
115
115
|
'energy'
|
116
|
-
when 'l'
|
116
|
+
when 'l', 'lambda'
|
117
117
|
'lambda'
|
118
118
|
when 't'
|
119
119
|
n
|
@@ -0,0 +1,8 @@
|
|
1
|
+
require 'pp'
|
2
|
+
namelists = eval(File.read('lib/gs2crmod/namelists.rb'))
|
3
|
+
p 'read namelists'
|
4
|
+
namelists[:diagnostics_config][:variables].each do |var, varhash|
|
5
|
+
varhash[:help] ||= namelists[:gs2_diagnostics_knobs][:variables][var][:help] rescue ""
|
6
|
+
varhash[:description] ||= namelists[:gs2_diagnostics_knobs][:variables][var][:description] rescue ""
|
7
|
+
end
|
8
|
+
File.open('lib/gs2crmod/namelists.rb', 'w'){|file| file.puts namelists.pretty_inspect}
|
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.11.
|
4
|
+
version: 0.11.82
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Edmund Highcock
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-12-
|
12
|
+
date: 2014-12-16 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: coderunner
|
@@ -185,6 +185,7 @@ files:
|
|
185
185
|
- lib/gs2crmod_extension.rb
|
186
186
|
- sync_mediawiki/helper.rb
|
187
187
|
- sync_mediawiki/sync_mediawiki.rb
|
188
|
+
- sync_variables/copy_help.rb
|
188
189
|
- sync_variables/helper.rb
|
189
190
|
- sync_variables/sync_variables.rb
|
190
191
|
- sync_variables_sgk/helper.rb
|