Skip to content

Commit 41317cf

Browse files
committed
read the properties in the right place
1 parent 0e9eea3 commit 41317cf

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

src/initialize.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,11 @@ int openmc_init(int argc, char* argv[], const void* intracomm)
118118
if (!read_model_xml())
119119
read_separate_xml_files();
120120

121+
if (!settings::properties_file.empty()) {
122+
openmc_properties_import(settings::properties_file.c_str(),
123+
settings::read_temperatures, settings::read_densities);
124+
}
125+
121126
// Reset locale to previous state
122127
if (std::setlocale(LC_ALL, prev_locale.c_str()) == NULL) {
123128
fatal_error("Cannot reset locale.");
@@ -502,11 +507,6 @@ void read_separate_xml_files()
502507
read_plots_xml();
503508

504509
finalize_variance_reduction();
505-
506-
if (!settings::properties_file.empty()) {
507-
openmc_properties_import(settings::properties_file.c_str(),
508-
settings::read_temperatures, settings::read_densities);
509-
}
510510
}
511511

512512
void initial_output()

0 commit comments

Comments
 (0)