Skip to content

Reply To: Convective heat transfer_Segmentation fault for OpenLB 1.6

OpenLB – Open Source Lattice Boltzmann Code Forums on OpenLB General Topics Convective heat transfer_Segmentation fault for OpenLB 1.6 Reply To: Convective heat transfer_Segmentation fault for OpenLB 1.6

#7397
Adrian
Keymaster

Your code excerpt looks fine. The only potential issue I can currently suspect is that you did not declare the descriptors::FORCE field required by the ForcedBGKdynamics dynamics in the NSDESCRIPTOR. This is not necessary and would work if you actually explicitly initialized the field in your code (which would transparently allocate it). However, if it is not declared and not initialized this could potentially cause an access error depending on the platform (which would of course still be a problem to be fixed with a better error message).

If this is not the cause I’ll need more details / a full code example.