(self, indices)
return open_lines, close_lines
Returns a tuple (open_lines, close_lines) containing lists of codelines
Returns a tuple (open_lines, close_lines) containing lists of codelines
Returns a tuple ( open_lines close_lines ) containing lists of codelines
def _get_loop_opening_ending(self, indices):
        """Returns a tuple (open_lines, close_lines) containing lists of codelines
        """
        open_lines = []
        close_lines = []
        for i in indices:
            # fortran arrays start at 1 and end at dimension
            var, start, stop = map(self._print,
                    [i.label, i.lower + 1, i.upper + 1])
            open_lines.append("do %s = %s, %s" % (var, start, stop))
            close_lines.append("end do")
        return open_lines, close_lines
def _get_loop_opening_ending ( self , indices ) : open_lines = [ ] close_lines = [ ] for i in indices : # fortran arrays start at 1 and end at dimension var , start , stop = map ( self . _print , [ i . label , i . lower + 1 , i . upper + 1 ] ) open_lines . append ( "do %s = %s, %s" % ( var , start , stop ) ) close_lines . append ( "end do" ) return open_lines , close_lines