genecrmod 0.2.2 → 0.2.3
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.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/genecrmod.gemspec +3 -3
- data/lib/genecrmod/gene.rb +6 -5
- data/lib/genecrmod/hdf5.rb +3 -1
- data/test/linear_run/.CODE_RUNNER_TEMP_RUN_LIST_CACHE +0 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7938f1cf7fa6c6d75757a3d78b995cc0bbcd49c4
|
4
|
+
data.tar.gz: 72a2d2d1f472665cf5e7279173ae2f8b1647a17c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a9923c1cbb1e840c62784b6f6fcdb6c7cb46037087e19f0bc1c9fb0ac6f30a20a64ca5a044edc5a477028d9fbf32126a51110bbb705a5b15f01532e5ec71dd2e
|
7
|
+
data.tar.gz: 722b2b098f705b6f53897e43f7c6166e38da9787e4b34a325e7f4d3e9e2dd68e44347d32064a2de243258630a03f9a7149cb1cfe351b049b6442971d311e8e98
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.3
|
data/genecrmod.gemspec
CHANGED
@@ -2,16 +2,16 @@
|
|
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: genecrmod 0.2.
|
5
|
+
# stub: genecrmod 0.2.3 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "genecrmod"
|
9
|
-
s.version = "0.2.
|
9
|
+
s.version = "0.2.3"
|
10
10
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
12
12
|
s.require_paths = ["lib"]
|
13
13
|
s.authors = ["Edmund Highcock"]
|
14
|
-
s.date = "2014-
|
14
|
+
s.date = "2014-12-03"
|
15
15
|
s.description = "A module which allows the GENE gyrokinetic code to be run using the CodeRunner framework. "
|
16
16
|
s.email = "edmundhighcock@users.sourceforge.net"
|
17
17
|
s.extra_rdoc_files = [
|
data/lib/genecrmod/gene.rb
CHANGED
@@ -27,6 +27,7 @@ class CodeRunner
|
|
27
27
|
###################################################
|
28
28
|
|
29
29
|
@results = [
|
30
|
+
:growth_rates
|
30
31
|
]
|
31
32
|
|
32
33
|
@code_long="GENE Gyrokinetic Electromagnetic Numerical Experiment"
|
@@ -201,7 +202,7 @@ class CodeRunner
|
|
201
202
|
end
|
202
203
|
end
|
203
204
|
#p ['fusionQ is ', fusionQ]
|
204
|
-
@percent_complete = completed_timesteps.to_f / ntimesteps.to_f * 100.0
|
205
|
+
@percent_complete = completed_timesteps.to_f * (istep_nrg||10) / ntimesteps.to_f * 100.0
|
205
206
|
end
|
206
207
|
|
207
208
|
def get_status
|
@@ -229,11 +230,11 @@ class CodeRunner
|
|
229
230
|
end
|
230
231
|
def get_completed_timesteps
|
231
232
|
Dir.chdir(@directory) do
|
232
|
-
if FileTest.exist?('nrg.dat.h5')
|
233
|
-
|
234
|
-
else
|
233
|
+
#if FileTest.exist?('nrg.dat.h5')
|
234
|
+
#@completed_timesteps = get_h5_narray_all('nrg.dat.h5', '/nrgIons/time').shape[0]
|
235
|
+
#else
|
235
236
|
@completed_timesteps = %x[grep '^\\s\\+\\S\\+\\s*$' nrg.dat 2>/dev/null].split("\n").size
|
236
|
-
end
|
237
|
+
#end
|
237
238
|
end
|
238
239
|
end
|
239
240
|
|
data/lib/genecrmod/hdf5.rb
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: genecrmod
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Edmund Highcock
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-12-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: coderunner
|