Welcome, Guest
Username: Password: Remember me

TOPIC: Error using limwac subroutine

Error using limwac subroutine 7 years 2 months ago #27745

  • Papadimitriou
  • Papadimitriou's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 80
  • Thank you received: 3
Dear Phelype,
Thank you very much for your help throughout the day.The model seems to be working smoothly now.

Kind regards,
Andreas
The administrator has disabled public write access.

Error using limwac subroutine 7 years 1 month ago #27892

  • SUHAILA
  • SUHAILA's Avatar
Hello all,
I'm trying your fortran file to my case, but i got these error.. could you help me, please? I already check for days and dont know my mistakes. See attachments.
Below the error I got.








c:\opentelemac-mascaret\Test_14\telemac>tomawac.py Tomawac_cas.txt


Loading Options and Configurations
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

_____ ___ __
|___ | |__ \ /_ |
__ __ _/ / _ __ ) | _ __ | |
\ \ / / |_ _| | '_ \ / / | '__| | |
\ V / / / | |_) | / /_ | | | |
\_/ /_/ | .__/ |____||_| |_|
| |
|_|
_ _ __ ___ __ ___ ___
_| || |_ /_ | / _ \ /_ | / _ \ |__ \
_ __ ___ __ __ |_ __ _| | || | | | | || (_) | ) |
| '__| / _ \\ \ / / _| || |_ | || | | | | | \__, | / /
| | | __/ \ V / _ |_ __ _| | || |_| | | | / / / /_
|_| \___| \_/ (_) |_||_| |_| \___/ |_| /_/ |____|


... parsing configuration file: C:\opentelemac-mascaret\v7p2\configs\systel_v7p2.cfg


Running your CAS file for:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

+> configuration: win7gfors
+> root: C:\opentelemac-mascaret\v7p2


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


... reading the main module dictionary

... processing the main CAS file(s)
+> running in English

... handling temporary directories

... checking coupling between codes

... checking parallelisation

... first pass at copying all input files
copying: geo_tomawac.slf c:\opentelemac-mascaret\Test_14\telemac\Tomawac_cas.txt_2017-09-27-13h18min15s\WACGEO
copying: bottom_tomawac.cli c:\opentelemac-mascaret\Test_14\telemac\Tomawac_cas.txt_2017-09-27-13h18min15s\WACCLI
copying: Offshore_boundary_waves.txt c:\opentelemac-mascaret\Test_14\telemac\Tomawac_cas.txt_2017-09-27-13h18min15s\WACFO1
copying: princi.f c:\opentelemac-mascaret\Test_14\telemac\Tomawac_cas.txt_2017-09-27-13h18min15s\wacfort.f
re-copying: c:\opentelemac-mascaret\Test_14\telemac\Tomawac_cas.txt_2017-09-27-13h18min15s\WACCAS
copying: tomawac.dico c:\opentelemac-mascaret\Test_14\telemac\Tomawac_cas.txt_2017-09-27-13h18min15s\WACDICO

... checking the executable
wacfort.f:221.16:

& ACTION='READ',
1
Error: Syntax error in OPEN statement at (1)
wacfort.f:221.6:

& ACTION='READ',
1
Error: Bad continuation line at (1)
wacfort.f:221.6:

& ACTION='READ',
1
Error: Unclassifiable statement at (1)
runCAS: could not compile: princi.exe
|processExecutable: could not compile your FORTRAN (runcode=1).
|
|... The following command failed for the reason above (or below)
|gfortran -c -O3 -fopenmp -fconvert=big-endian -frecord-marker=4 -I C:\opentelemac-mascaret\v7p2\builds\win7gfors\lib\utils\special -I C:\opentelemac-mascaret\v7p2\builds\win7gfors\lib\utils\damocles -I C:\opentelemac-mascaret\v7p2\builds\win7gfors\lib\utils\parallel -I C:\opentelemac-mascaret\v7p2\builds\win7gfors\lib\utils\hermes -I C:\opentelemac-mascaret\v7p2\builds\win7gfors\lib\utils\ad -I C:\opentelemac-mascaret\v7p2\builds\win7gfors\lib\utils\bief -I C:\opentelemac-mascaret\v7p2\builds\win7gfors\lib\tomawac wacfort.f
Attachments:
The administrator has disabled public write access.

Error using limwac subroutine 7 years 1 month ago #27894

  • Papadimitriou
  • Papadimitriou's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 80
  • Thank you received: 3
As it has previously been stated, I am an almost total newbie in Fortran so I can't be of much help. I suspect that it has to do with the read statement and the column the sign "&" is located. I would try to change the directory I put the waves.txt file in order to reduce the size that has to be written in the command. I am attaching the last version of my subroutine that currently works in my system.

Regards,
Andreas
Attachments:
The administrator has disabled public write access.
The following user(s) said Thank You: SUHAILA

Error using limwac subroutine 7 years 1 month ago #27899

  • SUHAILA
  • SUHAILA's Avatar
tqsm Andreas for your quick reply...i'll try my best
The administrator has disabled public write access.

Error using limwac subroutine 7 years 1 month ago #27895

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

The problem is at the OPEN statement, and it happens because the first line is too long. Fortran has a "feature" that dates back from the punch cards, that is its fixed width. That is, in Fortran 77 anything you type beyond the 72nd character is ignored by the compiler (132nd character in modern Fortran). Telemac compiled with fixed-form fortran, so you will have to shorten your OPEN line to 72 characters max.

You have two options:

First and most straightforward is to shorten the path to your file, as Andreas suggested. If you cannot shorten the path, do it with the file name. For example, call your file "wav" (without extension). It should solve the problem.

Second is to split the path into two lines and concatenate them. Like this:
        OPEN(UNIT=26,FILE='C:\opentelemac-mascaret\Test_14\telemac\'//
     &  'Offshore_boundary_waves.txt',
I split the name in two strings, and concatenated them using the // operator. I also moved the second part to a new line and use the line continuation character (&) to show the compiler that the second line is a continuation of the first.

Either of these should work.

Regards,

Phelype
The administrator has disabled public write access.
The following user(s) said Thank You: SUHAILA

Error using limwac subroutine 6 years 4 months ago #30923

  • c.diamantopoulos
  • c.diamantopoulos's Avatar
Hi everybody,
My code is running without error, but it seems that the wave serie is not taken into account, only the wave of the boundary condition is.
Attached are my files,
Can someone help me ?
Regards
Cyril
Attachments:
The administrator has disabled public write access.

Error using limwac subroutine 6 years 4 months ago #30924

  • Papadimitriou
  • Papadimitriou's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 80
  • Thank you received: 3
Hello Cyril,

I think the keywords clash, meaning you can't use the limit spectrum modified by user and then specify a non termporally varying wave height since the timeseries will then be ignored. Try commenting the following keywords at least
BOUNDARY SIGNIFICANT WAVE HEIGHT
BOUNDARY PEAK FREQUENCY
BOUNDARY MAIN DIRECTION 1
which you want to be read from the file. I am also attaching a modified princi.f file which was posted by T.Fouquet in another forum post

Kind regards,
Andreas
Attachments:
The administrator has disabled public write access.

Error using limwac subroutine 6 years 4 months ago #30931

  • c.diamantopoulos
  • c.diamantopoulos's Avatar
Thank you for that quick answer.

I have commented the lines referring to the initial/boundary conditions, still, nothing is happening… Do you have an idea why ?

Regards,
Cyril
The administrator has disabled public write access.

Error using limwac subroutine 6 years 4 months ago #30932

  • Leballeur
  • Leballeur's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 434
  • Thank you received: 163
Hello Cyril,

Did you check the directional convention of your boundary time series ? I noticed you have 270° at T=0s and 90° at T=100s.
Otherwise, can you upload your geometry and boundary condition files please ? which version are you using ?

Regards,
Laurent
The administrator has disabled public write access.

Error using limwac subroutine 6 years 4 months ago #30934

  • c.diamantopoulos
  • c.diamantopoulos's Avatar
Hello,
My directions are referred to the vertical axis with a clockwise direction. I changed 270° and i've just put 135° instead (the ocean is on the West and the shore on the East).
I am using version V7P2R3.

Regards,
Cyril
Attachments:
The administrator has disabled public write access.
Moderators: tfouquet

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