Hello,
I was trying to model Baltic Sea with the mesh I created. I'm not sure if it is the problem of my mesh or other reasons, the simulation didn't run due to an error "access violation".
The problem is found in the subroutine ELEBD (TELEMAC3D --> INBIEF --> ELEBD) during MESH ORGANISATION - 2D LEVEL.
To be more precise, the problem is caused by the following piece of code in ELEBD:
K2=KP1BOR(K1,1)
IEL = NELBOR(K1)
N1 = NBOR(K1)
N2 = NBOR(K2)
Further investigation shows that the error is caused by using the not-well-initialized matrix KP1BOR and NELBOR in the subroutine ELEBD (the maximum value of a single-precision variable 2147483647 is found in both KP1BOR and NELBOR).
For example, in the matrix KP1BOR, the following values are found:
1286 1287 1288 1289 1290 1296
2147483647 1296 1292 1293 1294 1295
1298 1299 1300 1301 1302 1303
It is similar in the matrix NELBOR.
Therefore, K2 and IEL may have the value of 2147483647, then N2 = NBOR(K2) will give the error "access violation".I tried to convert the mesh to double precision, but the problem remains.
Is this problem related to the mesh quality? Where are KP1BOR and NELBOR initialized in Telemac-3D?
Thanks in advance!
Best regards,
Qilong