!----- LGPL -------------------------------------------------------------------- ! ! Copyright (C) Stichting Deltares, 2011-2013. ! ! This library is free software; you can redistribute it and/or ! modify it under the terms of the GNU Lesser General Public ! License as published by the Free Software Foundation version 2.1. ! ! This library 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 ! Lesser General Public License for more details. ! ! You should have received a copy of the GNU Lesser General Public ! License along with this library; if not, see . ! ! contact: delft3d.support@deltares.nl ! Stichting Deltares ! P.O. Box 177 ! 2600 MH Delft, The Netherlands ! ! All indications and logos of, and references to, "Delft3D" and "Deltares" ! are registered trademarks of Stichting Deltares, and remain the property of ! Stichting Deltares. All rights reserved. ! $Id$ ! $HeadURL$ !> This module contains all the methods for the datatype tEcElementSet. module m_ec_valueprovider use m_ec_typedefs use m_ec_message implicit none private public :: ecValueProviderCreate ! constructor public :: ecValueProviderFree ! destructor contains function ecValueProviderCreate(valueProviderId) result(valueProviderPtr) type(tEcValueProviderPtr), pointer :: valueProviderPtr !< the new Stringbuffer, intent(out) integer, intent(in) :: valueProviderId !< unique Stringbuffer id (obsolete, but maintained for symmetry) allocate(valueProviderPtr) valueProviderPtr%Ptr%nparm = 0 end function ecValueProviderCreate function ecValueProviderFree(valueProvider) result(success) implicit none logical :: success type (tEcValueProvider), intent(inout) :: valueProvider ! .. cleaning up value provider success = .true. end function ecValueProviderFree end module m_ec_valueprovider