mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
COMP: Intel compiler bug with inheriting constructors (fixes #1821)
- the compiler reports
Internal error loop: assertion failed:
find_seq_in_lookup_table: seq_number not found
(shared/cfe/edgcpfe/il.c, line 4118)
Seems to be the same as the bug report
https://community.intel.com/t5/Intel-C-Compiler/Internal-error-loop-assertion-failed-find-seq-in-lookup-table/td-p/1087603
This _should_ be fixed in icc 17.0 update 1, but appears to have
struck here as well.
- workaround: explicitly construct member elements.
This commit is contained in:
@ -69,13 +69,12 @@ Foam::implicitFunctions::cylinderImplicitFunction::cylinderImplicitFunction
|
||||
const dictionary& dict
|
||||
)
|
||||
:
|
||||
cylinderImplicitFunction
|
||||
(
|
||||
dict.get<point>("origin"),
|
||||
dict.get<scalar>("radius"),
|
||||
dict.getOrDefault<scalar>("scale", 1),
|
||||
dict.get<vector>("direction")
|
||||
)
|
||||
// __INTEL_COMPILER bug with inheriting constructors?? (issue #1821)
|
||||
origin_(dict.get<point>("origin")),
|
||||
radius_(dict.get<scalar>("radius")),
|
||||
scale_(dict.getOrDefault<scalar>("scale", 1)),
|
||||
direction_(dict.get<vector>("direction").normalise()),
|
||||
project_(tensor::I - direction_*direction_) // outer product
|
||||
{}
|
||||
|
||||
|
||||
|
||||
@ -72,15 +72,13 @@ Foam::implicitFunctions::sinImplicitFunction::sinImplicitFunction
|
||||
const dictionary& dict
|
||||
)
|
||||
:
|
||||
sinImplicitFunction
|
||||
(
|
||||
dict.get<scalar>("period"),
|
||||
dict.getOrDefault<scalar>("phase", 0),
|
||||
dict.get<scalar>("amplitude"),
|
||||
dict.get<vector>("direction"),
|
||||
dict.get<vector>("up"),
|
||||
dict.get<vector>("origin")
|
||||
)
|
||||
// __INTEL_COMPILER bug with inheriting constructors?? (issue #1821)
|
||||
period_(dict.get<scalar>("period")),
|
||||
phase_(dict.getOrDefault<scalar>("phase", 0)),
|
||||
amplitude_(dict.get<scalar>("amplitude")),
|
||||
up_(dict.get<vector>("up").normalise()),
|
||||
direction_(dict.get<vector>("direction").normalise()),
|
||||
origin_(dict.get<vector>("origin"))
|
||||
{}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user