Problem in compiling while defining PISCES and AGRIF (nesting) in CPPKEYS

I am facing problem while compiling PISCES model with nesting options and ending up with the error as follows

trcini_pisces_.f90(3266): error #6404: This name does not have a type, and must have an explicit type. [MMMPI]
DO jj = 1, Mmmpi
----------------------^
trcini_pisces_.f90(3267): error #6404: This name does not have a type, and must have an explicit type. [LMMPI]
DO ji = 1, Lmmpi
-------------------------^
compilation aborted for trcini_pisces_.f90 (code 1)

I could run the PISCES model without nesting and working fairly, but with nesting I would not compile the model. I could understand what goes wrong here.