Hello,
I am trying to include non-stationary wind generation in a TOMAWAC-TELEMAC2D (v7p3r1) model, but I noticed an issue related to the saving of variables TV1, TV2, U1...V2 within WAC.f when reading a type 4 formatted wind file (t U V).
The initialisation (PART=0) is ok, VENUTI is called through CONDIW->LECDOI->VENUTI in WAC: TV1, TV2 etc. are stored correctly. At the end of the IF(PART.LE.0) loop, it seems WAC terminates and is run again from the start with PART=1: the initial values of TV1, TV2 etc. are then lost and the code gives a "segmentation fault - Invalide memory reference" error after calling VENUTI through SEMIMP->NOUDON->VENUTI because TV1 and TV2 have been given a default value, which is very small (10^(-300) or something like that).
This problem is not observed when a stationary wind is considered.
Would you know why TV1 etc. are not saved between the initialisation (PART=0) and the running (PART=1) phases? And how to fix it?
For your information, here are the options I put in the .cas file:
PRISE EN COMPTE DES TERMES SOURCES = OUI
FICHIER DES VENTS FORMATE = 'vent_homere_simu_tom.txt'
FORMAT DU FICHIER DES VENTS = 4
PRISE EN COMPTE DU VENT = OUI
VENT STATIONNAIRE = NON
APPORTS DUS AU VENT = 1
COEFFICIENT DE GENERATION PAR LE VENT = 1.2
CROISSANCE LINEAIRE DES VAGUES = 1
Thank you for your help.
Regards,
JBS.