Time domain direct and inverse problems for a nonuniform LCRG line with internal sources