Glad to hear that someone is looking at it. I was disappointed originally.
All you need is a continued computation, the wconv and wc,wn,wd variables are all set to zero length (unless a nonhydrostatic run had been done). There are probably some other variables that are setup in point_telemac3d etc with zero size. Need to ensure that none of them are filled using global array sizes eg in discrete do loops. I havent checked if the OS subroutines do a DIM1 check? They should.
Whether it shows up in the run really depends on the compiler memory layout and what the overwrites impact on. So I expect a random variable response between different machines. This highlights the problem of using pointers, the same problem that C code also suffers by default.
The problem showed itself when I tried to print out the TA variables whilst debugging something else. BUT it didnt always do the same thing. Eg different versions of telemac seemed to run ok even though the same coding error was evident. So feeding you my example wont necessarily show up.
My solution was to skip the read for any variable that DIM1==0. But really need to check that DIM1>=NPOIN3.
cheers
John