mrgsolveBlock function

Convert code record for mrgsolve.