lucasmyers97 / maier-saupe-lc-hydrodynamics

Work at University of Minnesota using finite element methods to simulate hydrodynamics of liquid crystals with a Maier-Saupe field theory free energy
4 stars 0 forks source link

Seg fault for defect mesh refinement #50

Closed lucasmyers97 closed 1 year ago

lucasmyers97 commented 1 year ago

Getting a seg fault for simulations which don't include extra defect refinement around defects. For some reason the seg fault does not happen when the mesh is really coarse (maybe because the simulation doesn't actually find the defects). Probably need to put a check in there to make sure that the number of mesh refinements around the defect is nonzero.

https://github.com/lucasmyers97/maier-saupe-lc-hydrodynamics/blob/34ac6c7e100dfcd2b20ab614e9708c0762c74e58/src/SimulationDrivers/NematicSystemMPIDriver.cpp#L826-L828

lucasmyers97 commented 1 year ago

Fixed here: a5044b5cae7f3ad3f402caa6f4f0c015c7eae4bf