面向对象编程在激子结合能含时密度泛函理论计算中的应用
计算物理
2013-03-12 v1 材料科学
摘要
本文讨论面向对象编程对科学计算的益处,以我们最近使用含时密度泛函理论 (arXiv: 1302.6972) 计算激子结合能作为案例研究。我们发现,通过促进代码重用,面向对象方法极大地促进了代码的开发、调试和未来扩展。我们展示了在我们的代码中以面向对象方式轻松添加并行性,使用了 ScaLAPACK、Boost::MPI 和 OpenMP。
引用
@article{arxiv.1303.2637,
title = {Application of object-oriented programming in a time-dependent density-functional theory calculation of exciton binding energies},
author = {Zeng-hui Yang and Carsten A. Ullrich},
journal= {arXiv preprint arXiv:1303.2637},
year = {2013}
}
备注
3 figures