gryfxcrmod 0.1.8 → 0.1.9

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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 654f77b374903ca857aed91ec28c704e878a2330
4
+ data.tar.gz: 75496ee3076a399b3f0c122d5d5a67dc3713f3d9
5
+ SHA512:
6
+ metadata.gz: 265d1552d0752329732398eea1cded3763711952330bf0d3fd4534cd1e96b2d768df4211aac23093cefe30f8c856cbf812bcec0233a786a02f78c3f6817f2b95
7
+ data.tar.gz: 675d5dea155b0f5607ccf9ca915330deed7660052ec47fca3c8a9b9ed46acaa23b5456ede903dd3c49c706c260fb1bab6557451d6acfb4cd604e653df2a72f90
data/Gemfile CHANGED
@@ -2,17 +2,14 @@ source "http://rubygems.org"
2
2
  # Add dependencies required to use your gem here.
3
3
  # Example:
4
4
  # gem "activesupport", ">= 2.3.5"
5
- gem "coderunner", ">= 0.13.0"
5
+ gem "coderunner", ">= 0.16.7"
6
6
  gem "gs2crmod", ">= 0.10.1"
7
- gem "ruby-netcdf", ">= 0.6.6"
8
7
 
9
8
  # Add dependencies to develop your gem here.
10
9
  # Include everything needed to run rake, tests, features, etc.
11
10
  group :development do
12
11
  gem "shoulda", ">= 0"
13
- gem "shoulda-context", ">= 1.1.5"
14
12
  gem "rdoc", "~> 3.12"
15
- gem "bundler", ">= 1.0.0"
16
- gem "jeweler", ">= 1.8.4"
17
- #gem "rcov", ">= 0"
13
+ gem "bundler", "> 1.0.0"
14
+ gem "jeweler", ">= 2.0.0"
18
15
  end
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.8
1
+ 0.1.9
data/gryfxcrmod.gemspec CHANGED
@@ -2,14 +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: gryfxcrmod 0.1.9 ruby lib
5
6
 
6
7
  Gem::Specification.new do |s|
7
8
  s.name = "gryfxcrmod"
8
- s.version = "0.1.8"
9
+ s.version = "0.1.9"
9
10
 
10
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
+ s.require_paths = ["lib"]
11
13
  s.authors = ["Edmund Highcock"]
12
- s.date = "2013-09-12"
14
+ s.date = "2015-05-21"
13
15
  s.description = "This is a customised subclass of the CodeRunner::Run class which allows CodeRunner to run and analyse the gyrofluid GPU turbulent transport solver Gryfx."
14
16
  s.email = "edmundhighcock@users.sourceforge.net"
15
17
  s.extra_rdoc_files = [
@@ -40,41 +42,34 @@ Gem::Specification.new do |s|
40
42
  ]
41
43
  s.homepage = "http://github.com/edmundhighcock/gryfxcrmod"
42
44
  s.licenses = ["MIT"]
43
- s.require_paths = ["lib"]
44
- s.rubygems_version = "1.8.23"
45
+ s.rubygems_version = "2.2.0"
45
46
  s.summary = "CodeRunner module for the Gryfx Gyrofluid Transport Solver"
46
47
 
47
48
  if s.respond_to? :specification_version then
48
- s.specification_version = 3
49
+ s.specification_version = 4
49
50
 
50
51
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
51
- s.add_runtime_dependency(%q<coderunner>, [">= 0.13.0"])
52
+ s.add_runtime_dependency(%q<coderunner>, [">= 0.16.7"])
52
53
  s.add_runtime_dependency(%q<gs2crmod>, [">= 0.10.1"])
53
- s.add_runtime_dependency(%q<ruby-netcdf>, [">= 0.6.6"])
54
54
  s.add_development_dependency(%q<shoulda>, [">= 0"])
55
- s.add_development_dependency(%q<shoulda-context>, [">= 1.1.5"])
56
55
  s.add_development_dependency(%q<rdoc>, ["~> 3.12"])
57
- s.add_development_dependency(%q<bundler>, [">= 1.0.0"])
58
- s.add_development_dependency(%q<jeweler>, [">= 1.8.4"])
56
+ s.add_development_dependency(%q<bundler>, ["> 1.0.0"])
57
+ s.add_development_dependency(%q<jeweler>, [">= 2.0.0"])
59
58
  else
60
- s.add_dependency(%q<coderunner>, [">= 0.13.0"])
59
+ s.add_dependency(%q<coderunner>, [">= 0.16.7"])
61
60
  s.add_dependency(%q<gs2crmod>, [">= 0.10.1"])
62
- s.add_dependency(%q<ruby-netcdf>, [">= 0.6.6"])
63
61
  s.add_dependency(%q<shoulda>, [">= 0"])
64
- s.add_dependency(%q<shoulda-context>, [">= 1.1.5"])
65
62
  s.add_dependency(%q<rdoc>, ["~> 3.12"])
66
- s.add_dependency(%q<bundler>, [">= 1.0.0"])
67
- s.add_dependency(%q<jeweler>, [">= 1.8.4"])
63
+ s.add_dependency(%q<bundler>, ["> 1.0.0"])
64
+ s.add_dependency(%q<jeweler>, [">= 2.0.0"])
68
65
  end
69
66
  else
70
- s.add_dependency(%q<coderunner>, [">= 0.13.0"])
67
+ s.add_dependency(%q<coderunner>, [">= 0.16.7"])
71
68
  s.add_dependency(%q<gs2crmod>, [">= 0.10.1"])
72
- s.add_dependency(%q<ruby-netcdf>, [">= 0.6.6"])
73
69
  s.add_dependency(%q<shoulda>, [">= 0"])
74
- s.add_dependency(%q<shoulda-context>, [">= 1.1.5"])
75
70
  s.add_dependency(%q<rdoc>, ["~> 3.12"])
76
- s.add_dependency(%q<bundler>, [">= 1.0.0"])
77
- s.add_dependency(%q<jeweler>, [">= 1.8.4"])
71
+ s.add_dependency(%q<bundler>, ["> 1.0.0"])
72
+ s.add_dependency(%q<jeweler>, [">= 2.0.0"])
78
73
  end
79
74
  end
80
75
 
@@ -398,4 +398,26 @@
398
398
  [{:test=>"kind_of? String",
399
399
  :explanation=>"This variable must be a string."}],
400
400
  :type=>:String,
401
- :autoscanned_defaults=>["on"]}}
401
+ :autoscanned_defaults=>["on"]},
402
+ :dt=>
403
+ {:should_include=>"true",
404
+ :description=>nil,
405
+ :help=>nil,
406
+ :code_name=>:dt,
407
+ :must_pass=>
408
+ [{:test=>"kind_of? Numeric",
409
+ :explanation=>
410
+ "This variable must be a floating point number (an integer is also acceptable: it will be converted into a floating point number)."}],
411
+ :type=>:Float,
412
+ :autoscanned_defaults=>[0.02]},
413
+ :maxdt=>
414
+ {:should_include=>"true",
415
+ :description=>nil,
416
+ :help=>nil,
417
+ :code_name=>:maxdt,
418
+ :must_pass=>
419
+ [{:test=>"kind_of? Numeric",
420
+ :explanation=>
421
+ "This variable must be a floating point number (an integer is also acceptable: it will be converted into a floating point number)."}],
422
+ :type=>:Float,
423
+ :autoscanned_defaults=>[0.02]}}
@@ -94,11 +94,12 @@ class CodeRunner
94
94
  get_status
95
95
  #p ['id is', id, 'ctd is ', ctd]
96
96
  if ctd
97
- calculate_results
97
+ #calculate_results
98
98
  end
99
99
  #p ['fusionQ is ', fusionQ]
100
100
  end
101
101
 
102
+
102
103
  def get_status
103
104
  if @running
104
105
  unless @status==:Queueing
@@ -122,7 +123,7 @@ class CodeRunner
122
123
 
123
124
  def get_completed_timesteps
124
125
  if FileTest.exist?(@run_name + '.cdf')
125
- @completed_timesteps = gsl_vector('t').size
126
+ @completed_timesteps = netcdf_file.var('t').get.size #gsl_vector('t').size
126
127
  else
127
128
  @completed_timesteps = 0
128
129
  end
@@ -132,6 +133,8 @@ class CodeRunner
132
133
  @directory + '/' + @run_name + '.cdf'
133
134
  end
134
135
 
136
+ def generate_component_runs
137
+ end
135
138
  #def calculate_results
136
139
  #end
137
140