Thank you for the suggestion. In dft_scf.F, both line 454 and line 457 contain
" if (.not.MA_alloc_Get(MT_DBL,nfock*nconstr, "
if I only change line 454 and recompile the code, it does not work. But if I change both, it seems the code is working (I will need to do a few tests). Please let me know if I am on the right track. thanks!