mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 21:55:41 -04:00
Add openmc_sample_external_source function and Python binding
This commit is contained in:
parent
bf6cf505cc
commit
953b35e742
3 changed files with 53 additions and 7 deletions
|
|
@ -399,4 +399,14 @@ void free_memory_source()
|
|||
model::external_sources.clear();
|
||||
}
|
||||
|
||||
//==============================================================================
|
||||
// C API
|
||||
//==============================================================================
|
||||
|
||||
extern "C" int openmc_sample_external_source(uint64_t* seed, SourceSite* site)
|
||||
{
|
||||
*site = sample_external_source(seed);
|
||||
return 0;
|
||||
}
|
||||
|
||||
} // namespace openmc
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue