Welcome, Guest
Username: Password: Remember me

TOPIC: NOERED.f

NOERED.f 11 years 8 months ago #7680

  • ucs803
  • ucs803's Avatar
Hello, I'm having a problem using NOEROD.f

If I edit the rigid bed command line:
CALL OV( 'X=C ',ZR,ZF,ZF,-100.D0,NPOIN)

...to this do-loop:
DO I=1,NPOIN
IF(ZF(I).LT.2.D0) THEN
CALL OV( 'X=C ',ZR,ZF,ZF,-1.D0,I)
ELSE
CALL OV( 'X=C ',ZR,ZF,ZF,0.D0,I)
ENDIF
END DO

... I get 'divide by zero' or 'floating overflow' errors.

Any suggestions much appreciated.
Thanks,
Peter
The administrator has disabled public write access.

NOERED.f 11 years 8 months ago #7681

  • Pablo
  • Pablo's Avatar
  • OFFLINE
  • Moderator
  • Posts: 316
  • Thank you received: 121
Dear Peter,
this topic has been extensively discussed some weeks ago in the Sisyphe's post "Definition of non-erodable points".
You can also take a look to the validation test "005_rigid-bed"

All the best,

Pablo
The administrator has disabled public write access.

NOERED.f 11 years 8 months ago #7682

  • jmhervouet
  • jmhervouet's Avatar
Hello,

Please have a look at the guide for programming in the Telemac system, to understand what is subroutine OV and what it does. The loop from 1 to NPOIN is done by OV, NPOIN being the last argument. If you put I as last argument in a loop from 1 to NPOIN, imagine what it can do...

Regards,

JMH
The administrator has disabled public write access.

NOERED.f 11 years 8 months ago #7683

  • ucs803
  • ucs803's Avatar
Great,
Thanks both, working now. I modified ZR rather than subroutine OV
Peter
The administrator has disabled public write access.
Moderators: Pablo, pavans

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