Skip to content

Improper use of pointers in the code #177

@sangallidavide

Description

@sangallidavide

Issue spot by Cineca team

Following code is not correct

  • Original code
       KERNEL_p => DEV_VAR(KERNEL%blc)(:,:,:)                           
       Xo_p     => DEV_VAR(Xo%blc)(:,:,:)                               

From my understanding, it should be one of this options

  • Option 1
       KERNEL_p => DEV_VAR(KERNEL%blc)(1,1,1)
       Xo_p     => DEV_VAR(Xo%blc)(1,1,1)
  • Option 2
       KERNEL_p => DEV_VAR(KERNEL%blc)
       Xo_p     => DEV_VAR(Xo%blc)
  • Option 3
       KERNEL_p(:,:,:) => DEV_VAR(KERNEL%blc)(:,:,:)
       Xo_p(:,:,:)     => DEV_VAR(Xo%blc)(:,:,:)

Is this true ? Any documentation where the original code is reported as not correct?

Metadata

Metadata

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