Welcome, Guest
Username: Password: Remember me

TOPIC: Error #5082 - tidal harmonic data

Error #5082 - tidal harmonic data 10 years 9 months ago #11788

  • dsc1r12
  • dsc1r12's Avatar
Hi,

I am trying to run a Telemac-2D simulation where I define tidal harmonic data for each liquid node in the fortran file.
I have attached the fortran file.
I get an error saying the following:

t2dfort.f(46): error #5082: Syntax error, found '&' when expecting one of: ( % [
. = =>
con(1, 'Z0', 0.0000000, 0,0,0,0, 0) &
^

I am unsure why I am getting this message as this format for defining tidal constituents has been used before and works.

Any help would be greatly appreciated.

Cheers

Danny
Attachments:
The administrator has disabled public write access.

Error #5082 - tidal harmonic data 10 years 9 months ago #11789

  • jmhervouet
  • jmhervouet's Avatar
Hello,

I never use such sophisticated features of Fortran so I am not sure of where the problem is. The compiler seems to miss a coma. The only thing I see is that e.g. 'Z0' should be 8 characters, so probably 'Z0 ', and that your continuation lines with & may exceed the maximum of 19. I always put the & only in column 6 and I would split all, setting the values wave by wave, like :
constituents(1)=con(1,'Z0 ',0.0000000,0,0,0,0,0)
though I did not know that setting a type(con) would work with ... =con(...) but it seems, to some extent.

Regards,

Jean-Michel Hervouet
The administrator has disabled public write access.
Moderators: pham

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