gs2crmod 0.11.87 → 0.11.88
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.
- data/VERSION +1 -1
- data/gs2crmod.gemspec +2 -2
- data/lib/gs2crmod/calculations.rb +2 -2
- data/lib/gs2crmod/gsl_data.rb +0 -1
- data/lib/gs2crmod/ingen.rb +1 -1
- metadata +2 -2
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.11.
|
|
1
|
+
0.11.88
|
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.11.
|
|
8
|
+
s.version = "0.11.88"
|
|
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 = "2015-02-
|
|
12
|
+
s.date = "2015-02-19"
|
|
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"]
|
|
@@ -668,10 +668,10 @@ alias :ctehfa :calculate_transient_es_heat_flux_amplifications
|
|
|
668
668
|
|
|
669
669
|
|
|
670
670
|
def calculate_transient_amplification(vector, options={})
|
|
671
|
-
if @g_exb_start_timestep
|
|
671
|
+
if @g_exb_start_timestep
|
|
672
672
|
return GSL::Sf::log(vector[@g_exb_start_timestep...-1].max / vector[@g_exb_start_timestep])/2
|
|
673
673
|
else
|
|
674
|
-
eputs "Warning:
|
|
674
|
+
eputs "Warning: set g_exb_start_timestep to calculate transient amplifications."
|
|
675
675
|
return 0
|
|
676
676
|
end
|
|
677
677
|
end
|
data/lib/gs2crmod/gsl_data.rb
CHANGED
|
@@ -1044,7 +1044,6 @@ module GSLVectors
|
|
|
1044
1044
|
If using numerical equil use the option :kxfac to override calculation.") unless @qinp or (@pk and @epsl or options[:kxfac])
|
|
1045
1045
|
|
|
1046
1046
|
kx = gsl_vector(:kx).to_box_order
|
|
1047
|
-
_x = gsl_vector(:x)
|
|
1048
1047
|
grho = gsl_vector('grho')[options[:theta_index]]
|
|
1049
1048
|
|
|
1050
1049
|
phi = GSL::Vector.alloc(kx.size)
|
data/lib/gs2crmod/ingen.rb
CHANGED
|
@@ -240,7 +240,7 @@ def check_parameters
|
|
|
240
240
|
|
|
241
241
|
warning("Boundary option should be periodic for shat = 1e-6.") if (!@boundary_option or @boundary_option != "periodic") and ((@s_hat_input and @s_hat_input.abs == 1.0e-6) or (@shat and @shat.abs == 1.0e-6))
|
|
242
242
|
|
|
243
|
-
warning("Boundary option should be default (unconnected) for single and range mode with shat > 0.") if (@boundary_option != "default") and ((@s_hat_input and @s_hat_input.abs > 1.0e-6) or (@shat and @shat.abs > 1.0e-6)) and (@grid_option == "single" or @grid_option == "range")
|
|
243
|
+
warning("Boundary option should be default (unconnected) for single and range mode with shat > 0.") if (@boundary_option != "default" or @boundary_option != "unconnected") and ((@s_hat_input and @s_hat_input.abs > 1.0e-6) or (@shat and @shat.abs > 1.0e-6)) and (@grid_option == "single" or @grid_option == "range")
|
|
244
244
|
|
|
245
245
|
warning("Boundary option should be linked for box mode with shat > 0.") if (!@boundary_option or @boundary_option != "linked") and ((@s_hat_input and @s_hat_input.abs > 1.0e-6) or (@shat and @shat.abs > 1.0e-6)) and @grid_option == "box"
|
|
246
246
|
|
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.11.
|
|
4
|
+
version: 0.11.88
|
|
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: 2015-02-
|
|
13
|
+
date: 2015-02-19 00:00:00.000000000 Z
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
16
16
|
name: coderunner
|