Wall interaction of tearing modes in configurations with multiple rational surfaces