Welcome, Guest
Username: Password: Remember me

TOPIC: Time and space varying coefficient of wind influence

Time and space varying coefficient of wind influence 6 years 6 days ago #32027

  • mibie
  • mibie's Avatar
Hello,
I’m modelling a surge storm with TELEMAC2D (v7p3). I succeed to simulate varying wind and pressure in space and time by loading a “ASCII ATMOSPHERIC DATA FILE”. Now I would like to program a “COEFFICIENT OF WIND INFLUENCE” varying in space and time (which depends on waves characteristics and calculated by another model). In the same way, I wrote this coefficient varying in time and space in the “ASCII ATMOSPHERIC DATA FILE”, I succeed to load the data in the subroutine “METEO.f” however I’m not able to write this data in a new output variable useable in PROSOU.f. I declared this new variable in declarations_telemac2d.f, I modified as well telemac2d.F, telemac2d_init.F and interface_telemac2d.f in which a CALL METEO() is done. Compilation succeed however the execution stop when writing coefficient in the new output variable with the error “Program received signal SIGSEGV: Segmentation fault - invalid memory reference. Backtrace for this error:”. I tried as well to store this data in the PRIVE%ADR(1)%P%R(K) table. Compilation worked but the execution also stopped when writing data in this table with the same error. I recognize my limited knowledge in Fortran, but is it a new variable declaration problem?
thanks for your help.
Mikaël
The administrator has disabled public write access.

Time and space varying coefficient of wind influence 6 years 4 days ago #32075

  • Leballeur
  • Leballeur's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 434
  • Thank you received: 163
Hi Mikaël,

I think the easiest way to do it is the last method you mention, thanks to a private array which you first fill in meteo.f and then you read it after in prosou.f.
Can you give more details about the related segmentation fault error: steering and fortran files, output listing in debug mode...?

Regards,
Laurent
The administrator has disabled public write access.
The following user(s) said Thank You: mibie

Time and space varying coefficient of wind influence 5 years 11 months ago #32173

  • mibie
  • mibie's Avatar
Thank you Laurent, I finally succeed by using the private array. Some modification of call prosou.f were missing.
Mikaël
The administrator has disabled public write access.

Time and space varying coefficient of wind influence 5 years 11 months ago #32177

  • amanj2013
  • amanj2013's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 211
  • Thank you received: 24
Hi Mikael,
is i possible to share your cas and fortran files?

Thanks,
AMANJ
The administrator has disabled public write access.
Moderators: pham

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