BOAST 1.3.1 → 1.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/BOAST.gemspec +1 -1
- data/lib/BOAST/Language/Index.rb +9 -1
- data/lib/BOAST/Language/Procedure.rb +7 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ce1471079358a166a828d428d014c785ac0a6b08
|
4
|
+
data.tar.gz: a9b317526e6589ee928c41fa4f78b469a0d0a1b7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ff7690a6d81dd4d1b1c258d65da70ea326532a2968c618f471c83faf8ddb21dab9602156a6b495f06aca1cc3adfcd7bf0b76a6f4b32aa3983e182b0a535f8f45
|
7
|
+
data.tar.gz: 27107abb8e7166fac2593b2e78b5275f44bcbf54be4b065d2c024cf9ab6e9b5070bb971fdf09b39a491aafe1b4cf4a41aeebcfc96f91c43c891f8f688cef2fb1
|
data/BOAST.gemspec
CHANGED
data/lib/BOAST/Language/Index.rb
CHANGED
@@ -70,8 +70,16 @@ module BOAST
|
|
70
70
|
private
|
71
71
|
|
72
72
|
def to_s_fortran
|
73
|
+
indexes_dup = []
|
74
|
+
@source.dimension.each_with_index { |d,i|
|
75
|
+
if d.size.nil? and get_array_start != 1 then
|
76
|
+
indexes_dup.push( @indexes[i] - d.start + 1 )
|
77
|
+
else
|
78
|
+
indexes_dup.push( @indexes[i] )
|
79
|
+
end
|
80
|
+
}
|
73
81
|
s = ""
|
74
|
-
s += "#{@source}(#{
|
82
|
+
s += "#{@source}(#{indexes_dup.join(", ")})"
|
75
83
|
return s
|
76
84
|
end
|
77
85
|
|
@@ -190,9 +190,14 @@ module BOAST
|
|
190
190
|
s = indent + to_s_fortran
|
191
191
|
s += "\n"
|
192
192
|
increment_indent_level
|
193
|
-
|
194
|
-
|
193
|
+
tmp_buff = StringIO::new
|
194
|
+
push_env( :output => tmp_buff ) {
|
195
|
+
parameters.each { |p|
|
196
|
+
p.type.define if p.type.kind_of? CStruct
|
197
|
+
}
|
195
198
|
}
|
199
|
+
tmp_buff.rewind
|
200
|
+
s += tmp_buff.read
|
196
201
|
s += indent + "integer, parameter :: wp=kind(1.0d0)"
|
197
202
|
output.puts s
|
198
203
|
constants.each { |c|
|