Welcome, Guest
Username: Password: Remember me

TOPIC: Issues with V7P1 - compiling the subroutine

Issues with V7P1 - compiling the subroutine 8 years 2 months ago #23654

  • anasrahman
  • anasrahman's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 33
  • Thank you received: 1
Hello everyone,

I recently updated TELEMAC to its latest version (V7P1) for the use on both Windows machine and Linux cluster. I had no problem running a 3D hydrodynamic model on its own (i.e. without any subroutine included). But when I modified the condim subroutine to implement the ZSTAR mesh transformation and run the model, I will get one of the following errors:


... checking the executable
t3dfort.f:125.72:

& MARDAT,MARTIM,INTMICON,MSL)
1
Error: Missing actual argument for argument 'tidaltype' at (1)
runCAS: could not compile: b0_v7p1_condim_only
|processExecutable: could not compile your FORTRAN (runcode=1).



or

... checking the executable
t3dfort.f:233.10:

ZSTAR%R(1)=0.D0
1
Error: Syntax error in END DO statement at (1)
t3dfort.f:372.6:

END
1
Error: END DO statement expected at (1)
Error: Unexpected end of file in 't3dfort.f'
runCAS: could not compile: b0_v7p1_condim_only
|processExecutable: could not compile your FORTRAN (runcode=1).



From the discussions in this forum, I found that

a. the latest Telemac-3D version 7.1 introduces several new/modified keywords (e.g. MAXIMUM NUMBER OF BOUNDARIES). So I have updated my CAS file accordingly.

b. I have also requested my IT deparment to update the fortran compiler according to the new default function available in the v7p1, since there was some changes in some of them

c. some of the subroutines have been updated/modified/removed, so I used the latest condim file that comes with V7P1 downloaded contents. And I only made very minor modification on the condim subroutine just to check the validity of the mesh transformation.

Despite all the actions taken above, the problem still persists. I never had any problems when using the previous Telemac version, so I wonder whether I made any mistake in not using the updated keywords in the steering file?

And what does Error: Missing actual argument for argument 'tidaltype' means?

I would very much appreciate it if anyone who had experienced similar problem like this could share their insights on this matter.


File Attachment:

File Name: a2_TEST_Zstar.cas
File Size: 6 KB


File Attachment:

File Name: b0_v7p1_condim_only.f
File Size: 11 KB


Best regards
Anas
The administrator has disabled public write access.

Issues with V7P1 - compiling the subroutine 8 years 2 months ago #23655

  • jmhervouet
  • jmhervouet's Avatar
Hello,

You have an old version of condim.f and the call to condi_tpxo has been changed. It will work if you copy the call to condi_tpxo from condim.f in the library of Telemac-3D 7.1, the rest is probably OK.

With best regards,

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

Issues with V7P1 - compiling the subroutine 8 years 2 months ago #23664

  • anasrahman
  • anasrahman's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 33
  • Thank you received: 1
Thanks JMH for your reply

I am currently using condim.f from the latest Telemac library - v7p1r1 and it seems to do the trick. I no longer see the "tidaltype" error when starting the simulation.

however, I am still getting the "Syntax error in END DO statement"

... checking the executable
t3dfort.f:179.10:

ZSTAR%R(1)=0.D0
1
Error: Syntax error in END DO statement at (1)
t3dfort.f:316.6:

END
1
Error: END DO statement expected at (1)
Error: Unexpected end of file in 't3dfort.f'
runCAS: could not compile: condim_v7p0
|processExecutable: could not compile your FORTRAN (runcode=1).
|
|... The following command failed for the reason above (or below)
|gfortran -c -O3 -DHAVE_MPI -fconvert=big-endian -frecord-marker=4 -I /opt/telemac/v7p1r1/builds/fedgfopenmpi/lib/utils/special -I /opt/telemac/v7p1r1/builds/fedgfopenmpi/lib/utils/parallel -I /opt/telemac/v7p1r1/builds/fedgfopenmpi/lib/utils/damocles -I /opt/telemac/v7p1r1/builds/fedgfopenmpi/lib/utils/hermes -I /opt/telemac/v7p1r1/builds/fedgfopenmpi/lib/utils/bief -I /opt/telemac/v7p1r1/builds/fedgfopenmpi/lib/waqtel -I /opt/telemac/v7p1r1/builds/fedgfopenmpi/lib/sisyphe -I /opt/telemac/v7p1r1/builds/fedgfopenmpi/lib/tomawac -I /opt/telemac/v7p1r1/builds/fedgfopenmpi/lib/telemac2d -I /opt/telemac/v7p1r1/builds/fedgfopenmpi/lib/telemac3d t3dfort.f


even changing the mesh transformation = 3 (zplane) doesnt make any difference. Is there any specific fortran version that I should be using?

regards
Anas
The administrator has disabled public write access.

Issues with V7P1 - compiling the subroutine 8 years 2 months ago #23665

  • aleroy
  • aleroy's Avatar
Hello,

You must have a DO loop or an IF loop which misses an ENDDO or ENDIF in your fortran file.

Best regards,
Agnès
The administrator has disabled public write access.

Issues with V7P1 - compiling the subroutine 8 years 2 months ago #23669

  • anasrahman
  • anasrahman's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 33
  • Thank you received: 1
Hi Agnes,

Silly mistake from my part. I should have been more careful when dealing with the end statement

Thank you so much for pointing this out

Best regards
Anas
The administrator has disabled public write access.
Moderators: pham

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