Welcome, Guest
Username: Password: Remember me

TOPIC: Changing friction coefficient using TelApy

Changing friction coefficient using TelApy 5 years 4 months ago #34000

  • Htun Pyae Sone
  • Htun Pyae Sone's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 38
  • Thank you received: 2
Dear All,
I am learning to use TelApy module using the estimation from examples. I encounter a problem while trying to change the friction coefficient using "set()" method. As mentioned in the user manual, the coordinates are not necessary while changing the scalar variable as far as I understand. So I exectued the code "my_problem.set('MODEL.CHESTR',15)" and it gives me follwing error in terminal:
At line 172 of file /home/sone/telemac-mascaret/v8p0r2/sources/api/api_handle_var_t2d.f
Fortran runtime error: Index '1' of dimension 1 of array 'inst%chestr%r' above upper bound of 0
and for "my_problem.get('MODEL.CHESTR')" this error:
At line 93 of file /home/sone/telemac-mascaret/v8p0r2/sources/api/api_handle_var_t2d.f
Fortran runtime error: Index '1' of dimension 1 of array 'inst%chestr%r' above upper bound of 0

However, both commands doesn't give any error if I executed the "my_problem.init_state_default()" first. Anyway, this doesn't help me as I have to change before initialization.

Please kindly suggest me what could be the error and how should I fix it. It is working with setting other variable like Number of time steps. Thank you so much for your help and time.





Best Regards,
Htun
The administrator has disabled public write access.

Changing friction coefficient using TelApy 5 years 4 months ago #34006

  • yugi
  • yugi's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 851
  • Thank you received: 244
Hi,

This is normal the array is only available after the allocation.

Can you post your Python script ?
There are 10 types of people in the world: those who understand binary, and those who don't.
The administrator has disabled public write access.
The following user(s) said Thank You: Htun Pyae Sone

Changing friction coefficient using TelApy 5 years 3 months ago #34306

  • Htun Pyae Sone
  • Htun Pyae Sone's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 38
  • Thank you received: 2
Dear Yugi,

Sorry for the late reply. I thought I deleted this post. In fact, it is working fine since that day and I deleted the post. Apparently I did not. I am very sorry to bother you and for late reply. Thank you so much for your help.

Best Regards,
Htun
The administrator has disabled public write access.
Moderators: pham

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