Segmentation fault (core dumped)

Thanks a lot! When I follow steps,and then return to use the command:
./run_mcip.csh gcc ,the error are as follows:
Program received signal SIGSEGV: Segmentation fault - invalid memory reference.

Backtrace for this error:
#0 0x2BA57C1ED697
#1 0x2BA57C1EDCDE
#2 0x2BA57CC803AF
#3 0x2BA57CC8326D
#4 0x2BA57D2FB5F4
#5 0x2BA57D301ACD
#6 0x2BA57D45C279
#7 0x2BA57D45AA72
#8 0x2BA57D022201
#9 0x2BA57BF44DA1
#10 0x2BA57BF450F5
#11 0x2BA57BF4277B
#12 0x2BA57BF4B2EF
#13 0x2BA57BEF0566
#14 0x2BA57BEF062B
#15 0x2BA57BC67766
#16 0x2BA57BCBB5F7
#17 0x4D2AC2 in setup_wrfem_ at setup_wrfem.f90:879
#18 0x4CDD3E in setup_ at setup.f90:142
#19 0x403D56 in MAIN__ at mcip.f90:123
Segmentation fault (core dumped)
Error running mcip

and the files which are in src folders metioned above are as follows:
(mcip.f90).txt (9.2 KB) (setup.f90).txt (7.3 KB) (setup_wrfem.f90).txt (57.9 KB)