Small bug in nldiffusion_functions.cpp
Small bug in indexes in nldiffusion_functions.cpp