Welcome, Guest
Username: Password: Remember me

TOPIC: Use of private arrays in TOMAWAC.

Use of private arrays in TOMAWAC. 12 years 1 week ago #6332

  • nicolas
  • nicolas's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 21
Hi,

I am trying to display the spatio-temporal evolution of a new variable in TOMAWAC. But I do not find the subroutine in which to declare the associated table. The subroutine NOMVAR_TOMAWAC enables only to declare the name of the variables but not the corresponding tables. In Telemac2d, I used to declare the tables in the subroutine PRERES_TELEMAC2D. I do not find the same routine in the sources of Tomawac. I would be grateful if you could give me further information regarding this new declaration.

Best regards,

Nicolas.
The administrator has disabled public write access.

Use of private arrays in TOMAWAC. 12 years 6 days ago #6346

  • pham
  • pham's Avatar
  • OFFLINE
  • Administrator
  • Posts: 1559
  • Thank you received: 602
Hi Nicolas,

I have the feeling that the equivalent subroutine of PRERES_TELEMAC2D for TOMAWAC is DUMP2D (see the calls of BIEF_DESIMP in WAC or TELEMAC2D, and also if you do a 'grep' in Linux or 'findstr' in Dos on the string SORLEO).

Just a warning if you create new variables, you may have to change some pointers in POINT_TOMAWAC. In that case, you will have to recompile the whole TOMAWAC.

Hope this helps,

Chi-Tuan
The administrator has disabled public write access.

Use of private arrays in TOMAWAC. 12 years 6 days ago #6348

  • pham
  • pham's Avatar
  • OFFLINE
  • Administrator
  • Posts: 1559
  • Thank you received: 602
Hi again,

Contrary to TELEMAC-2D which offers the possibility to define 4 extra variables in its standard version (# 23 to 26), it seems that the standard version of TOMAWAC does not. In particular, it seems that all 35 variables are already declared. To add new variables in your 2d results file, I think you will have to do a good developer's job: new options for VARIABLES FOR 2D GRAPHIC PRINTOUTS in the dictionnary + changes in LECDON_TOMAWAC, in DECLARATIONS_TOMAWAC (e.g. MAXVAR)... Do not forget to recompile the whole things.

Good luck!

Chi-Tuan
The administrator has disabled public write access.
The following user(s) said Thank You: nicolas

Use of private arrays in TOMAWAC. 12 years 6 days ago #6350

  • nicolas
  • nicolas's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 21
Hi Chi -Tuan,

Thank you very much for your answer. I will try to do so. I think I will first print out the new variables in a new formatted file (of ascii type for instance, it will be easier for me....) and then see how to integrate the new variables during the computation in the final selaphin file. Hope I will succeed in doing a good developer's job.

Thank you agin for your response.

Nicolas.
The administrator has disabled public write access.

Use of private arrays in TOMAWAC. 12 years 6 days ago #6351

  • Elodie
  • Elodie's Avatar
Hi,

just to know : what is the new variable you need to add ? Can you not post-process it (calculate it in FUDAA from the existing variables for example)?
I note your request and we will try to add this possibility in a next version of TOMAWAC.

Regards,

Elodie
The administrator has disabled public write access.

Use of private arrays in TOMAWAC. 12 years 6 days ago #6358

  • nicolas
  • nicolas's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 21
Hi,

The new variable is the near-bottom excursion amplitude which is quite difficult to post-process with the default printed variables. Nevertheless, I was able to print out this variable bypassing classical printing option of TOMAWAC in a final selaphin file. Indeed, I do think it will benefit the modelling community to add this option in the next version of TOMAWAC.

Best regards,

Nicolas.
The administrator has disabled public write access.
Moderators: tfouquet

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