mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-26 05:05:30 -04:00
do not define these functions if no MCPL present
This commit is contained in:
parent
5d1a84e0e9
commit
314f3dbbab
1 changed files with 4 additions and 2 deletions
|
|
@ -602,6 +602,7 @@ void write_source_point(const char* filename, bool surf_source_bank)
|
|||
file_close(file_id);
|
||||
}
|
||||
|
||||
#ifdef OPENMC_MCPL
|
||||
void write_mcpl_point(const char *filename, bool surf_source_bank)
|
||||
{
|
||||
std::string filename_;
|
||||
|
|
@ -639,7 +640,7 @@ void write_mcpl_point(const char *filename, bool surf_source_bank)
|
|||
}
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
void write_source_bank(hid_t group_id, bool surf_source_bank)
|
||||
{
|
||||
|
|
@ -757,6 +758,7 @@ void write_source_bank(hid_t group_id, bool surf_source_bank)
|
|||
H5Tclose(banktype);
|
||||
}
|
||||
|
||||
#ifdef OPENMC_MCPL
|
||||
void write_mcpl_source_bank(mcpl_outfile_t file_id, bool surf_source_bank)
|
||||
{
|
||||
int64_t dims_size = settings::n_particles;
|
||||
|
|
@ -837,7 +839,7 @@ void write_mcpl_source_bank(mcpl_outfile_t file_id, bool surf_source_bank)
|
|||
}
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
// Determine member names of a compound HDF5 datatype
|
||||
std::string dtype_member_names(hid_t dtype_id)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue