modified BCs at inflow and outflow. code blows up.