Welcome, Guest
Username: Password: Remember me

TOPIC: Time variable

Time variable 10 years 6 months ago #12868

  • Mat
  • Mat's Avatar
Hello,

I want to write a subroutine using the time of the simulation. Ex.: if time>300 then...

Is the time of a simulation accessible in subroutine? If so, how can I call it?

Thanks!
The administrator has disabled public write access.

Time variable 10 years 6 months ago #12872

  • jmhervouet
  • jmhervouet's Avatar
Hello,

The time is the double precision AT. If it is not an argument of the subroutine, you can "see" it with the line:

USE DECLARATIONS_TELEMAC2D, ONLY : AT

at the beginning of the subroutine.

With best regards,

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

Time variable 10 years 6 months ago #12894

  • Mat
  • Mat's Avatar
Is there any dictionary that describes all the Telemac Declaration variables?

Thanks!
The administrator has disabled public write access.

Time variable 10 years 6 months ago #12896

  • jmhervouet
  • jmhervouet's Avatar
Hello,

No, this would be difficult to maintain independently of the source code itself. If you look at declarations_telemac2d.f, you will see that it is commented, if we develop this, e.g. saying where the variable is created and modified, this could become the dictionary. Anyway all keywords are initialised in lecdon_telemac2d and all bief_obj structures are allocated in point_telemac2d.

Regards,

JMH
The administrator has disabled public write access.
Moderators: pham

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