The first src commit.

Just able to build. I have not done any test.
Some functions are not finished: output, boundary, openmp, etc.