The chebop returned by clearPeriodicBCs is not useful for the code.
Replace N by dummy.