Simplify test and fix typos in documentation

This commit is contained in:
Dan Short 2020-08-05 16:10:04 +01:00
parent 0bb5030ee0
commit 475656e6e0
2 changed files with 8 additions and 33 deletions

View file

@ -288,8 +288,8 @@ the custom source, based on the value supplied in the
// you must have external C linkage here otherwise
// dlopen will not find the file
extern "C" ParameterizedSource* openmc_create_source(const char* parameterized_source) {
return new ParameterizedSource(std::stod(parameters));
extern "C" ParameterizedSource* openmc_create_source(const char* parameter) {
return new ParameterizedSource(atof(parameter));
}
As with the basic custom source functionality, the custom source library