Hello everyone, I’m trying to write some programs in mfix to calculate the Poisson equation. It calls the function solve_lin_eq for solving linear equations, but the following error occurs during runtime:
Error: Unexpected solver message:
malloc.c:2617: sysmalloc: Assertion `(old_top == initial_top (av) && old_size == 0) || ((unsigned long) (old_size) >= MINSIZE && prev_inuse (old_top) && ((unsigned long) old_end & (pagesize - 1)) == 0)’ failed.
Program received signal SIGABRT: Process abort signal.
Backtrace for this error:
#0 pthread_kill_implementation
at ./nptl/pthread_kill.c:44
#1 pthread_kill_internal
at ./nptl/pthread_kill.c:78
#2 GI___pthread_kill
at ./nptl/pthread_kill.c:89
#3 GI_raise
at … /sysdeps/posix/raise.c:26
#4 GI_abort
at ./stdlib/abort.c:79
#5 malloc_assert
at ./malloc/malloc.c:307
#6 sysmalloc
at ./malloc/malloc.c:2617
#7 int_malloc
at ./malloc/malloc.c:4407
#8 GI___libc_malloc
at ./malloc/malloc.c:3329
#9 data_transfer_init
at … /… /… /libgfortran/io/transfer.c:3218
#10 exit_MOD_mfix_exit
at exit.f:42
#11 error_manager_MOD_log_message
at error_manager_mod.f:277
#12 solve_lin_eq_mod_MOD_solve_lin_eq
at solve_lin_eq.f:165
#13 solve_poisson_e_field_mod_MOD_solve_poisson_equation
at test/solve_poisson_e_field.f:97
#14 calc_e_field_mod_MOD_calc_e_field
at test/calc_e_field.f:49
#15 iterate_MOD_post_iterate
at test/iterate.f:530
#16 run_fluid
at mfix.f:195
#17 run_mfix
at mfix.f:145
#18 main_MOD_run_mfix0
at main.f:85
#19 start_thread
at ./nptl/pthread_create.c:442
The 13th and 14th files were added by myself to the solver. Does anyone know what this error message means? Thank you for any help!