Update flux.cpp