Update main.cpp

- Correct a mistake the programm crash if you want to calculate the S-Matrix