Commit graph

8 commits

Author SHA1 Message Date
Paul Romano
056026428f Some cosmetic improvements in examples 2022-02-04 07:19:42 -06:00
Gavin Ridley
a215e39182 remove all occurrences of Particle::{Bank,Type} 2021-05-03 18:03:06 -04:00
Paul Romano
9af5541e88 Make Source::sample() method const 2020-10-27 10:02:03 -05:00
Paul Romano
0bb39005bc Rename source classes 2020-10-23 14:11:34 -05:00
Paul Romano
713469bf59 Make regular source distributions obey the same interface as custom sources 2020-10-22 15:07:28 -05:00
Dan Short
21e8d91e90 Requested updates to source
Rename sample_source -> sample.
Use std::string as type of argument to openmc_create_source.
Use reinterpret_cast when accessing dlsym.
Also moves check for dlerror to be before the attempt to create the
source (avoids null reference if fails) and capture error message
before dlclose, so that the error message is still available.
Formatting updates and some refactoring for examples and tests.
2020-08-28 09:49:36 +01:00
Dan Short
821e7d9825 Remove old source_sampling custom source method
Custom sources are now created only through the new class-based method,
which supports parameterization.
New method also slightly adjusted to create the source as managed by a
unique_ptr.
Examples and tests updated to align with this approach.
Documentation updated.
2020-08-21 12:05:43 +01:00
Paul Romano
4525e38797 Move Python examples into subdirectory 2020-03-13 16:15:35 -05:00
Renamed from examples/python/custom_source/source_ring.cpp (Browse further)