Bug found to be the NUMSTATES/NUMWAVES/NUMCOEFF macro that need to be compatible with the problem. Other changes: deleted useless file probleml_setup.cpp.