exitdriver Subroutine

public subroutine exitdriver()

Uses

  • proc~~exitdriver~~UsesGraph proc~exitdriver exitdriver module~modglobal modglobal proc~exitdriver->module~modglobal

Arguments

None

Source Code

  subroutine exitdriver
    use modglobal,      only : idriver,lstoreplane,ltempeq,lmoist,nsv,lhdriver,lqdriver,lsdriver,ibrank,iplanerank

    if (idriver==1 .and. iplanerank) then
      !if (lstoreplane ) then
        deallocate(storetdriver,storeu0driver,storev0driver,storew0driver)!,storee120driver)
        if (ltempeq ) then
          deallocate(storethl0driver)
        end if
        if (lmoist ) then
          deallocate(storeqt0driver)
        end if
        if (nsv>0 ) then
          deallocate(storesv0driver)
        end if
      !end if
    else if (idriver == 2 .and. ibrank)  then
      deallocate(storetdriver, storeu0driver,storev0driver,storew0driver,u0driver,v0driver,w0driver) !,e120driver,storee120driver)
      if (ltempeq .and. lhdriver) then
        deallocate(storethl0driver,thl0driver)
      end if
      if (lmoist .and. lqdriver) then
        deallocate(storeqt0driver,qt0driver)
      end if
      if (nsv>0 .and. lsdriver) then
        deallocate(storesv0driver,sv0driver)
      end if
    end if

  end subroutine exitdriver