I was trying to run CLM4 with some code modification added by myself. I was able to build it but failed to run. Based on the log files, what I can tell so far is that the model crashes at "call aerdepini()" in the file lnd_comp_mct.F90, A further check shows that it stops in the subroutine aerdepini in aerdepMod.F90 while it was executing this line "call shr_sys_flush(iulog)". shr_sys_flush routine is said to flush the I/O buffer (which I do not understand well). All these clues are not within the region where I made the modifications.
My modifications include the following files: clmtype.F90, clm_atmlnd.F90, clmtypeInitMod.F90, clm_driver.F90, clm_comp.F90, mkarbinithMod.F90 initsurfAlbMod.F90.
I also tried to build it with debug option and it does not help to give me more information written in the log files for diagnosis. I will keep on trying, meanwhile I am wondering could someone in this forum offer some advice on this issue.
Thank you for any comment.