veritascrmod 0.3.0 → 0.3.1
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/lib/veritascrmod/veritas.rb +15 -1
- data/veritascrmod.gemspec +3 -3
- 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: 2595da34112c4ae05beb317b7251687493fd412a
|
4
|
+
data.tar.gz: b75f443a5f00eface860e03beb9f51cf25592514
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 108d8bba8f6e56dbf3f789ea58149445f03593b1613b695c2b13fe2de30ab11e2f1a06dec8097f431966a11d1c947ec089895a5eb4c4047f1c80629372efb8ee
|
7
|
+
data.tar.gz: 9646d2226f17401d0ce2827e29e18be3ac1fd83fcd7988c894b20bf18b8f5f311799a7233f392284298d3bd602cdb0320135014c43249b38bc011213eec4f281
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.3.
|
1
|
+
0.3.1
|
data/lib/veritascrmod/veritas.rb
CHANGED
@@ -250,6 +250,15 @@ end
|
|
250
250
|
def asquared_graphkit(options)
|
251
251
|
real_space_graphkit(signal: 'asquared')
|
252
252
|
end
|
253
|
+
def efieldlong_graphkit(options)
|
254
|
+
real_space_graphkit(signal: 'Efieldlong')
|
255
|
+
end
|
256
|
+
def ey_graphkit(options)
|
257
|
+
real_space_graphkit(signal: 'Ey')
|
258
|
+
end
|
259
|
+
def charge_graphkit(options)
|
260
|
+
real_space_graphkit(options.dup.absorb(signal: 'charge'))
|
261
|
+
end
|
253
262
|
def asquared2d_graphkit(options)
|
254
263
|
real_space_2d_graphkit(options.dup.absorb(signal: 'asquared'))
|
255
264
|
end
|
@@ -263,7 +272,12 @@ def openncfile
|
|
263
272
|
end
|
264
273
|
def real_space_graphkit(options)
|
265
274
|
Dir.chdir(@directory) do
|
266
|
-
|
275
|
+
if pt = options[:particle]
|
276
|
+
mat = openncfile{|f| f.var(options[:signal]).get('start'=>[0,pt,0], 'end'=>[-1,pt,-1])}[true,0,true]
|
277
|
+
else
|
278
|
+
raise "Please specify particle" if ['charge'].include? options[:signal]
|
279
|
+
mat = openncfile{|f| f.var(options[:signal]).get}
|
280
|
+
end
|
267
281
|
shape = mat.shape
|
268
282
|
p 'shape', mat.shape
|
269
283
|
x = shape[0].times.to_a
|
data/veritascrmod.gemspec
CHANGED
@@ -2,16 +2,16 @@
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
3
|
# Instead, edit Juwelier::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
|
-
# stub: veritascrmod 0.3.
|
5
|
+
# stub: veritascrmod 0.3.1 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "veritascrmod"
|
9
|
-
s.version = "0.3.
|
9
|
+
s.version = "0.3.1"
|
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 = "2016-08-
|
14
|
+
s.date = "2016-08-24"
|
15
15
|
s.description = "A CodeRunner module for the Veritas Vlasov Solver"
|
16
16
|
s.email = "edmundhighcock@users.sourceforge.net"
|
17
17
|
s.extra_rdoc_files = [
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: veritascrmod
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Edmund Highcock
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-08-
|
11
|
+
date: 2016-08-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: coderunner
|