mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 06:05:58 -04:00
Updating warning condition for DAGMC threads and some comment corrections.
This commit is contained in:
parent
e952b2c6cb
commit
10fdebdd7a
2 changed files with 3 additions and 3 deletions
|
|
@ -17,9 +17,9 @@ extern "C" void free_memory_dagmc();
|
|||
|
||||
}
|
||||
|
||||
#endif // OPENMC_DAGMC_H
|
||||
#endif // DAGMC
|
||||
|
||||
#endif
|
||||
#endif // OPENMC_DAGMC_H
|
||||
|
||||
#ifdef DAGMC
|
||||
extern "C" constexpr bool dagmc_enabled = true;
|
||||
|
|
|
|||
|
|
@ -409,7 +409,7 @@ void read_settings_xml()
|
|||
}
|
||||
|
||||
#ifdef _OPENMP
|
||||
if (dagmc) {
|
||||
if (dagmc && omp_get_max_threads() > 1) {
|
||||
warning("Forcing number of threads to 1 for DAGMC simulation.");
|
||||
omp_set_num_threads(1);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue