write_source_space