Welcome, Guest
Username: Password: Remember me

TOPIC: Error: 'noerod' of module 'interface_sisyphe'

Error: 'noerod' of module 'interface_sisyphe' 7 years 3 months ago #27533

  • jegatam
  • jegatam's Avatar
Hi everyone


I get the following error:
" USE INTERFACE_SISYPHE
1
Error: 'noerod' of module 'interface_sisyphe', imported at (1), is also the name of the current program unit"

Anyone know how to fix it?

Joaquín
Attachments:
The administrator has disabled public write access.

Error: 'noerod' of module 'interface_sisyphe' 7 years 3 months ago #27534

  • Phelype
  • Phelype's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 140
  • Thank you received: 64
Hello Joaquín

The problem here is that INTERFACE_SISYPHE contains a declaration of an interface for the subroutine NOEROD. This means that the module INTERFACE_SISYPHE contains the subroutine NOEROD.

Bu then, you are asking for subroutine NOEROD to use the module INTERFACE_SISYPHE, then the subroutine is being used by itself. And this is not allowed in fortran.

Do you really need to access the module INTERFACE_SISYPHE within NOEROD?

One way to solve this problem if you don't need the module is to simply remove the line "USE INTERFACE_SISYPHE".

Hope this helps.

Best regards,

Phelype
The administrator has disabled public write access.

Error: 'noerod' of module 'interface_sisyphe' 7 years 2 months ago #27648

  • jmhervouet
  • jmhervouet's Avatar
Hello,

Yes, good compilers do this sort of checking and they are right. The workaround is to change the line :

USE INTERFACE_SISYPHE

into:

USE INTERFACE_SISYPHE, EX_NOEROD => NOEROD


which means that the NOEROD mentioned in the interface is given another name EX_NOEROD, so that it does not clash with your subroutine. To my knowledge Intel Fortran does not check this but Nag does.

With best regards,

Jean-Michel Hervouet
The administrator has disabled public write access.
Moderators: Pablo, pavans

The open TELEMAC-MASCARET template for Joomla!2.5, the HTML 4 version.