-
-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added doc for env-vars, fixed units, added siesta-codata2018
- Documentation of sisl environment variables. - Added typing to sisl._environ - Fixed errors in UnitParser It should now also be much faster since the routines has been cleaned for superfluous code. - now the conversion is only getting the exact value of the requested value. This allows one to compare between different versions (previously it always converted to the default unit, which can create corner cases when comparing units between different conventions). - fixed requesting a single unit (just get the default SI value) - added test for single unit getting Signed-off-by: Nick Papior <[email protected]>
- Loading branch information
Showing
10 changed files
with
157 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
.. _environment: | ||
|
||
Environment variables | ||
===================== | ||
|
||
sisl understands some environment variables that may be used to tweak, or change | ||
the default behaviour of sisl. | ||
|
||
Here we list the different options: | ||
|
||
|
||
``SISL_NUM_PROCS = 1`` | ||
Default the number of processors used in parallel calculations. | ||
Currently only certain Brillouin zone operations has this enabled. | ||
|
||
Please test this for your machine before relying on it giving a lot | ||
of performance. Especially in conjunction with the ``OMP_NUM_THREADS`` | ||
flag for OpenMP in linear algebra libraries. | ||
Benchmark and see if it actually improves (certain combinations will | ||
severly hurt performance). | ||
|
||
``SISL_VIZ_AUTOLOAD == false`` | ||
whether or not to autoload the visualization module. | ||
The visualization module imports many dependent modules. | ||
If you run small scripts that does not use the `sisl.viz` module, then | ||
it is recommended to keep this to be false. | ||
|
||
``SISL_SHOW_PROGRESS = false`` | ||
Certain sisl routines has a builtin progress bar. This variable can default | ||
whether or not those will be shown. It can be nice for *slow* brillouinzone calculations | ||
to see if progress is actually being made. | ||
|
||
``SISL_IO_DEFAULT = ''`` | ||
The default IO methods `sisl.get_sile` will select files with this file-endings. | ||
For instance there are many ``stdout`` file types (for each DFT code). | ||
Setting this to ``Siesta`` would force all files to first search for Siesta file | ||
endings (see `sisl.io` for class names). | ||
|
||
``SISL_TMP = '.sisl_tmp'`` | ||
certain internal methods of sisl will use a temporary folder for storing data. | ||
The default is a new folder in the currently executed directory. | ||
|
||
``SISL_FILES_TESTS`` | ||
Full path to a folder containing tests files. Primarily used for developers. | ||
|
||
``SISL_CONFIGDIR = $HOME/.config/sisl`` | ||
where certain configuration files should be stored. | ||
|
||
Currently not in use. | ||
|
||
|
||
Code specific environment variables | ||
----------------------------------- | ||
|
||
Siesta | ||
^^^^^^ | ||
|
||
``SISL_UNIT_SIESTA = codata2018 | legacy`` | ||
determine the default units for Siesta files. | ||
|
||
Since Siesta 5.0, the default units are updated to follow | ||
the CODATA 2018 values. This means that quite a bit of | ||
results changed. This will force the internal variables | ||
to be consistent with this. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.