Added line  call outflow_w_s(w_s(:,:,:,snumb_s),substep) in subroutine outflowSolid(w_s, ux_s,substep) of outflow.F, Code still compiling but not executing