do not define these functions if no MCPL present

This commit is contained in:
Erik B Knudsen 2022-10-04 10:11:06 +02:00
parent 5d1a84e0e9
commit 314f3dbbab

View file

@ -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)