mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 14:15:42 -04:00
Use quadric solver from ACM TOMS 46(2), pp1-28 (algorithm 1010)
This commit is contained in:
parent
b557e62b5d
commit
377ee77486
5 changed files with 732 additions and 243 deletions
10
include/openmc/external/quartic_solver.h
vendored
Normal file
10
include/openmc/external/quartic_solver.h
vendored
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
#ifndef OPENMC_EXTERNAL_QUARTIC_SOLVER_H
|
||||
#define OPENMC_EXTERNAL_QUARTIC_SOLVER_H
|
||||
|
||||
#include <complex>
|
||||
|
||||
extern "C" {
|
||||
void oqs_quartic_solver(double coeff[5], std::complex<double> roots[4]);
|
||||
}
|
||||
|
||||
#endif // OPENMC_EXTERNAL_QUARTIC_SOLVER_H
|
||||
Loading…
Add table
Add a link
Reference in a new issue