Forum

Delft3D stack overflow error

Lee Eddington, modified 1 Year ago.

Delft3D stack overflow error

Youngling Post: 1 Join Date: 6/26/23 Recent Posts
Hi,

I'm new to Delft3D and am running the Wave module and getting a stack overflow error:

.
.
.
​​​​​​​
+SWAN is processing output request    1
        1 file(s) copied.

C:\D3D\Southern California>rem exit 

>>...End of SWAN run
*** ERROR: file 'norm_end' expected to signal a correct SWAN calculation

forrtl: severe (170): Program Exception - stack overflow
Image              PC                Routine            Line        Source             
swan_4072ABCDE_de  00000001401D7D87  Unknown               Unknown  Unknown
swan_4072ABCDE_de  00000001400D00AE  SWOEXF                   4403  swanout1.for
swan_4072ABCDE_de  00000001400C068C  SWOUTP                    383  swanout1.for
swan_4072ABCDE_de  000000014002CE1A  SWMAIN                    598  swanmain.for
swan_4072ABCDE_de  000000014002B764  MAIN__                    110  swanmain.for
swan_4072ABCDE_de  00000001401D4FBC  Unknown               Unknown  Unknown
swan_4072ABCDE_de  00000001401B2AE5  Unknown               Unknown  Unknown
KERNEL32.DLL       00007FFD0AC47614  Unknown               Unknown  Unknown
ntdll.dll          00007FFD0B7226F1  Unknown               Unknown  Unknown

I'm running  on:

Windows 10 Enterprise
Delft3D 4.03.01
Delft3D-WAVE Version 3.05.04.7545M, Sep 13 2017, 20:57:19

It appears the model runs through the wave computations okay, but crashes when it's trying to do the output:

 use of rescaling in 100.00 % of wet points with maximum in spectral space =  247
 accuracy OK in  99.86 % of wet grid points ( 98.00 % required)

 ++ trace subr: HSOBND
 ++ trace subr: SWOUTP
+SWAN is processing output request    1
 ++ trace subr: SWORDC
 ++ trace subr: SWODDC
 ++ trace subr: SWOEXC
 ++ trace subr: EVALF
 ++ trace subr: EVALF
 ++ trace subr: SWOBSTO
 ++ trace subr: SWOEXD
 ++ trace subr: SWIPOL
 ++ trace subr: SWIPOL
 ++ trace subr: SWOEXA
 ++ trace subr: SWOINA
 ++ trace subr: ANGDEG
 ++ trace subr: SWOINA
 ++ trace subr: ANGDEG
        1 file(s) copied.
        1 file(s) copied.

My domain is pretty large with:

 Gridresolution       : MXC             465 MYC           1126
                      : MCGRD        407901

I watched the system memory usage as it runs and it's < 15%.  CPU usage is 100% during the iterations, but it drops down to ~5% when it crashes processing the output request.

I derefined the grid to:

 Gridresolution       : MXC             233 MYC            563
                      : MCGRD        102115

and it runs fine.

Any help would be greatly appreciated.