NSPEC in Specfem3D_globe

I got an error xspecfem3D while running Specfem3D_Globe, it says:
Error file dimension: nspec in file = 16448 but nspec desired:
2936000
please check file ./DATABASES_MPI/proc000024_reg1_solver_data.bin
Error dimensions in solver_data.bin
Error detected, aborting MPI… proc 24
Error file dimension: nspec in file = 16448 but nspec desired:
2936000
please check file ./DATABASES_MPI/proc000031_reg1_solver_data.bin
Error dimensions in solver_data.bin
Error detected, aborting MPI… proc 31

I know NSPEC is in values_from_mesher.h generated by xmeshfem3D. How may I fix that?
Really appreciate that.

whenever you change the resolution (NEX) in your simulation setup (Par_file), you need to re-compile the code and run mesher and solver again for your example.

SPECFEM3D_GLOBE uses static arrays (for performance reasons), the error above checks if your solver was compiled with the same settings as your mesh files.

Hi dpeter, Thanks for the reply. Yes, indeed, every time when I submit a new job, I have “make meshfem3D” and “make specfem3D” in bash file to recompile both executables with the same Par_file. Maybe it is something else? Thanks.