-
Quick question: how do I add a search path for ncmat files that can be found by the hooks? I tried with |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
The short answer is that you simply add the directory to the The The reason paths added via For reference, the NCRYSTAL_DATA_PATH variable is also mentioned in the notebook at https://github.com/mctools/ncrystal-notebooks/blob/main/notebooks/ncrystal1_basic_02_Data_Infrastructure_and_StdDataLib.ipynb and in the "Using NCrystal" wiki page at: https://github.com/mctools/ncrystal/wiki/Using-NCrystal . But clearly, the bright future with a proper NCrystal website will document this better :-) (also in principle a duplicate of #82) |
Beta Was this translation helpful? Give feedback.
The short answer is that you simply add the directory to the
NCRYSTAL_DATA_PATH
environment variable. This variable works like any PATH-like environment variable, so multiple directories can be separated by colons (:
).The
NCRYSTAL_DATADIR
variable should not be used for such user data - it exists solely as a rarely needed workaround for weird installations that don't know their standard library location (or for when running unit tests out of the CMake build area and the standard library is not embedded). It might be good to rename this variable at some point, to make the usage more clear.The reason paths added via
NC.addCustomSearchDirectory()
does not propagate to the openmc run, is th…