When I use mfix-23.2 to simulate the fluidilized bed and build a solver, there is a problem happened.
model/libmfixcore.a(mfix.f.obj):mfix.f:(.rdata$.refptr.__discretelement_MOD_superdem[.refptr.__discretelement_MOD_superdem]+0x0): undefined reference to __discretelement_MOD_superdem' model/libmfixcore.a(read_namelist.f.obj):read_namelist.f:(.rdata$.refptr.__discretelement_MOD_des_epg_clip[.refptr.__discretelement_MOD_des_epg_clip]+0x0): undefined reference to
__discretelement_MOD_des_epg_clip’
model/libmfixcore.a(read_namelist.f.obj):read_namelist.f:(.rdata$.refptr.__discretelement_MOD_sqp_init_contact_evolution[.refptr.__discretelement_MOD_sqp_init_contact_evolution]+0x0): undefined reference to __discretelement_MOD_sqp_init_contact_evolution' model/libmfixcore.a(read_namelist.f.obj):read_namelist.f:(.rdata$.refptr.__discretelement_MOD_sqp_contact_evolution[.refptr.__discretelement_MOD_sqp_contact_evolution]+0x0): undefined reference to
__discretelement_MOD_sqp_contact_evolution’
model/libmfixcore.a(read_namelist.f.obj):read_namelist.f:(.rdata$.refptr.__discretelement_MOD_sqp_q4[.refptr.__discretelement_MOD_sqp_q4]+0x0): undefined reference to __discretelement_MOD_sqp_q4' model/libmfixcore.a(read_namelist.f.obj):read_namelist.f:(.rdata$.refptr.__discretelement_MOD_sqp_q3[.refptr.__discretelement_MOD_sqp_q3]+0x0): undefined reference to
__discretelement_MOD_sqp_q3’
model/libmfixcore.a(read_namelist.f.obj):read_namelist.f:(.rdata$.refptr.__discretelement_MOD_sqp_q2[.refptr.__discretelement_MOD_sqp_q2]+0x0): undefined reference to __discretelement_MOD_sqp_q2' model/libmfixcore.a(read_namelist.f.obj):read_namelist.f:(.rdata$.refptr.__discretelement_MOD_sqp_q1[.refptr.__discretelement_MOD_sqp_q1]+0x0): undefined reference to
__discretelement_MOD_sqp_q1’
model/libmfixcore.a(read_namelist.f.obj):read_namelist.f:(.rdata$.refptr.__discretelement_MOD_sqp_n[.refptr.__discretelement_MOD_sqp_n]+0x0): undefined reference to __discretelement_MOD_sqp_n' model/libmfixcore.a(read_namelist.f.obj):read_namelist.f:(.rdata$.refptr.__discretelement_MOD_sqp_m[.refptr.__discretelement_MOD_sqp_m]+0x0): undefined reference to
__discretelement_MOD_sqp_m’
model/libmfixcore.a(read_namelist.f.obj):read_namelist.f:(.rdata$.refptr.__discretelement_MOD_sqp_c[.refptr.__discretelement_MOD_sqp_c]+0x0): undefined reference to __discretelement_MOD_sqp_c' model/libmfixcore.a(read_namelist.f.obj):read_namelist.f:(.rdata$.refptr.__discretelement_MOD_sqp_b[.refptr.__discretelement_MOD_sqp_b]+0x0): undefined reference to
__discretelement_MOD_sqp_b’
model/libmfixcore.a(read_namelist.f.obj):read_namelist.f:(.rdata$.refptr.__discretelement_MOD_sqp_a[.refptr.__discretelement_MOD_sqp_a]+0x0): undefined reference to __discretelement_MOD_sqp_a' model/libmfixcore.a(allocate_arrays.f.obj):allocate_arrays.f:(.rdata$.refptr.__discretelement_MOD_contact_lambda_b_old[.refptr.__discretelement_MOD_contact_lambda_b_old]+0x0): undefined reference to
__discretelement_MOD_contact_lambda_b_old’
model/libmfixcore.a(allocate_arrays.f.obj):allocate_arrays.f:(.rdata$.refptr.__discretelement_MOD_contact_lambda_b[.refptr.__discretelement_MOD_contact_lambda_b]+0x0): undefined reference to __discretelement_MOD_contact_lambda_b' model/libmfixcore.a(allocate_arrays.f.obj):allocate_arrays.f:(.rdata$.refptr.__discretelement_MOD_contact_lambda_a_old[.refptr.__discretelement_MOD_contact_lambda_a_old]+0x0): undefined reference to
__discretelement_MOD_contact_lambda_a_old’
model/libmfixcore.a(allocate_arrays.f.obj):allocate_arrays.f:(.rdata$.refptr.__discretelement_MOD_contact_lambda_a[.refptr.__discretelement_MOD_contact_lambda_a]+0x0): undefined reference to __discretelement_MOD_contact_lambda_a' model/libmfixcore.a(allocate_arrays.f.obj):allocate_arrays.f:(.rdata$.refptr.__discretelement_MOD_contact_point_b_old[.refptr.__discretelement_MOD_contact_point_b_old]+0x0): undefined reference to
__discretelement_MOD_contact_point_b_old’
model/libmfixcore.a(allocate_arrays.f.obj):allocate_arrays.f:(.rdata$.refptr.__discretelement_MOD_contact_point_b[.refptr.__discretelement_MOD_contact_point_b]+0x0): undefined reference to __discretelement_MOD_contact_point_b ' model/libmfixcore.a(allocate_arrays.f.obj):allocate_arrays.f:(.rdata$.refptr.__discretelement_MOD_contact_point_a_old[.refptr.__discretelement_MOD_contact_point_a_old]+0x0): undefined reference to
__discretelement_MOD_contact_point_a_old’
model/libmfixcore.a(allocate_arrays.f.obj):allocate_arrays.f:(.rdata$.refptr.__discretelement_MOD_contact_point_a[.refptr.__discretelement_MOD_contact_point_a]+0x0): undefined reference to __discretelement_MOD_contact_point_a' model/libmfixcore.a(allocate_arrays.f.obj):allocate_arrays.f:(.rdata$.refptr.__discretelement_MOD_fchain_orient[.refptr.__discretelement_MOD_fchain_orient]+0x0): undefined reference to
__discretelement_MOD_fchain_orient’
model/libmfixcore.a(allocate_arrays.f.obj):allocate_arrays.f:(.rdata$.refptr.__discretelement_MOD_super_q[.refptr.__discretelement_MOD_super_q]+0x0): undefined reference to __discretelement_MOD_super_q' model/libmfixcore.a(allocate_arrays.f.obj):allocate_arrays.f :(.rdata$.refptr.__discretelement_MOD_super_mn[.refptr.__discretelement_MOD_super_mn]+0x0): undefined reference to
__discretelement_MOD_super_mn’
model/libmfixcore.a(allocate_arrays.f.obj):allocate_arrays.f:(.rdata$.refptr.__discretelement_MOD_super_r[.refptr.__discretelement_MOD_super_r]+0x0): undefined reference to __discretelement_MOD_super_r' model/libmfixcore.a(allocate_arrays.f.obj):allocate_arrays.f:(.rdata$.refptr.__discretelement_MOD_omoi3[.refptr.__discretelement_MOD_omoi3]+0x0): undefined reference to
__discretelement_MOD_omoi3’
model/libmfixcore.a(des_psd_mod.f.obj):des_psd_mod.f:(.rdata$.refptr.__discretelement_MOD_sqp_vol[.refptr.__discretelement_MOD_sqp_vol]+0x0): undefined reference to __discretelement_MOD_sqp_vol' model/libmfixcore.a(check_bc_dem.f.obj):check_bc_dem.f:(.rdata$.refptr.__discretelement_MOD_sqp_poly[.refptr.__discretelement_MOD_sqp_poly]+0x0): undefined reference to
__discretelement_MOD_sqp_poly
’
collect2.exe: error: ld returned 1 exit status
CMakeFiles\mfixsolver_ext.dir\build.make:98: recipe for target ‘mfixsolver.so’ failed
mingw32-make.exe[2]: *** [mfixsolver.so] Error 1
CMakeFiles\Makefile2:127: recipe for target ‘CMakeFiles/mfixsolver_ext.dir/all’ failed
mingw32-make.exe[1]: *** [CMakeFiles/mfixsolver_ext.dir/all] Error 2
Makefile:134: recipe for target ‘all’ failed
mingw32-make.exe: *** [all] Error 2
BUILD FAILED
==========================================================================
calc_collision_wall_mod.f (46.4 KB)
calc_force_dem.f (22.8 KB)
dem.mfx (11.9 KB)
des_allocate_mod.f (24.4 KB)
des_functions.f (24.7 KB)
des_init_arrays.f (5.6 KB)
discretelement_mod.f (33.7 KB)
mpi_pack_des_mod.f (22.5 KB)
mpi_unpack_des_mod.f (27.8 KB)
neighbour.f (3.5 KB)