Complexity of dynamic system switching between two subsystems with cornered boundaries