!! Copyright (C) Stichting Deltares, 2005-2020. !! !! This file is part of iMOD. !! !! This program is free software: you can redistribute it and/or modify !! it under the terms of the GNU General Public License as published by !! the Free Software Foundation, either version 3 of the License, or !! (at your option) any later version. !! !! This program is distributed in the hope that it will be useful, !! but WITHOUT ANY WARRANTY; without even the implied warranty of !! MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the !! GNU General Public License for more details. !! !! You should have received a copy of the GNU General Public License !! along with this program. If not, see . !! !! Contact: imod.support@deltares.nl !! Stichting Deltares !! P.O. Box 177 !! 2600 MH Delft, The Netherlands. !! MODULE MOD_IDFEDIT_UTL USE MOD_IDFEDIT_PAR USE MOD_POLYGON_PAR USE MOD_POLYGON_UTL USE MOD_POLYGON_DRAW CONTAINS !###====================================================================== SUBROUTINE IDFEDITCLOSE() !###====================================================================== IMPLICIT NONE IDIAGERROR=1 CALL POLYGON1DRAWSHAPE(1,SHP%NPOL); CALL POLYGON1CLOSE() LPLOTYSEL=.FALSE. IF(ALLOCATED(ITHRD))DEALLOCATE(ITHRD) CALL POLYGON1DEALLOCATE_SELIDF() IF(ALLOCATED(XGRIDSIZE))DEALLOCATE(XGRIDSIZE) CALL WINDOWSELECT(0); CALL WMENUSETSTATE(ID_IDFEDIT,2,0) CALL WDIALOGSELECT(ID_DIDFEDIT); CALL WDIALOGUNLOAD() CALL WDIALOGSELECT(ID_DIDFEDITCALC); CALL WDIALOGUNLOAD() CALL WDIALOGSELECT(ID_DIDFEDITLOGICAL); CALL WDIALOGUNLOAD() IDIAGERROR=0 END SUBROUTINE IDFEDITCLOSE END MODULE MOD_IDFEDIT_UTL