Hi,
Thanks to you, I manage to compile the win7gforsdbg version. Although it did not show which line the calculation fail when I run it in the usual way, I can get the information when I run it with gdb.
Now i know that the problem is in the dragfo file, and it gave me this error message:
================================================================================
ITERATION 28800 TIME: 4 H 0 MIN 0.0000 S ( 14400.0000 S)
ADVECTION STEP
DIFFUSION-PROPAGATION STEP
EQUNOR (BIEF) : 11 ITERATIONS, RELATIVE PRECISION: 0.8101051E-04
POSITIVE DEPTHS OBTAINED IN 7 ITERATIONS
BALANCE OF WATER VOLUME
VOLUME IN THE DOMAIN : 0.1906963E+14 M3
FLUX BOUNDARY 1: 76518.83 M3/S ( >0 : ENTERING <0 : EXITING )
FLUX BOUNDARY 2: 439596.9 M3/S ( >0 : ENTERING <0 : EXITING )
RELATIVE ERROR IN VOLUME AT T = 0.1440E+05 S : 0.2749332E-13
PRERES: MAXIMUM COURANT NUMBER: 0.1896932
EQUNOR (BIEF) : EXCEEDING MAXIMUM ITERATIONS: 15000 RELATIVE PRECISION: NaN
Program received signal SIGSEGV, Segmentation fault.
0x0000000000406257 in dragfo (fudrag=..., fvdrag=...)
at C:\Users\surya\OneDrive\Documents\TELEMAC\ntt_turbine\15_cas_1bc_1i_6.cas_2022-03-30-21h35min54s\user_fortran\dragfo_4.f:382
382 IF(IPID.EQ.DDPID(I,IANGLE))THEN
(gdb) list 382
377 IANGLE=INT(ALPHA+0.5D0)
378 XDD = XTEC(I) - DD(I)*COS(DBLE(IANGLE)*DTR)
379 YDD = YTEC(I) + DD(I)*SIN(DBLE(IANGLE)*DTR)
380 UREFX=0.D0
381 UREFY=0.D0
382 IF(IPID.EQ.DDPID(I,IANGLE))THEN
383 N1=IKLE%I(DDELEM(I,IANGLE))
384 N2=IKLE%I(NELEM+DDELEM(I,IANGLE))
385 N3=IKLE%I(2*NELEM+DDELEM(I,IANGLE))
386 !
(gdb) bt
#0 0x0000000000406257 in dragfo (fudrag=..., fvdrag=...)
at C:\Users\surya\OneDrive\Documents\TELEMAC\ntt_turbine\15_cas_1bc_1i_6.cas_2022-03-30-21h35min54s\user_fortran\dragfo_4.f:382
#1 0x000000000064be90 in fricti (fu_imp=..., fv_imp=..., fudrag=..., fvdrag=..., un=..., vn=..., hn=..., cf=...,
mesh=..., t1=..., t2=..., vertic=.TRUE., unsv2d=..., msk=.FALSE., maskel=..., hfrot=1)
at C:\opentelemac-mascaret\v8p2\sources\telemac2d\fricti.f:164
#2 0x0000000000501543 in propag (u=..., v=..., h=..., uconv=..., vconv=..., convv=..., h0=..., patmos=...,
atmos=.FALSE., hprop=..., un=..., vn=..., hn=..., utild=..., vtild=..., htild=..., dh=..., du=..., dv=...,
dhn=..., visc=..., visc_s=..., fu=..., fv=..., smh=..., mesh=..., zf=..., am1=..., am2=..., am3=..., bm1=...,
bm2=..., cm1=..., cm2=..., tm1=..., a23=..., a32=..., mbor=..., cv1=..., cv2=..., cv3=..., ubor=..., vbor=...,
aubor=..., hbor=..., dirbor=..., te1=..., te2=..., te3=..., te4=..., te5=..., t1=..., t2=..., t3=..., t4=...,
t5=..., t6=..., t8=..., limpro=..., mask=..., grav=9.8100000000000005, roeau=1025, cf=..., difvit=.TRUE.,
iordrh=1, iordru=1, lt=30037, dt=0.5, tetah=0.55000000000000004, tetau=0.55000000000000004, tetad=1, aggloh=1,
agglou=1, kdir=2, infogr=.FALSE., kfrot=4, iconvf=..., isousi=1, bilmas=.TRUE., masses=0, mass_rain=0,
yasmh=.FALSE., optban=1, corcon=.TRUE., optsup=..., msk=.FALSE., maskel=..., maskpt=..., ro=..., rovar=.FALSE.,
mat=..., rhs=..., unk=..., tb=..., s=..., preccu=.FALSE., solsys=2, opdvit=1, optsou=1, nfrliq=2, slvpro=...,
equa=..., vertic=.TRUE., adjo=.FALSE., zflats=..., tetazcomp=0, udel=..., vdel=..., dm1=..., zconv=...,
flbor=..., bm1s=..., bm2s=..., cv1s=..., volu2d=..., v2dpar=..., unsv2d=..., ndga1=..., ndgb1=..., nweirs=0,
npsing=..., hfrot=1, flulim=..., yaflulim=.FALSE., flulimebe=..., yaflulimebe=.FALSE., rain=.FALSE., pluie=...,
maxadv=15000, optadv_vi=1, ikle=..., nelmax=214349, _equa=20)
at C:\opentelemac-mascaret\v8p2\sources\telemac2d\propag.F:1021
#3 0x0000000000450748 in telemac2d (pass=-1, atdep=0, niter=0,
code=<error reading variable: Cannot access memory at address 0x1417f71>,
dtdep=<error reading variable: Cannot access memory at address 0x0>,
newtime=<error reading variable: Cannot access memory at address 0x0>,
doprint=<error reading variable: Cannot access memory at address 0x0>,
niterori=<error reading variable: Cannot access memory at address 0x0>,
convergence_level=<error reading variable: Cannot access memory at address 0x0>, _code=7)
at C:\opentelemac-mascaret\v8p2\sources\telemac2d\telemac2d.F:1229
#4 0x0000000000408dbe in homere_telemac2d () at C:\opentelemac-mascaret\v8p2\sources\telemac2d\homere_telemac2d.F:296
#5 0x000000000040a059 in main (argc=1, argv=0x2cb4dc0)
at C:\opentelemac-mascaret\v8p2\sources\telemac2d\homere_telemac2d.F:35
#6 0x00000000004013e5 in __tmainCRTStartup () at /home/ruben/mingw-w64/src/mingw-w64/mingw-w64-crt/crt/crtexe.c:315
#7 0x0000000000401508 in mainCRTStartup () at /home/ruben/mingw-w64/src/mingw-w64/mingw-w64-crt/crt/crtexe.c:195
Can anyone please help me identify the problem? My amateur analysis thinks that it might be due to the angle of the reference velocity. How do I overcome this? thanks.