subroutine exitfields implicit none deallocate(um,vm,wm,thlm,e12m,qtm,u0,v0,w0,pres0,thl0,thl0h,qt0h,e120,qt0) deallocate(up,vp,wp,thlp,e12p,qtp) deallocate(svm,sv0,svp,svpp) deallocate(ql0,ql0h,thv0h,dthvdz,whls,presf,presh,exnf,exnh,thvf,thvh,rhof,qt0av,ql0av,thl0av,u0av,v0av) deallocate(ug,vg,pgx,pgy,dpdxl,dpdyl,dthldxls,dthldyls,dqtdxls,dqtdyls,dqtdtls,dudxls,dudyls,dvdxls,dvdyls,wfls) deallocate(thlprof,qtprof,uprof,vprof,e12prof,sv0av,svprof) deallocate(thlpcar) deallocate(momfluxb,tfluxb,qfluxb,cth) deallocate(SW_up_TOA,SW_dn_TOA,LW_up_TOA,LW_dn_TOA) end subroutine exitfields