Add advector/adubref code. Pending for fully test.
TODO: test and optimize the code.