gs2crmod 0.10.10 → 0.10.11
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/gs2crmod.gemspec +1 -1
- data/lib/gs2crmod/gsl_data_3d.rb +2 -2
- metadata +1 -1
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.10.
|
1
|
+
0.10.11
|
data/gs2crmod.gemspec
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "gs2crmod"
|
8
|
-
s.version = "0.10.
|
8
|
+
s.version = "0.10.11"
|
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"]
|
data/lib/gs2crmod/gsl_data_3d.rb
CHANGED
@@ -690,8 +690,8 @@ class CodeRunner::Gs2
|
|
690
690
|
coordinates[2,i,j,k] = y[i] / yfac - factors[2,k] - x[j]/xfac*factors[5,k] # phi
|
691
691
|
#ep [i,j,k], coordinates[0, false, j,k].to_a
|
692
692
|
if gs2f = options[:gs2_coordinate_factor]
|
693
|
-
rgs2 = (x[j]**2 + y[i]**2 + Float::EPSILON)
|
694
|
-
p ['x', x[j], 'y', y[i], 'r', rgs2] if agk?
|
693
|
+
rgs2 = (x[j]**2 + y[i]**2 )**0.5*(1.0 + 2.0 * Float::EPSILON)
|
694
|
+
#p ['x', x[j], 'y', y[i], 'r', rgs2] if agk?
|
695
695
|
if rgs2 < 1.0e-8
|
696
696
|
phigs2 = 0
|
697
697
|
else
|