I have added lines at 2767 that seem to have fixed this.
Code: Select all
ELSE IF (TRIM(KeyWord).eq.'Dout(M3vvis)') THEN
IF (M3vvis.le.0) THEN
IF (Master) WRITE (out,280) 'M3vvis'
exit_flag=5
RETURN
END IF
Npts=load_l(Nval, Cval, Ngrids, Ldiag)
DO ng=1,Ngrids
Dout(idDu3d(M3vvis),ng)=Ldiag(ng)
Dout(idDv3d(M3vvis),ng)=Ldiag(ng)
END DO