trinitycrmod 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/trinitycrmod/graphs.rb +4 -1
- data/lib/trinitycrmod/trinity.rb +2 -2
- data/trinitycrmod.gemspec +2 -2
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.1
|
data/lib/trinitycrmod/graphs.rb
CHANGED
@@ -10,8 +10,11 @@ class CodeRunner::Trinity
|
|
10
10
|
y: {data: array[it].to_gslv, title: options[:title]||"", units: options[:units]||""}
|
11
11
|
)
|
12
12
|
end
|
13
|
+
def ang_mom_prof_graphkit(options)
|
14
|
+
return nt_prof_graphkit(options.dup.absorb({header: /ang\s+mom/, title: 'Angular Momentum', units: ''}))
|
15
|
+
end
|
13
16
|
def ion_temp_prof_graphkit(options)
|
14
|
-
return nt_prof_graphkit(options.dup.absorb({header: /i\+ temp
|
17
|
+
return nt_prof_graphkit(options.dup.absorb({header: /i\+ temp/, title: 'Ti', units: 'keV'}))
|
15
18
|
end
|
16
19
|
end
|
17
20
|
|
data/lib/trinitycrmod/trinity.rb
CHANGED
@@ -100,7 +100,7 @@ class CodeRunner
|
|
100
100
|
get_global_results
|
101
101
|
end
|
102
102
|
#p ['fusionQ is ', fusionQ]
|
103
|
-
@percent_complete =
|
103
|
+
@percent_complete = completed_timesteps / ntstep * 100.0
|
104
104
|
end
|
105
105
|
|
106
106
|
def get_status
|
@@ -123,7 +123,7 @@ class CodeRunner
|
|
123
123
|
|
124
124
|
def get_completed_timesteps
|
125
125
|
Dir.chdir(@directory) do
|
126
|
-
completed_timesteps = time_outfile.exists? ?
|
126
|
+
@completed_timesteps = time_outfile.exists? ?
|
127
127
|
time_outfile.get_1d_array_integer(/itstep/).max :
|
128
128
|
0
|
129
129
|
end
|
data/trinitycrmod.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "trinitycrmod"
|
8
|
-
s.version = "0.2.
|
8
|
+
s.version = "0.2.1"
|
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"]
|
12
|
-
s.date = "2013-06-
|
12
|
+
s.date = "2013-06-18"
|
13
13
|
s.description = "This module allows Trinity, the Multiscale Gyrokinetic Turbulent Transport solver for Fusion Reactors, to harness the power of CodeRunner, a framework for the automated running and analysis of simulations."
|
14
14
|
s.email = "edmundhighcock@sourceforge.net"
|
15
15
|
s.extra_rdoc_files = [
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: trinitycrmod
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-06-
|
12
|
+
date: 2013-06-18 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: coderunner
|
@@ -151,7 +151,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
151
151
|
version: '0'
|
152
152
|
segments:
|
153
153
|
- 0
|
154
|
-
hash:
|
154
|
+
hash: 2739372725142217113
|
155
155
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
156
156
|
none: false
|
157
157
|
requirements:
|