openmc

dlsymdlopen

develop

9 / 2160 files match, 4 filtered matches.

include/openmc/source.h



107 | 
108 |   double strength() const override { return custom_source_->strength(); }
109 | private:
110 |   void* shared_library_; //!< library from dlopen
111 |   std::unique_ptr<Source> custom_source_;
112 | };


tests/unit_tests/test_source.py



34 |     assert 'strength' in elem.attrib
35 |     assert 'file' in elem.attrib
36 | 
37 | def test_source_dlopen():
38 |     library = './libsource.so'
39 |     src = openmc.Source(library=library)


tests/regression_tests/source_parameterized_dlopen/test.py



69 |     return model
70 | 
71 | 
72 | def test_dlopen_source(compile_source, model):
73 |     harness = PyAPITestHarness('statepoint.10.h5', model)
74 |     harness.main()


tests/regression_tests/source_dlopen/test.py



68 |     return model
69 | 
70 | 
71 | def test_dlopen_source(compile_source, model):
72 |     harness = PyAPITestHarness('statepoint.10.h5', model)
73 |     harness.main()