Hi community,
As I explained in a previous post, I am trying to add runoff coefficients, read from mesh, in T2D, in order to transform the rain in runoff depending on the zone.
For now I changed the following files (subroutines). Please can you check if I well understand the purpose of each one :
- NOMVAR_TELEMAC2D : define the name of the variable
- POINT_TELEMAC2D : Allocate the memory
- TELEMAC2D : Call the required subroutine
- FONSTR : Is called by TELEMAC2D and used to read the variable in the SELAFIN mesh (using FIND_IN_SEL) and attibute the read coefficient to a variable. For example attribute the friction coefficient to CHESTR.
I also changed the following files (Module) but I don't know when they are calling
:
- BIEF
- INTERFACE_TELEMAC2D
- DECLARATION_TELEMAC2D
At the end, my aim is to call in my personnal prosou.f a runoff coefficient which is read in the mesh (exactly like the friction coefficient). If i a right, the line in the prosou.f should be :
PLUIE%R(I)=MAX(RAIN_MPS*RUISS%R(I),-HN%R(I)*SURDT)
The image in attachment show the organisation of these files as i understand it.
Do you know if there is some other files to changed ?
I have also two other problems
:
1) I don't manage to add a Print command in the MODULE.f. It works well with subroutines so i can add markers in each file in order to know in which order they are read and from where come the problems. But I can't add such marker in the MODULE. For example i use : PRINT*, 'MARQUEUR 3'
2) To test the changed file, I use only one file containing all the chnged subroutines and modules. Then I add its name in my .cas file. The problem is that when i copy/paste the telemac2d.f, it seems that some LOOP are not closed and then cannot be added in same time of other subrouytines (otherwise the loop are extended to the other subroutines). I tried to add an ENDLOOP at the end but it doesn't work. I also try to only recompile the telemac2d.f or the fonstr.f but it doesn't work because it seems that all the calling subroutines (like bief) have to be recompile in the same time.
Hope you will read this topic until the end.
Thanks for any help.
JP