Segementation fault-invalid menmory reference

Hello, could you tell me the reason for this error? I chose 4×2×1 for calculation, and what does the memory invalid mean? Thank you!



1250_inlet_0.6_2022-11-10T150636.682555.zip (52.2 KB)

The stack trace is showing is that there’s a problem at line 176 of your usr_rates_des.f. (You should be able to click on the error message and jump to the correct file/line in the editor)

174   LB=NO_OF_RXNS+1
175   UB=NO_OF_RXNS+NO_OF_DES_RXNS
176   ReactionRates(IJK,LB)=ReactionRates(IJK,LB)+DES_RATES(R1)
177   RETURN

First, I disabled DMP and tried again to make sure it’s not a DMP issue. This also makes debugging easier.

Running in serial, I got the same error.

Using the gdb debugger:

Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x00007fef7cb2a4fe in usr_rates_des (np=1, pm=1, ijk=3610, des_rates=...)
    at /tmp/1250_inlet_0.6_2022-11-10T150636.682555/usr_rates_des.f:176

176	      ReactionRates(IJK,LB)=ReactionRates(IJK,LB)+DES_RATES(R1)
[Current thread is 1 (Thread 0x7fef7c8ba6c0 (LWP 11728))]
(gdb) print IJK
$1 = 3610
(gdb) print LB
$2 = 1
(gdb) print DES_RATES(1)
$3 = 1.8378691334328739e-10
(gdb) print ReactionRates
$4 = <not allocated>

ReactionRates is unallocated because its size (nrr) is set to 0: