gs2crmod 0.9.4 → 0.9.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/VERSION +1 -1
  2. data/gs2crmod.gemspec +2 -2
  3. data/lib/gs2crmod/graphs.rb +15 -15
  4. metadata +2 -2
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.9.4
1
+ 0.9.5
data/gs2crmod.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "gs2crmod"
8
- s.version = "0.9.4"
8
+ s.version = "0.9.5"
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", "Ferdinand van Wyk"]
12
- s.date = "2013-08-07"
12
+ s.date = "2013-08-13"
13
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."
14
14
  s.email = "edmundhighcock@sourceforge.net"
15
15
  s.extensions = ["ext/extconf.rb"]
@@ -2058,9 +2058,9 @@ module GraphKits
2058
2058
  File.open("#@directory/#@run_name.vpx#{'%02d'%options[:kx_index]}y#{'%02d'%options[:ky_index]}z#{'%02d'%options[:kz_index]}g","r").each_line do | line |
2059
2059
  #File.open("#@directory/#@run_name.vpg","r").each_line do | line |
2060
2060
  line_array = line.split(/\s+/).map{|v| v.to_f}
2061
- if( options[:il_index] == line_array[4] )
2062
- g2.push line_array[1] # **2+line_array[2]**2
2063
- x_axis.push line_array[3]
2061
+ if( options[:il_index] == line_array[5] )
2062
+ g2.push line_array[1]**2+line_array[2]**2
2063
+ x_axis.push line_array[4]
2064
2064
  end
2065
2065
  end
2066
2066
 
@@ -2080,9 +2080,9 @@ module GraphKits
2080
2080
  File.open("#@directory/#@run_name.vpx#{'%02d'%options[:kx_index]}y#{'%02d'%options[:ky_index]}g","r").each_line do | line |
2081
2081
  #File.open("#@directory/#@run_name.vpg","r").each_line do | line |
2082
2082
  line_array = line.split(/\s+/).map{|v| v.to_f}
2083
- if( options[:il_index] == line_array[4] )
2084
- g2.push line_array[1] # **2+line_array[2]**2
2085
- x_axis.push line_array[3]
2083
+ if( options[:il_index] == line_array[5] )
2084
+ g2.push line_array[1]**2+line_array[2]**2
2085
+ x_axis.push line_array[4]
2086
2086
  end
2087
2087
  end
2088
2088
 
@@ -2102,9 +2102,9 @@ module GraphKits
2102
2102
  #File.open("#@directory/#@run_name.vpx#{options[:kx_index]}y#{options[:ky_index]}g","r").each_line do | line |
2103
2103
  File.open("#@directory/#@run_name.vpg","r").each_line do | line |
2104
2104
  line_array = line.split(/\s+/).map{|v| v.to_f}
2105
- if( options[:il_index] == line_array[4] )
2106
- g2.push line_array[1] # **2+line_array[2]**2
2107
- x_axis.push line_array[3]
2105
+ if( options[:il_index] == line_array[5] )
2106
+ g2.push line_array[1]**2+line_array[2]**2
2107
+ x_axis.push line_array[4]
2108
2108
  end
2109
2109
  end
2110
2110
 
@@ -2125,9 +2125,9 @@ module GraphKits
2125
2125
  #File.open("#@directory/#@run_name.vpg","r").each_line do | line |
2126
2126
  File.open("#@directory/#@run_name.vpx#{'%02d'%options[:kx_index]}y#{'%02d'%options[:ky_index]}z#{'%02d'%options[:kz_index]}g","r").each_line do | line |
2127
2127
  line_array = line.split(/\s+/).map{|v| v.to_f}
2128
- if( options[:e_index] == line_array[3] )
2129
- g2.push line_array[1] # **2+line_array[2]**2
2130
- x_axis.push line_array[4]
2128
+ if( options[:e_index] == line_array[4] )
2129
+ g2.push line_array[1]**2+line_array[2]**2
2130
+ x_axis.push line_array[5]
2131
2131
  end
2132
2132
  end
2133
2133
 
@@ -2147,9 +2147,9 @@ module GraphKits
2147
2147
  #File.open("#@directory/#@run_name.vpx#{options[:kx_index]}y#{options[:ky_index]}g","r").each_line do | line |
2148
2148
  File.open("#@directory/#@run_name.vpg","r").each_line do | line |
2149
2149
  line_array = line.split(/\s+/).map{|v| v.to_f}
2150
- if( options[:e_index] == line_array[3] )
2151
- g2.push line_array[1] # **2+line_array[2]**2
2152
- x_axis.push line_array[4]
2150
+ if( options[:e_index] == line_array[4] )
2151
+ g2.push line_array[1]**2+line_array[2]**2
2152
+ x_axis.push line_array[5]
2153
2153
  end
2154
2154
  end
2155
2155
 
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.9.4
4
+ version: 0.9.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2013-08-07 00:00:00.000000000 Z
13
+ date: 2013-08-13 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: coderunner