You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Recent versions of ifort/ifx (>2019, for what I have been able to accertain) suffer from the following problem:
Some variables are bound to c via iso_c_binding. Some of these variables are used as dimensions of input and return parameters of functions. For example, print_Hloc_nn_c has as input parameter hloc, which is declared to have dimension (Nnambu*Nspin,Nnambu*Nspin,Norb,Norb). In this case, the function is correctly compiled. However, if then the function is called in another module, the compilation fails with
error #7556: The external name for this symbol conflicts with a previously declared external name. [ED_INPUT_VARS^NORB] (and analogously for Nspin)
this holds for a given number of functions, e.g.
print_hloc
g0and_bath_array
f0_bath_array
and so on.
The problem doesn't arise if the variables are not iso_c bound, and it is specific to newer intel compilers (both ifort and the ifx) only.
The precise contours of this remain nebulous to me.
Possible fix:
replace the parameters in these functions either with dummy (:,:...) and assert_shape, if input parameter, or with allocatable and allocate if return parameter
The text was updated successfully, but these errors were encountered:
Recent versions of ifort/ifx (>2019, for what I have been able to accertain) suffer from the following problem:
Some variables are bound to c via iso_c_binding. Some of these variables are used as dimensions of input and return parameters of functions. For example,
print_Hloc_nn_c
has as input parameter hloc, which is declared to have dimension(Nnambu*Nspin,Nnambu*Nspin,Norb,Norb)
. In this case, the function is correctly compiled. However, if then the function is called in another module, the compilation fails witherror #7556: The external name for this symbol conflicts with a previously declared external name. [ED_INPUT_VARS^NORB]
(and analogously for Nspin)this holds for a given number of functions, e.g.
and so on.
The problem doesn't arise if the variables are not iso_c bound, and it is specific to newer intel compilers (both ifort and the ifx) only.
The precise contours of this remain nebulous to me.
Possible fix:
The text was updated successfully, but these errors were encountered: