mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-26 05:05:30 -04:00
protect against compilation wo mcpl
This commit is contained in:
parent
e3f1bdaca1
commit
ca396268b5
1 changed files with 2 additions and 2 deletions
|
|
@ -407,12 +407,12 @@ void finalize_batch()
|
|||
auto filename = settings::path_output + "surface_source.h5";
|
||||
write_source_point(filename.c_str(), true);
|
||||
}
|
||||
|
||||
#ifdef OPENMC_MCPL
|
||||
if(settings::surf_mcpl_write && simulation::current_batch == settings::n_batches){
|
||||
auto filename = settings::path_output + "surface_source.mcpl";
|
||||
write_mcpl_source_point(filename.c_str(), true);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue