gs2crmod 0.10.5 → 0.10.6
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +1 -1
- data/VERSION +1 -1
- data/gs2crmod.gemspec +4 -4
- data/lib/gs2crmod/gs2.rb +30 -28
- metadata +3 -3
data/Gemfile
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.10.
|
1
|
+
0.10.6
|
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.6"
|
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"]
|
@@ -85,14 +85,14 @@ Gem::Specification.new do |s|
|
|
85
85
|
s.specification_version = 3
|
86
86
|
|
87
87
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
88
|
-
s.add_runtime_dependency(%q<coderunner>, [">= 0.
|
88
|
+
s.add_runtime_dependency(%q<coderunner>, [">= 0.13.13"])
|
89
89
|
s.add_runtime_dependency(%q<rubyhacks>, [">= 0.1.2"])
|
90
90
|
s.add_development_dependency(%q<shoulda>, [">= 0"])
|
91
91
|
s.add_development_dependency(%q<rdoc>, ["~> 3.12"])
|
92
92
|
s.add_development_dependency(%q<bundler>, ["> 1.0.0"])
|
93
93
|
s.add_development_dependency(%q<jeweler>, [">= 1.8.4"])
|
94
94
|
else
|
95
|
-
s.add_dependency(%q<coderunner>, [">= 0.
|
95
|
+
s.add_dependency(%q<coderunner>, [">= 0.13.13"])
|
96
96
|
s.add_dependency(%q<rubyhacks>, [">= 0.1.2"])
|
97
97
|
s.add_dependency(%q<shoulda>, [">= 0"])
|
98
98
|
s.add_dependency(%q<rdoc>, ["~> 3.12"])
|
@@ -100,7 +100,7 @@ Gem::Specification.new do |s|
|
|
100
100
|
s.add_dependency(%q<jeweler>, [">= 1.8.4"])
|
101
101
|
end
|
102
102
|
else
|
103
|
-
s.add_dependency(%q<coderunner>, [">= 0.
|
103
|
+
s.add_dependency(%q<coderunner>, [">= 0.13.13"])
|
104
104
|
s.add_dependency(%q<rubyhacks>, [">= 0.1.2"])
|
105
105
|
s.add_dependency(%q<shoulda>, [">= 0"])
|
106
106
|
s.add_dependency(%q<rdoc>, ["~> 3.12"])
|
data/lib/gs2crmod/gs2.rb
CHANGED
@@ -920,34 +920,36 @@ end
|
|
920
920
|
|
921
921
|
# Customize this method from Run::FortranNamelist by saying when diagnostics are not switched on.
|
922
922
|
|
923
|
-
def namelist_text(namelist, enum = nil)
|
924
|
-
hash = rcp.namelists[namelist]
|
925
|
-
text = ""
|
926
|
-
ext = enum ? "_#{enum}" : ""
|
927
|
-
text << "!#{'='*30}\n!#{hash[:description]} #{enum} \n!#{'='*30}\n" if hash[:description]
|
928
|
-
text << "&#{namelist}#{ext}\n"
|
929
|
-
hash[:variables].each do |var, var_hash|
|
930
|
-
code_var = (var_hash[:code_name] or var)
|
931
|
-
cr_var = var+ext.to_sym
|
932
|
-
|
933
|
-
if send(cr_var) and (not var_hash[:should_include] or eval(var_hash[:should_include]))
|
934
|
-
|
935
|
-
if String::FORTRAN_BOOLS.include? send(cr_var) # var is a Fortran Bool, not really a string
|
936
|
-
output = send(cr_var).to_s
|
937
|
-
elsif (v = send(cr_var)).kind_of? Complex
|
938
|
-
output = "(#{v.real}, #{v.imag})"
|
939
|
-
else
|
940
|
-
output = send(cr_var).inspect
|
941
|
-
end
|
942
|
-
text << " #{code_var} = #{output} #{var_hash[:description] ? "! #{var_hash[:description]}": ""}\n"
|
943
|
-
elsif namelist == :gs2_diagnostics_knobs or namelist == :diagnostics
|
944
|
-
text << " ! #{code_var} not specified --- #{var_hash[:description]}\n"
|
945
|
-
end
|
946
|
-
end
|
947
|
-
|
948
|
-
text << "/\n\n"
|
949
|
-
text
|
950
|
-
end
|
923
|
+
#def namelist_text(namelist, enum = nil)
|
924
|
+
#hash = rcp.namelists[namelist]
|
925
|
+
#text = ""
|
926
|
+
#ext = enum ? "_#{enum}" : ""
|
927
|
+
#text << "!#{'='*30}\n!#{hash[:description]} #{enum} \n!#{'='*30}\n" if hash[:description]
|
928
|
+
#text << "&#{namelist}#{ext}\n"
|
929
|
+
#hash[:variables].each do |var, var_hash|
|
930
|
+
#code_var = (var_hash[:code_name] or var)
|
931
|
+
#cr_var = var+ext.to_sym
|
932
|
+
## ep cr_var, namelist
|
933
|
+
#if send(cr_var) and (not var_hash[:should_include] or eval(var_hash[:should_include]))
|
934
|
+
## var_hash[:tests].each{|tst| eval(tst).test(send(cr_var), cr_var)}
|
935
|
+
#if String::FORTRAN_BOOLS.include? send(cr_var) # var is a Fortran Bool, not really a string
|
936
|
+
#output = send(cr_var).to_s
|
937
|
+
#elsif (v = send(cr_var)).kind_of? Complex
|
938
|
+
#output = "(#{v.real}, #{v.imag})"
|
939
|
+
#else
|
940
|
+
#output = send(cr_var).inspect
|
941
|
+
#end
|
942
|
+
#text << " #{code_var} = #{output} #{var_hash[:description] ? "! #{var_hash[:description]}": ""}\n"
|
943
|
+
#elsif namelist == :gs2_diagnostics_knobs or namelist == :diagnostics
|
944
|
+
#text << " ! #{code_var} not specified --- #{var_hash[:description]}\n"
|
945
|
+
#end
|
946
|
+
#end
|
947
|
+
## # end
|
948
|
+
#text << "/\n\n"
|
949
|
+
#text
|
950
|
+
#end
|
951
|
+
|
952
|
+
@namelists_to_print_not_specified = [:gs2_diagnostics_knobs, :diagnostics]
|
951
953
|
|
952
954
|
# def self.add_code_var
|
953
955
|
# rcp.namelists.each do |namelist, hash|
|
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.10.
|
4
|
+
version: 0.10.6
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -19,7 +19,7 @@ dependencies:
|
|
19
19
|
requirements:
|
20
20
|
- - ! '>='
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: 0.
|
22
|
+
version: 0.13.13
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -27,7 +27,7 @@ dependencies:
|
|
27
27
|
requirements:
|
28
28
|
- - ! '>='
|
29
29
|
- !ruby/object:Gem::Version
|
30
|
-
version: 0.
|
30
|
+
version: 0.13.13
|
31
31
|
- !ruby/object:Gem::Dependency
|
32
32
|
name: rubyhacks
|
33
33
|
requirement: !ruby/object:Gem::Requirement
|