[gitignore] added another cmake build dir
replaced #ifdef by #if again
[discretefunction.default] fix grid view usage