Welcome, Guest
Username: Password: Remember me

TOPIC: Free variables for graphic printouts

Free variables for graphic printouts 11 years 5 months ago #9340

  • Proust_Nicolas
  • Proust_Nicolas's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 136
  • Thank you received: 2
Hi,

I would like to use a free variable to compute the maximum depth (with the maximum water mark and the bathymetry already computed).
When I code it in preres_telemac2d, the free variable (R in my case) is not recognized.

This is what I do (very simple as you see) :
DO N=1,NPOIN
R%R(N)=MAXZ%R(N)-ZF%R(N)
ENDDO

And the mistake in the console :

console.png


Any idea?

Regards
Nicolas
The administrator has disabled public write access.

Free variables for graphic printouts 11 years 5 months ago #9343

  • jmhervouet
  • jmhervouet's Avatar
Hello,

R should be a BIEF_OBJ structure declared and allocated.

In fact there is a procedure for exiting new variables, through the PRIVE structures. Look at keyword : NUMBER OF PRIVATE ARRAYS (NOMBRE DE TABLEAUX PRIVES).

If you have :

NUMBER OF PRIVATE ARRAYS = 1

you can put : PRIVE%ADR(1)%P%R(N) instead of R%R(N) (PRIVE is a block, see the guide for programming in the Telemac system for explanations).

and add the letter N in your VARIABLES FOR GRAPHIC PRINTOUTS in the steering file.

You can even modify subroutine nomvar_telemac2d.f to have the name you want (in this case change TEXTE(23)).

Have a nice week-end,

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

Free variables for graphic printouts 11 years 5 months ago #9345

  • Proust_Nicolas
  • Proust_Nicolas's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 136
  • Thank you received: 2
It was good for the number of private arrays and the variables for graphic printouts in the steering file.

Thank you for the use of PRIVE structures

Regards
Nicolas
The administrator has disabled public write access.
Moderators: pham

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