SebWouters / CheMPS2

CheMPS2: a spin-adapted implementation of DMRG for ab initio quantum chemistry
GNU General Public License v2.0
70 stars 34 forks source link

CASSCFnewtonraphson.cpp:66]: (style) Redundant condition #46

Closed dcb314 closed 8 years ago

dcb314 commented 8 years ago

heMPS2-1.7.3/CheMPS2/CASSCFnewtonraphson.cpp:66]: (style) Redundant condition: OptScheme==0. 'OptScheme!=0 || (OptScheme==0 && rootNum==1)' is equivalent to 'OptScheme!=0 || rootNum==1'

SebWouters commented 8 years ago

Hi @dcb314,

You're probably right, but it takes virtually zero CPU time, and most likely the compiler will resolve this one.

I'm on holiday now, in the middle of nowhere. I will adjust it this weekend when I'm back :-).

Best wishes, Sebastian