Maximum number of constraints in CDFT


Click here for full thread
Forum Vet
Bug Fix
JT
Please edit line 454 of $NWCHEM_TOP/src/nwdft/scf_dft/dft_scf.F and change it from

        if (.not.MA_alloc_Get(MT_DBL,nfock*nconstr,

to

        if (.not.MA_alloc_Get(MT_DBL,max(nfock,nconstr)*nconstr,