mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 06:05:58 -04:00
Add README to custom source example
This commit is contained in:
parent
c3ffc2f417
commit
32f5fd8854
1 changed files with 14 additions and 0 deletions
14
examples/custom_source/README.md
Normal file
14
examples/custom_source/README.md
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
# Building a Custom Source
|
||||
|
||||
To run this example, you first need to compile the custom source library, which
|
||||
requires headers from OpenMC. A CMakeLists.txt file has been set up for you that
|
||||
will search for OpenMC and build the custom library. To build the source
|
||||
library, you can run:
|
||||
|
||||
mkdir build && cd build
|
||||
OPENMC_ROOT=<path_to_openmc_install> cmake ..
|
||||
make
|
||||
|
||||
After this, you can build the model by running `python build_xml.py`. In the XML
|
||||
files that are created, you should see a reference to build/libsource.so, the
|
||||
custom source library that was built by CMake.
|
||||
Loading…
Add table
Add a link
Reference in a new issue