From 52c178cd8a0fd5f14b66e2e3387dc7cf6b298239 Mon Sep 17 00:00:00 2001 From: "T.Tian" Date: Sun, 1 Dec 2024 11:48:16 +0800 Subject: [PATCH] simple ini example in main readme --- README.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/README.md b/README.md index 8488c3f4..8509d9c2 100644 --- a/README.md +++ b/README.md @@ -60,6 +60,22 @@ Install the pre-compiled SPARC binary alongside SPARC-X-API (Linux only). conda install -c conda-forge sparc-x ``` +### Setup SPARC-X-API + +Preferences for SPARC-X-API and SPARC C/C++ code can be defined in ASE [configuration file](https://wiki.fysik.dtu.dk/ase/ase/calculators/calculators.html#calculator-configuration), located at `~/.config/ase/config.ini`, such as following example: + +```ini +[sparc] +; `command`: full shell command (include MPI directives) to run SPARC +command = srun -n 24 path/to/sparc + +; `pp_path`: directory containing pseudopotential files (optional) +pp_path = path/to/SPARC/psps + +; `doc_path`: directory for SPARC LaTeX documentation to build JSON schema on the fly (optional) +doc_path = path/to/SPARC/doc/.LaTeX/ +``` + ### Reading / Writing SPARC files SPARC-X-API provides a file format `sparc` compatible with the ASE