It is just seems that my code when using -O2, -O3, -Ofast the M1 chip compile file. But when it run is give a segment 11 error. (it has nothing to do with mpi)
But it runs fine on the same version 11.2.0 gfortran on ubuntu and windows.
So I am not very sure if it is my code’s issue or some compatibility issue with gfortran and M1.