Merged in bugfix/fix_dkx_for_nperiod_gt_1 (pull request #371)
Correctly changes dkx in the parallel boundary condition for nperiod > 1.
Correctly changes dkx in the parallel boundary condition for nperiod > 1.