modifying funclmdif.cpp The idea is to put multi-thread capability within ModelCalculator class so that the class becomes a stand-alone efficient calculator of the structure factor. funclmdif only calls qxSlice and getCCDStrFct methods.