“…KSSOLV [10] is one such Matlab code for the planewave method, traditionally the discretization of choice in Kohn-Sham DFT [11,12,13,14,15,16]. However, to the best of our knowledge, no such counterpart exists for real-space methods, which have gained significant attention recently [17,18,19,20,21,22,23,24], in part due to their high scalability for large-scale parallel computing [25,23,24], flexibility in the choice of boundary conditions [26,27,28], and amenability to the development of linear scaling methods [29,8]. Motivated by this, in this work we develop M-SPARC: Matlab-Simulation Package for Ab-initio Realspace Calculations.…”