You should check if your file is there similar to
// checks whether there is already data of the fluid from an earlier calculation
if ( !( superLattice.load( “fluidSolution_N”+std::to_string(N) ) ) ) {
to avoid the segmentation faults since in your code it tries to read but without fall back. Have a look at the bifurkation example.