Hello,
I'm trying for the first time to add a fortran subroutine to a 2D telemac model.
I started with something simple which I put in 'test.f':
SUBROUTINE HELLO_WORLD
print *, 'start!'
print *, 'FINISHED!'
END
In the cas file I added: FICHIER FORTRAN = 'test.f'
The model runs correctly, I don't have any erorrs (after adding 6 spaces at the beginning of each line of my fortran code). But I don't see anything printed.
My goal is actually to get ouput of telemac straight into a .csv file with the following fortran code:
SUBROUTINE HELLO_WORLD
use DECLARATIONS_TELEMAC2D
implicit none
print *, 'start!'
integer :: n
open(unit=20,file=trim(TITCAS) // '.CSV',action='write')
DO n = 1,NPOIN
write(20,*) , n,AT,X(n),Y(n),ZF%R(n),H%R(n)
End Do
close(unit=20)
print *, 'FINISHED!'
END
this also runs and gives no errors but I don't see a file. I used the option 'do not delete working directory' cause I think the file should be there. In this map I only see a new file: 't2dfort.f' which contains my fortran code.
Could anyone help me out where I can find my output?
Thanks a lot!
Cynthia