Skip to content

fix the error for "The type of the actual argument differs from the type of the dummy argument" #3

Description

@jiaozihao18

Hello,

In the original file extpot_glb.F, defining certain variable types causes an error: "The type of the actual argument differs from the type of the dummy argument". For example, on line 20, RGRID, allocatable :: SCX(:), SCY(:), SCZ(:) is defined, where SCX, SCY, and SCZ are all of the RGRID type. However, in functions such as CALC_Sdelta_COEFF (line 493), the parameter type is real(q) :: s(-di_smear:di_smear). This discrepancy causes the aforementioned error when calling the function at line 221 with call CALC_Sdelta_COEFF(NXMAX, SCX, di_smear).

Additionally, on line 219, “sCZ” should be changed to “SCZ”.

To ensure that all involved variable types are consistent with RGRID, I have modified the corresponding variable declarations in the extpot_glb.F function. The modified file is attached. Since I am not very familiar with the finer details of the principles involved, could you please check whether changing the types to RGRID is appropriate?

Thank you for your contributions to the field of plasmonics.
extpot_glb_m.F.txt

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions