Added missing fixed source subroutine

This commit is contained in:
Andrew Davis 2019-06-13 14:40:15 +01:00 committed by Andrew Davis
parent 8036903b05
commit 21bf7243eb

View file

@ -296,8 +296,9 @@ void initialize_source()
// check for any dlsym errors
if (dlsym_error) {
std::cout << dlsym_error << std::endl;
dlclose(source_library);
fatal_error(dlsym_error);
fatal_error("Couldnt open the sample_source symbol");
}
// Generation source sites from specified distribution in the
@ -313,7 +314,7 @@ void initialize_source()
}
// release the library
dlclose(source_library);
} else {
// Generation source sites from specified distribution in user input
for (int64_t i = 0; i < simulation::work_per_rank; ++i) {