@@ -40,7 +40,6 @@ def __init__(self, integral, dim="dim"):
4040 self .map_sum_indices ()
4141
4242 def fortran (self ):
43-
4443 dim_indices = ["dim" + str (i ) + "_i" for i in range (self .integral .rank )]
4544
4645 name , declaration , lhs = self .function_spec (dim_indices )
@@ -149,7 +148,6 @@ def iterfunctions(self):
149148 yield self .integral .trial
150149
151150 def function_spec (self , dim_indices ):
152-
153151 name = "integral"
154152 declaration = "real, dimension("
155153 lhs_args = dim_indices + ["test_i" ]
@@ -160,11 +158,9 @@ def function_spec(self, dim_indices):
160158 for i in f .indices :
161159 # Slices are free indices.
162160 if isinstance (i , slice ):
163-
164161 declaration = declaration + str (self .dim ) + ", "
165162
166163 else :
167-
168164 name = name + "_i" + str (self .sum_index_map [i .id ])
169165
170166 name = name + "_" + self .integral .measure .name
@@ -201,7 +197,6 @@ def set_arguments(self):
201197 self .actual_arguments = []
202198
203199 for f in self .iterfunctions ():
204-
205200 args = function_to_arguments (f )
206201 self .dummy_arguments .append (args [0 ])
207202 self .actual_arguments .append (args [1 ])
@@ -238,12 +233,10 @@ def function_to_arguments(function):
238233
239234
240235def indent (code ):
241-
242236 return [" " + line for line in code ]
243237
244238
245239def do_loop (var , size , body ):
246-
247240 code = ["do " + var + " = 1, " + str (size )] + indent (body ) + ["end do" ]
248241
249242 return code
0 commit comments