add a more flexible function for scale factor and fix one error in create_mass_matrices.f90
Merge pull request #165 from xiezhinan/devel

add a more flexible function for scale factor and fix one error in create_mass_matrices.f90