def _calculate_block_structure(self, inequalities, equalities,<EOL>momentinequalities, momentequalities,<EOL>extramomentmatrix, removeequalities,<EOL>block_struct=None):
super(SteeringHierarchy, self)._calculate_block_structure(inequalities, equalities,<EOL>momentinequalities, momentequalities,<EOL>extramomentmatrix, removeequalities)<EOL>if self.matrix_var_dim is not None:<EOL><INDENT>self.block_struct = [self.matrix_var_dim*bs<EOL>for bs in self.block_struct]<EOL><DEDENT>
Calculates the block_struct array for the output file.